Go Down

Topic: Control speed of a DC motor (Read 1 time) previous topic - next topic


Dear users,

What is the best way to control the speed of a DC motor? I've tried to control both a PC fan and a DC motor from a game to be controlled by an Arduino board.
What I did was hook a 12V power source to a TIP122 and use analogWrite on pin 6 (using Arduino NANO) to control the input.
This used to work for a RGB led strip to control its color, but for some reason when I put a lower value than 255 the motor either doesn't run at all or makes a buzzing noise.

I don't know much about electronics and I think I'm totally doing something wrong, but I don't know what.
Hopefully any of you can send me into the right directions :)


Which motor?  what current does it take?  What 12V power source?  How much current
can it provide?  How have you wired the TIP122?  Do you have a flyback diode?
[ I DO NOT respond to personal messages, I WILL delete them unread, use the forum please ]


Mar 09, 2014, 10:05 pm Last Edit: Mar 09, 2014, 10:12 pm by RMurphy195 Reason: 1
Have a nice day


I received this via my email this morning.

Not sure what jremington is getting at, assuming the mail is genuine. Explanation please jremington, as to what it means , in what way it is supposed to help point the OP in the right direction, and why you feel the need to be unpleasant?

Cheers - Richard

Text received is:-

A reply has been posted to a topic you are watching by jremington.

View the reply at: http://forum.arduino.cc/index.php?topic=224572.new;topicseen#new

Unsubscribe to this topic by clicking here: http://forum.arduino.cc/index.php?action=notify;topic=224572.0

The text of the reply is shown below:

I found this article in the Arduino playground - does it help?
We don't need help -- you do, and a good start would be to answer the questions in reply #1 as carefully as you can.

More replies may be posted, but you won't receive any more notifications until you read the topic.

The Arduino Forum Team.
Have a nice day


Mar 10, 2014, 11:40 am Last Edit: Mar 10, 2014, 11:45 am by pwillard Reason: 1
I think he thought you were OP...

The email is very clear about what is needed "from OP" and to me... not "unpleasant" as you say.

OP   Please answer the questions... or we won't know enough to assist.

Go Up