[CCC DEV] Question about servo2.occ in examples
Matt Jadud
jadudm at gmail.com
Mon Jul 5 15:10:30 BST 2010
Hi Drew,
There is a difference between servo.occ and servo2.occ. Specifically,
servos are typically driven by pulses between 600 and 2400
microseconds in length, where that pulse is delivered once every 20
milliseconds. This is what happens in servo.occ, and MAX and MIN are
expressed in microseconds, and have values above (the MIN) and below
(the MAX) just to make sure we don't overdrive the servo. We go from
700 to 2300 us in increments of 5us in servo.occ.
In servo2.occ, the MAX value is 20,000 us, and the min is 0 us. The
increment for driving the servo is 1000 us. None of these values
currently make sense to me, and it seems like they could be damaging
to a servo. Is this code in process, or is there something going on
here that I don't understand yet?
If nothing else, this note serves as a reminder that the servo code
needs to be looked at as this code is wrapped into a library for use
on the Arduinos.
Cheers,
Matt
--
Sent from my TRS-80
More information about the developers
mailing list