DC Motor Controller

by Just4Fun Media in Circuits > Microcontrollers

9325 Views, 132 Favorites, 0 Comments

DC Motor Controller

56777bb94fbadefc6a00071a.jpeg
photo-2015-12-20, 8:30 PM.jpg

This simple DC motor controller allows for one direction motor control and has been built entirely of reclaimed electrical parts. Using MOSFET's for motor control instead of control chips, allows for an external power supply and electric isolation of the motor and control board. Which allows for the use of higher voltage and amperage motors than the micro-controller can support.

For this project you will need:

- A DC motor (I used a salvaged DC fan)

- MOSFET (I used a 110v 30amp make sure it is rated for more than your fan)

- Solder less bread board

- Jumper Wires

- LinkIt One (or another micro-controller)

- (volt battery and connector)

A huge thank you to instructables, autodesk, MediaTek, and Penolopy Bulnick for sending me the Link It One used in this instructable.

Check Out Our Other Accounts! Like, Subscribe, and Follow to keep up to date with our latest projects. :-)

Just4Fun Media Facebook Just4Fun Media Instagram Just4Fun Media Youtube Just4Fun Media Twitter Just4Fun Media Tumblr Just4Fun Media Website

DC Motors

Electric_motor.gif

DC motors work by changing the polarity of electromagnets in the stator around a circular pattern causing the shaft to rotate. They are able to rotate in either direction at high rates of speed, but do not have a high degree of accuracy of their motion.

Wiring of Control System

photo-2015-12-20, 8:30 PM.jpg
photo-2015-12-20, 8:30 PM.jpg
photo-2015-12-20, 8:30 PM.jpg
photo-2015-12-20, 8:30 PM.jpg
photo-2015-12-20, 8:30 PM.jpg

First place the MOSFET onto the bread board, then connect the battery connector to the power rails. Place a jumper wire from the hot power rail to one side of the MOSFET gate, and a second jumper wire on the other gate to connect the motor. Place a data wire from the control pin to one of the PWM digital pins (i.e. Pin 9).

Attach the Motor

photo-2015-12-20, 8:30 PM.jpg
photo-2015-12-20, 8:30 PM.jpg

I used electrical merits to connect the motor to the leads from the battery connector and MOSFET. This way the polarity can be switched depending on which way you would like the motor to turn.

Coding

To control the speed of the motor set pin 9 to be an output and send a value between 0-255 to the MOSFET.

0 is no movement and 225 is full speed.

If you have any suggestions for improvement, questions, or photos of you own projects make sure to comment below.
Have a great day! :-)