Copyright © 2010-2013 Ted Burke, All Rights Reserved.

Blog Stats
- 86,287 hits
-
Recent Posts
- Starting with Circuitry
- PWM servo control example for the PIC18F14K50
- First attempt at printing to an LCD display from a dsPIC30F4011
- A dsPIC program to display bytes received via serial link
- Simple PWM example for the PIC18F4620
- 2-D Linear Interpolation in C
- PIC18F development in Linux using XC8 and pk2cmd
- Gitshots für Windows verwendet CommandCam
- Measuring phase difference between two 50Hz sine waves with the dsPIC30F4011
- Sending a key to a window that’s not in focus (C program)
- Writing bytes to a serial port in C
- Simple command line trick for sending characters to a serial port in Windows
- Another Julia Set animation
- Creating Julia Set images in Python
- Simple interrupt-driven sampling example for the dsPIC30F4011
- Visualising transfer functions in the Z-domain
- Updated version of IGBT control program for buck-boost dc-dc converter
- Nasty 4-channel logic analyser using dsPIC30F4011
- Running CommandCam from Excel using VBA
- IGBT control in a buck-boost DC-DC converter
- Variable exponent in Mandelbrot algorithm
- More Mandelbrot
- Visualising the Mandelbrot Set
- Visualising logistic map chaos
- Vision: a DirectShow machine vision engine
- Setting the precise dimensions of a window
- RoboSlam: robots for beginners
- Simple dsPIC33FJ32MC202 example
- Rational Hunt: Finding a rational approximation to a value
- Servo motor control example for the PIC18F4620
- Polyphonic Keypad
- Creating a shadow template of a PGM image
- Working dsPIC30f4011 code to control servo angle from PC via serial
- Simulating a Ctrl-V keystroke in Win32 (C or C++) using SendInput
- Automating image creation with ImageMagick
- Posting C code on wordpress.com
- Short dsPIC30F4011 program to test output compare SFR values
- PWM Sinewave generation using output compare on dsPIC30F4011
- Drawing Trees with PyCairo
- Basic example program for MSP430G2231
- Ugly speech synthesis in C
- dsPIC Workshop: Digital i/o, timing, PWM, UART
- Using pk2cmd to transfer a hex file onto the dsPIC30F4011
- PWM generation with the dsPIC30F4011
- Printing text from the dsPIC30F4011 to a PC via UART
- Creating a new XC16 project in MPLAB X
- Next programming workshop: 2-4pm Thursday 30-8-2012
- Two square waves with arbitrary phase shift on dsPIC
- dsPIC Programming Workshop
- First Programming Workshop next Wednesday 1-8-2012
Archives
- 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)
Monthly Archives: April 2012
CommandCam now published under the GPL
The title pretty much says it all. Following some requests from users, my command line webcam image grabber, CommandCam, is now published under the GNU General Public License version 3. Is it just me or is software licensing very confusing?!
Posted in Uncategorized
Leave a comment
How a console application can set the size of its window
This is an example of a Win32 console application that sets the size of the window it’s running in. When you run it, it sets the size of the console window to 640 x 400 pixels. It actually seems to … Continue reading
Posted in Uncategorized
Tagged console, gcc, GetConsoleWindow, MinGW, move, MoveWindow, resize, Win32, window
Leave a comment
Simulating a keystroke in Win32 (C or C++) using SendInput
This program is a simple example of using the Win32 SendInput function to generate a simulated keystroke. When you run this program, it simply waits 5 seconds and then simulates a press and release of the “A” key on the … Continue reading
Posted in Uncategorized
Tagged gcc, keybd_event, keystroke, MinGW, SendInput, simulating, Win32
17 Comments
Simple Timer 1 interrupt example for the dsPIC30F4011
This is a minimal example of a Timer 1 interrupt in a dsPIC30F4011 program. I compiled it with Microchip’s C30 compiler. The main loop of the program simply flashes an LED on RD0 (pin23) at approximately 2 Hz. Meanwhile, Timer 1 … Continue reading
Posted in Uncategorized
4 Comments
Stepper motion control from signals on SD card (co-author: Mark Flanagan)
Note: This post is co-authored by Mark Flanagan. Mark is blogging about his final-year project here and has also posted a really interesting account of his preliminary investigative work here. Mark’s project concerns the development of a fascinating robotic simulator … Continue reading
Posted in PIC, Uncategorized
Tagged C30, dsPIC, dsPIC30F4011, interrupt, playback robot, robotics, SD card, stepper, timer
Leave a comment
PWM output on 2 channels of the dsPIC30F4011 with equal duty cycle and 180 degrees out of phase
Reader Mo Hsen wrote in with an interesting query about generating PWM output from the dsPIC30F4011 on two channels with equal duty cycle but 180 degrees out of phase (see the waveforms below for an example). I’ve created a short … Continue reading
Posted in Uncategorized
Tagged C30, dsPIC, dsPIC30F4011, duty cycle, frequency, MPLAB, PDC1, period, phase, PIC, PICkit 2, PTPER, PWM, PWMCON1, _PTCKPS, _PTMOD
21 Comments