different speed on wheels
Hoffa
Posts: 46
Why does the wheels have different speed when I compile this program:
DO
PULSOUT 12, 750
PAUSE 20
PULSOUT 13, 750
PAUSE 20
LOOP
?!?!
DO
PULSOUT 12, 750
PAUSE 20
PULSOUT 13, 750
PAUSE 20
LOOP
?!?!
Comments
Both of these mean that two off-the-shelf servo's may need a little tweaking to match speed. You can 'tweak' them in software by finding the exact speed numbers for each, and in hardware by adjusting the 'center position' variable resistor.
The servos need to be updated approx. every 20ms, 40ms is too long.
Notice that your loop, as written, takes 40ms to get back to each of the PULSOUT instructions.
DaveG
By the way, you need to have all the pauses in your loop add up to less than 20ms. The servos need to see a pulse about every 20ms. Your example would pulse each servo only every 40ms. What you'd see would be some "stuttering" with the slower pulses
Note that each servo needs to be updated every 20 mSec. This means you can update 2 or more in a 'block', then have a single 20 mSec delay before updating everything again.