Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] PWM for reversible DC motors

2006-08-26 by dlc

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
-------------------------------------------------

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.