Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[AVR] DC motor PWM and AVR ?

Status
Not open for further replies.

bianchi77

Advanced Member level 4
Joined
Jun 11, 2009
Messages
1,313
Helped
21
Reputation
44
Reaction score
20
Trophy points
1,318
Location
California
Activity points
9,442
Guys,

How can I control the RPM of DC motor with PWM on AVR?
Any experiences ?
I use 12V 0.14A DC motor for CPU cooler..

Any infos will be appreciated..

Thanks
 

DC motor has to be connected to L293B and IN1 and IN2 pins of L293B are connected to microcontroller and EN1 pin of L293B is connected to PWM1 or PWM2 pin of microcontroller. CPU cooler fan rotates in one direction only. If OUT1 and OUT2 of L293B are +ve and -Ve respectively then IN1 has to be made high and IN2 low. Use a PWM of 1 KHz and change the duty cycle of PWM to vary the speed of motor.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top