Copyright © 2010-2022 Ted Burke, All Rights Reserved.
Blog Stats
- 1,786,138 hits
-
Recent Posts
- Set timezone to Europe/Dublin at command line in Debian Live
- Arduino Nano Timer 1 interrupt example for 100 Hz sampling
- Running Arduino IDE in a Debian Live session
- Installing VirtualBox on Debian 11
- More PRBS turtle graphics
- PRBS visualisation in the style of turtle graphics
- Using ffmpeg to take a snapshot with a webcam in Windows
- Using a serial byte sent from an Arduino to launch an application on the PC
- Generating variations on a code analysis question in a Brightspace quiz
- How to merge two Garmin .fit files and upload to Strava on Ubuntu
- Moving statue of David Foster Wallace
- TU Dubuntu 19.10 – a customised live USB version of Xubuntu Linux 19.10 for TU Dublin
- Using Canon EOS 70D DSLR as a USB web cam in Xubuntu Linux 19.04
- TU Dubuntu – a customised live USB version of Xubuntu Linux 19.04 for TU Dublin
- Using the PHP command line web server to transfer files between devices on a local network
- €5 PPG – photoplethysmogram amplifier / Arduino circuit
- Clap detector circuit / AirSpell typing system
- AirMouse – control mouse pointer in Linux using one switch or by blowing on microphone
- Some RGB fractal doodles
- How to display USB webcam as live video on desktop using mplayer
- Ronan Byrne’s ultra low-cost brain-computer interface
- H-bridge control example for Arduino Nano (ATmega328) – two phase-displaced square waves
- An offcut from the Fraktalismus pattern factory
- Cafe Terrace at Starry Night
- €2 Robots in DIT
- A brief introduction to binary numbers…
- Can the PIC12F675 drive motors directly from its GPIO pins?
- Minimum Viable Program for PIC12LF1572
- dsPIC30F Quadrature Encoder Interface (QEI) – Basic Example
- Simple example program for the PIC12F675 microcontroller
- A simple way to read and write audio and video files in C using FFmpeg (part 2: video)
- A simple way to read and write audio and video files in C using FFmpeg (part 1: audio)
- Fraktalismus Outtakes: Sea Monsters
- Fraktalismus – my presentation at Dublin Maker 2016
- Example code from presentation: Ways of Seeing Julia Sets
- C or Python? Comparison of execution time for Mandelbrot image generation
- Julia Set Explorer
- (no title)
- What I’m working on right now…
- Simple 2-channel hardware PWM example for the MSP430G2452 microcontroller
- RoboSlam @ Dublin Maker – only two days away!
- Generating antiphase PWM signals with the dsPIC30F4011
- Very simple Python / Tkinter GUI to send selected keystrokes via serial port
- Using a dsPIC30F4011 to generating 4 PWM signals with equal duty cycles but at 90 degree phase increments
- Faster Mandelbrot image generation using numpy in Python
- Fractal variations using Python
- Using SendInput to type unicode characters
- Three PWM outputs with three different frequencies using the dsPIC30F4011 microcontroller
- 8-channel PWM with the MSP430G2553
- Simple Phaser Framework example – Flappy Words
Recent Comments
- My Tweets
Archives
- April 2022 (2)
- February 2022 (4)
- December 2021 (2)
- November 2021 (1)
- March 2021 (1)
- November 2019 (2)
- July 2019 (1)
- June 2019 (1)
- May 2019 (1)
- April 2019 (3)
- January 2019 (1)
- September 2018 (1)
- May 2018 (1)
- April 2018 (1)
- February 2018 (1)
- January 2018 (1)
- May 2017 (1)
- April 2017 (4)
- February 2017 (3)
- August 2016 (1)
- July 2016 (1)
- February 2016 (2)
- January 2016 (3)
- November 2015 (1)
- July 2015 (1)
- April 2015 (1)
- March 2015 (2)
- November 2014 (1)
- October 2014 (2)
- September 2014 (1)
- April 2014 (1)
- March 2014 (2)
- February 2014 (4)
- January 2014 (5)
- December 2013 (2)
- November 2013 (3)
- October 2013 (1)
- September 2013 (1)
- June 2013 (2)
- May 2013 (1)
- April 2013 (4)
- March 2013 (4)
- February 2013 (5)
- January 2013 (5)
- December 2012 (6)
- November 2012 (7)
- October 2012 (7)
- September 2012 (2)
- August 2012 (8)
- July 2012 (1)
- June 2012 (2)
- May 2012 (4)
- April 2012 (7)
- February 2012 (5)
- January 2012 (1)
- December 2011 (2)
- November 2011 (11)
- October 2011 (3)
- August 2011 (1)
- July 2011 (1)
- May 2011 (1)
- April 2011 (4)
- December 2010 (4)
- November 2010 (2)
Tag Archives: C
Simple example program for the PIC12F675 microcontroller
The PIC12F675 is a very inexpensive 8-bit microcontroller from Microchip that’s available in an 8-pin DIP package (i.e. it’s suitable for breadboard use). I’ve had a small tube of these on the shelf for a few years, but I’ve only … Continue reading
Posted in Uncategorized
Tagged 12F675, blink, breadboard, C, example, flashing LED, Microchip, PIC, PIC12F, PIC12F675, simple, XC8
7 Comments
A simple way to read and write audio and video files in C using FFmpeg (part 2: video)
In my previous post, I demonstrated how FFmpeg can be used to pipe raw audio samples in and out of a simple C program to or from media files such as WAV files (based on something similar for Python I … Continue reading
Posted in Uncategorized
Tagged C, command line, concatenate, ffmpeg, format, gcc, mp4, pclose, pipe, pixels, popen, raw, reading video, signal processing, splice, stdin, stdio, stdout, video, video processing, writing video
77 Comments
A simple way to read and write audio and video files in C using FFmpeg (part 1: audio)
C is my favourite programming language and the one I use most often. However, I have tended to shy away from using it for quick one-off signal processing tasks where I needed to read or write audio or video files … Continue reading
Posted in Uncategorized
Tagged audio, audio processing, C, command line, ffmpeg, format, gcc, MP3, pclose, pipe, popen, raw, reading audio, samples, signal processing, stdin, stdio, stdout, video, video processing, WAV, writing audio
8 Comments
Fraktalismus Outtakes: Sea Monsters
Sea Creature 1 Sea Creature 2
Posted in Uncategorized
Tagged animation, C, Dublin Maker, ffmpeg, fractal, fraktalismus, mp4, PGM, PNG
1 Comment
Fraktalismus – my presentation at Dublin Maker 2016
A zip archive of my complete Fraktalismus folder (containing all the content for the presentation) can be download here: Fraktalismus.zip (93.9 MB) This is the code I used to create the Julia Set fractal zoom animation above: Pantograph animation is … Continue reading
Posted in Uncategorized
Tagged animation, C, Dublin Maker, ffmpeg, fractal, fraktalismus, mp4, PGM, PNG
Leave a comment
Example code from presentation: Ways of Seeing Julia Sets
I gave a presentation at yesterday’s DIT School of Mathematical Sciences lunchtime research seminar titled Ways of Seeing Julia Sets: Visualizing the forces that shape fractal Julia sets. This was the abstract: Early in the 20th century, work by mathematicians … Continue reading
Posted in Uncategorized
Tagged animation, C, Dublin Maker, ffmpeg, fractal, fraktalismus, mp4, PGM, PNG
4 Comments
Generating antiphase PWM signals with the dsPIC30F4011
I frequently receive queries from people who are using a dsPIC microcontroller to control power electronics of some kind, such as in an inverter, a voltage converter, or similar. Many of these queries relate to the generation of different combinations … Continue reading
Posted in Uncategorized
Tagged antiphase, C, dsPIC, dsPIC30F, dsPIC30F4011, duty cycle, example, interrupt, oscilloscope, OSYNC, out of phase, PDC1, PICkit 2, PTPER, pulse-width modulation, PWM, PWM1H, PWM1L, sawtooth, sawtooth wave, simple example, tutorial, XC16, _POUT1H, _POUT1L, _POVD1H, _POVD1L, _PTCKPS, _PWMIE, _PWMIF, _PWMInterrupt
3 Comments
Using SendInput to type unicode characters
I received a query from reader Partha D about generating unicode keystrokes using the SendInput function in Windows. As I understand it, Partha wants to generate one or more unicode keystrokes when a particular keyboard shortcut is pressed. The following … Continue reading
Posted in Uncategorized
Tagged basic, C, character, dwFlags, example, gcc, INPUT, INPUT_KEYBOARD, keyboard event, keystroke, MinGW, SendInput, simple, simulate, unicode, wScan, wVk
5 Comments
Writing bytes to a serial port in C
This is a (relatively) simple example of a C program to send five bytes to a serial port in Windows. In this case, I’m sending the five characters “hello” via COM22 at 38400 baud, but of course the program can … Continue reading
Posted in Uncategorized
Tagged baud, baudrate, bytes, C, characters, cl, COM, COM port, command line, gcc, send, serial, serial port, string, Windows, write
46 Comments
Simple interrupt-driven sampling example for the dsPIC30F4011
Reader Swetha wrote in with a query about performing 10Hz sampling on a dsPIC30F4011 in some kind of energy monitoring system. The following example illustrates a basic structure for interrupt-driven sampling using Timer 1. I compiled this program with Microchip’s … Continue reading