124Views8Replies

Author Options:

How to control speed motor dc 0-5000rpm with Arduino? Answered

Hello,  please I need help to control the speed of a dc motor with, for ex, Arduino.
I need it to set the rotate speed of a device that we use in I+D at the Uni. The roate speed that we use is between 0 to 5000 rpm. 
Any idea and help is more than welcome!!!!

8 Replies

user
iceng (author)2015-05-10

How do you measure the shaft speed ?

What is the size of your motor (weight, voltage, peak current ) ?

Is it a motor with bearings ?

Select as Best AnswerUndo Best Answer

user
iceng (author)iceng2015-05-11

Hey I'm not testing you. I want to know how the TA does that measurment !

Select as Best AnswerUndo Best Answer

user
iceng (author)iceng2015-05-13

Answer that and I might find an easy way to accomplish your task or are a lurker only.

Select as Best AnswerUndo Best Answer

user
DerpS (author)2015-05-13

Just use PWM. The motor is probably higher current then an Arduino digital pin can supply, so you would have to use a single transistor (or MOSFET) or an H-Bridge. For an example of Arduino PWM output:

analogWrite(10, 255)

That code would send a 100% PWM output to pin 10, which would be controlling a transistor or H-Bridge, which in turn would be controlling power to the motor.

Select as Best AnswerUndo Best Answer

user
steveastrouk (author)2015-05-10

Use the servo library.

For university work, the rest has to be your efforts. Otherwise you are a cheat.

Select as Best AnswerUndo Best Answer

user
-max- (author)2015-05-11
user
rickharris (author)2015-05-10

What can you find out about PWM control?

How much actual research have you done?

Select as Best AnswerUndo Best Answer