On Mon, Nov 10, 2008 at 09:22:47AM -0500, David VanHorn wrote: > > Assuming you mean a radio-control type servo: > > You'll need to output pulses of the appropriate width, for each of the > servos that you are controlling. > You can probably find out the appropriate widths on google for the > specific models (they do vary somewhat), but a 1mS pulse is a good > starting point. IIRC its 1.0 ms to 2.0 ms every 20 ms, with 1.5 ms being midstroke. Thats what I saw last time I looked at the output of an R/C radio receiver driving a common inexpensive servo. Didn't study any of the then-new so-called PCM digital radios some of which require special servos. Driving one of these servos is easy using a timer and output compare. Lots of ways to do it, using 1 timer, or 2, or PCM modes, or software, or some combination of all. For perfect emulation of an R/C radio you want a 20 ms period and the high output should be from 1.0 to 2.0 ms. > The period between the pulses can be varied, shorter means more > accurate control. If so, thats new. -- David Kelly N4HHE, dkelly@HiWAAY.net ======================================================================== Whom computers would destroy, they must first drive mad.
Message
Re: [AVR-Chat] control servo motor
2008-11-10 by David Kelly
Attachments
- No local attachments were found for this message.