RE: [AVR-Chat] Re: futaba S3003 servo
2004-06-20 by Dave Hylands
For power consumption purposes, you probably want to stagger the start times. Especially if you're trying to start all 8 servos simultaneously. No reason that they pulses couldn't overlap. -- Dave Hylands Vancouver, BC, Canada http://www.DaveHylands.com/
Show quoted textHide quoted text
> -----Original Message----- > From: David VanHorn [mailto:dvanhorn@cedar.net] > Sent: Saturday, June 19, 2004 5:48 PM > To: AVR-Chat@yahoogroups.com; AVR-Chat@yahoogroups.com > Subject: Re: [AVR-Chat] Re: futaba S3003 servo > > > At 05:38 PM 6/19/2004 -0700, jay marante wrote: > > >maybe i'll just have to go for some trail-and-error. > >next, i don't know how thw PWM works. i'll use mega16L. > >in general, how does the PWM work? and in AVR, how should i do this? > >thanks for the help. > > > I didn't use PWM in my implementation. > I started the pulse by taking an I/O port high, then loaded > timer 1 with the appropriate time interval. When T1 > overflowed, I got an interrupt, and all I had to do there was > shut off all the RC servo outputs, and increment to the next servo. > > Today, I would probably be more gutsy, and pulse all 8 servos > at once, with the timer telling me when and which pulse to turn off. > > I posted the code, written for the 8515, but you can port it, > on dontronics, and I think it's also in the yahoo web site > for avr-chat.