Servo help
haunteddansion
Posts: 68
I am using the Prop-1 and trying to make 2 servos spin to half way then wait for 15 seconds and then spin back to 0 again. How would this look
Comments
Typically, a servo expects a pulse approximately every 20ms with a width between 1ms and 2ms with 1ms representing one end of the range of movement and 2ms representing the other end. With 2 servos, you could put out 2 separate pulses of differing widths if you want, as long as the pulses occur at least every 20ms. With the BS1, you would use a PULSOUT statement for each servo with the period (in 10us units) either 1ms or 1.5ms (for the two positions). You may have to adjust these pulse widths to get the movement you want, but this is a good starting point. After sending the two pulses, you'd need a PAUSE of maybe 16-18ms, then repeat. A wait of about 15 seconds would be 50*15=750 cycles approximately (you can adjust that as needed).
If you haven't looked at it yet, you should get a download copy of "What's a Microcontroller?" from Parallax's website.