Welcome to the Parallax Discussion Forums, sign-up to participate.
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.