Introduction: How to Make a DC Motor Speed Controller

Picture of How to Make a DC Motor Speed Controller

Previously I made a DC motor Speed Controller, the design was good but it could be used with only 12 V motors.
Soon I needed to control 24 V motors, so I had to come up with a design I can use for the work. I saw it would be easy to use a 7812 with the 555 or a zener, but I wanted something very versatile, then decided to use lm317 as a voltage regulator.

If you like the video do subscribe

Step 1: Components

Picture of Components

Lm317 :

Heat sink :

10 k Pot :

10 k Pot Knob :

220 Ohm resistor

Perf Board

Screw terminal:

22 AWG wire :

1N4007 Diode :


Btw if you are like me, you can salvage the most items from electronic boards

Step 2: Adding the Resistor

Picture of Adding the Resistor

Start by soldering the lm317 to the Veroboard.I had already attached the heat sink to the Lm317 with the help of m4 nut and bolt.

There are three pins in the lm317

1 Adjust

2 V out

3 V in

Soldering the220 ohm resistor with Adjust and V out.A diode will be added parallel to the 220 Ohm resistor with the cathode toward the Adjust pin.Then take the 10 k pot and add it to solder it to Adjust and Ground

Step 3: Add the Capacitor

Picture of Add the Capacitor

What are the capacitors for?

A 0.1 uF disc or 1.0 uF bypass capacitor is recommended to reduce the sensitivity to input line impedance.I have used 1 uF.

The adjustment terminal may be bypassed to ground to improve ripple rejection.A 10 F capacitor should improve ripple rejection about 15 dB.


The cathode of 1 uF capacitor connects to the V in and the anode to the Gnd

The cathode of 10 uF capacitor connects to the Adj in and the anode to the Gnd

Step 4: Add the Terminal and Flyback Diode

Picture of Add the Terminal and Flyback Diode

what is a flyback diode?

It is a diode used to eliminate flyback, which is the sudden voltage spike seen across an inductive load when its supply current is suddenly reduced or interrupted.


The cathode of the diode is connected to V in.

The anode of the diode is connected to V out.

Step 5: Lets Control

Picture of Lets Control

Adjusting the potentiometer changes the V out,

The minimum voltage will be 1.25V and the max will the applied voltage.The only drawback is the efficiency is not so great, Being a linear regulator it will change the voltage drop to heat, so you will need a good heat sink for higher voltages applied .

Like my facebook page

And Subscribe to my channel


dannit1 (author)2017-10-22

In the part where you connect the capacitors, u said the anode goes to ground, who meant the cathode (-) goes to ground

Biplab podder made it! (author)2017-10-21 me ..I don't understand to input volteg and potentiometer connection .

MusaA11 (author)2017-05-08

dude i need help with a 180V 4A 4000RPM dc motor .did u know how to run it or can u share a speed controller schematic for this type of motors ?

gm280 (author)2017-04-29

This is a variable voltage shunt type power supply. And while it can provide variable speed for a DC motor, it does that by turning any unused voltage and current into heat. And that is okay if you have a good power supply to feed it. But it does use up a lot of current into heat. Nice idea all the same.

ПавелП23 (author)gm2802017-05-02


better use step-down or pwm, e.g., on 555 timer. line regulators is for low power and precise devices only nowadays, like adc, etc

عاصم محمدا (author)2017-04-30


BeachsideHank (author)2017-04-28

Just a small technical tip: jumper the potentiometer center wiper to the unused lug, if the wiper fails, the pot will still deliver maximum resistance as a fail safe value.

tutdude98 (author)BeachsideHank2017-04-30

didnt really know that people use that as fail safe, nice tip

martinhui (author)2017-04-29

oh sorry, where is your schmatic?

About This Instructable




Bio: So basically i am a crazy person, who loves to think the most odd way ever possible,who makes what he thinks and also let ... More »
More by geekrex:DIY 3D Printed Desk Lamp$200 DIY 3D Printer Build$1 DIY Fidget Toy
Add instructable to: