I made a little program for testing servos with a QuickStart board. I explained what it does in the comments which I'm pasting here.
I made a demo video which I uploaded to YouTube.Code:This program uses the QuickStart's touchpads to control up to 12 servos. The 8 servos will use pins 8 through 15 (between the pad pins and the LED pins). These are referred to as "static servos" because they do not continuously move. Their position must be adjusted using pads 0 and 1. There are also four "oscillating servos" starting at pin 24 (after the LED pins). The period of oscillation is controlled using pads 2 and 3. The period uses servo refresh cycles as units. At a 50Hz refresh rate, an oscillation period of 100 will be two seconds. Increasing the period will make the servos oscillate slower. The lower pulse length end point may be adjusted using pads 4 and 5. The upper end point may be adjusted using pads 6 and 7. The higher number pad always increases the parameter while the lower number pad decreases the parameter. The end points are used by both the static servos and the oscillating servos. The amount the parameter changes increases the longer the pad is pressed. The parameters are displayed in a terminal window and also using the QuickStart's LEDs. The static servos' position is displayed (with LEDs) in binary with the center position zero. Pulse lengths shorter than 1500us are displayed with the least significant bit on the right. Pulse length longer than 1500us are displayed with the least significant bit on the left. All the LEDs will be off when the pulse length is 1500us (centered). The end point parameters use the same system or least significant bits as the static servos position. The end point parameters and oscillation parameters are displayed with the LEDs only while they are being changed and for a short time afterward. The period parameter has the least significant bit on the right.
I want to caution people about powering servos from the QuickStart board. In general it's not a good idea. The servos I used in the demo were very small servos. I added a 1000uF capacitor across Vin and Vss to help with smooth out the power supply. The QuickStart board kept on resetting when the servos would move without the capacitor. It's a good idea to have a separate power supply for the servo(s). Just make sure you have a common ground connection between the two power sources.
There are details explained in the comments that I didn't mention in the video. I thought I was making a short video but it ended up longer than five minutes.
I hope this program is useful to some of you.
Previous Version: Touch ButtonServo12011h - Archive [Date 2012.01.11 Time 21.03].zip (23.7kb, 179 views)
Attached Version: TouchButtonServo130716a on July 16, 2013