thx for that help =) *feeling very n00b... jst wanna confirm: we're using an L6203 for each H-bridge, which has 1 enable and 2 inputs. Am i right to say that the two inputs change the direction of the motor? as in, if i put the PWM into input1, it'll go one way and vice versa if i put it into input2? I can't seem to find a good ref which has this explained clearly... and, if this is the case.. how could I configure the other ports to change the direction? --- In AVR-Chat@yahoogroups.com, dlc <dlc@...> wrote: > > The Mega32 has two PWM channels (OC's) that you should use for motor > speed. Use one or two of the other IO lines per H-bridge to select the > direction. > > DLC > > katraven1 wrote: > > we have an ATmega32 connected to 2 H-bridge circuits for 2 DC motors > > which need to be reversible.. > > > > we're using timer1 to generate our pwm signal and my idea was to use > > one or the other of the OC1 pins to change direction. > > > > would there be a better method of doing this? using my current > > thinking, the wheels would only be able to work in pairs but not > > independently... > > > > > > > > > > > > > > > > > > > > Yahoo! Groups Links > > > > > > > > > > > > > > > > -- > ------------------------------------------------- > Dennis Clark TTT Enterprises > www.techtoystoday.com > ------------------------------------------------- >
Message
Re: PWM for reversible DC motors
2006-08-27 by katraven1
Attachments
- No local attachments were found for this message.