> --- In AVR-Chat@yahoogroups.com, "ktal3at" <ktal3at@...> wrote: >> >> I am controlling the motors by using avr micro control >> >> the way to increase or decrease the motor speed is the PWM >> >> and it is my first time to control motors >> >> so i am looking for help how to use the PWM and how can i connect > the >> motors to controller >> >> i know that i must use h-bridge or relay (( i'm using h-bridge)) >> >> thanks >>hi there > you will have lots of problem, i trid it > by Nonsense, there's nothing to it. The AVR/ATMEGA parts have a single match register that is used to compare against the PWM timer to determine duty cycle. Set your prescale to get the frequency that you want (usually around 1KHz) and connect the PWM output as you need for the type of drive that you want: locked-antiphase or sign/magnitude. Google is your friend, it can find many examples of what I just tersely described. DLC -- Dennis Clark TTT Enterprises
Message
Re: [AVR-Chat] Re: PWM Help
2008-02-11 by Dennis Clark
Attachments
- No local attachments were found for this message.