• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Circuit Ideas for You

Get free circuit ideas online.

  • Home
  • Privacy Policy
  • About
Home » DC Motor Speed Controller Circuit using Arduino

DC Motor Speed Controller Circuit using Arduino

Last updated on 11 June 2026 by Admin-Lavi Leave a Comment

This project for DC Motor Speed Controller Circuit shows how to control DC motor speed using Arduino, MOSFET and potentiometer; also Arduino make PWM signal to control MOSFET gate.

After that, MOSFET work like switch and control voltage to motor and changes speed.

Arduino speed controller is simple and with low cost and it can control motor, light and heater and also speed and power are easy to change in this circuit.

Arduino Code:

const int motorPin = 9; // PWM pin for motor control
const int potPin = A0;

void setup() {
  pinMode(motorPin, OUTPUT);
}

void loop() {
  int potValue = analogRead(potPin);
  int motorSpeed = map(potValue, 0, 1023, 0, 255);
  analogWrite(motorPin, motorSpeed);
}

Code Explanation:

  • The motor pin connects the Arduino pin to the MOSFET gate and similarly, the potentiometer pin connects the Arduino analog pin to the potentiometer.
  • setup() make motor pin as output and loop() keep reading potentiometer and changes value to speed from 0 to 255 and sets motor PWM.

Circuit Working:

DC Motor Speed Controller Circuit  Diagram using Arduino

Parts List:

ComponentsQuantity
Resistors (All resistors are 1/4 watt)
100Ω1
10k1
Potentiometer 10k1
Semiconductors
Arduino UNO1
IC 78091
MOSFET IRF5401
Diode 1N40071
DC Motor 12V 1Amp1

In this article the 12V power give power to circuit and Arduino make PWM signal to control MOSFET and also 10k potentiometer set PWM duty cycle and controls motor speed.

Furthermore, the MOSFET acts as a switch and the PWM controls it; it also changes the voltage supplied to the motor.

Also, one diode connect with motor to stop reverse EMF from motor coil and also motor uses own 12V power; finally, MOSFET controls voltage and so it controls motor speed.

How to Build:

To build a DC Motor Speed Controller Circuit using Arduino following are the connections steps to follow:

  • First, collect all parts shown in circuit diagram.
  • Next, connect Arduino 5V and GND to PCB.

Potentiometer Connection:

  • Then one outer pin connects to 5V, middle pin connects to A0 and then other outer pin connects to GND

MOSFET Connections:

  • Connect 100 ohm resistor between Arduino pin 9 and MOSFET gate, then connect 10k resistor between MOSFET gate and GND.
  • After that, connect MOSFET source to GND, connect MOSFET drain to one motor wire and then connect other motor wire to 12V positive.

Diode and IC Connections:

  • Put diode in reverse across motor pins and then use 7809 IC to give 9V regulated power to Arduino.

Conclusion:

Overall, this project for DC Motor Speed Controller Circuit using Arduino controls DC motor speed using Arduino, MOSFET and potentiometer.

Furthermore, Arduino make PWM signal and MOSFET change motor voltage and potentiometer sets the speed; also its simple way to learn motor control with electronics.

Filed Under: Arduino Projects, Automation Circuits, DIY Projects, Motor Controllers

About Admin-Lavi

Lavi is a B.Tech electronics engineer with a passion for designing new electronic circuits. Do you have questions regarding the circuit diagrams presented on this blog? Feel free to comment and solve your queries with quick replies

Previous Post: « Arduino 2-Step Programmable Timer Circuit with Independent Output Delay Adjustment
Next Post: Interfacing a 7-Segment Display Circuit with Arduino UNO »

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar




Categories

  • 555 Timer Projects (105)
  • Alarm Circuits (73)
  • Amplifier Circuits (92)
  • Arduino Projects (103)
  • Audio Circuits (186)
  • Automation Circuits (72)
  • Automobile Circuits (35)
  • Battery Charger Circuits (86)
  • DIY Projects (322)
  • Free Energy (12)
  • Heater and Temperature Controllers (31)
  • High Voltage (24)
  • Hobby Circuits (171)
  • Indicator Circuits (60)
  • Inverter Circuits (19)
  • IoT projects (4)
  • LDR Circuits (45)
  • LED and Lamps (192)
  • Meters and Testers (42)
  • Mini Projects (231)
  • Motor Controllers (24)
  • Oscillator Circuits (60)
  • Power Supply Circuits (216)
  • Radio Frequency (3)
  • Remote Control Circuits (11)
  • Renewable energy (5)
  • Security and Protection (96)
  • Sensors and Detectors (212)
  • Solar Circuits (31)
  • Timer Circuits (61)
  • Transistor Circuits (169)
  • Transmitter Circuit (20)
  • Tutorials (21)
  • Voltage Regulator (25)
  • Water Level Controller (10)

Recent Posts

  • Low Current Controlled Battery Charger Circuit using LM723 IC
  • 741 Op-Amp Treble Booster Circuit
  • Simple Diode and Transistor Based Audio Limiter Circuit
  • Simple 500mW Speaker Driver Circuit
  • Easy DIY LM386 Audio Amplifier Circuit

Recent Comments

  1. Tony Gallegos on NTC Thermistor Based Temperature to Voltage Converter Circuit
  2. colin on Simple Single Transistor Audio Amplifier Circuit
  3. How to Make a Bird Chirping Noise Easily on Chirping Bird Sound Generator Circuit
  4. Transistor Based Medium Impedance Preamplifier Circuit - Circuit Ideas for You on Low Impedance Input Transistor Preamplifier Circuit
  5. Admin-Lavi on Alternate Red Green LED Flasher Circuit

Copyright © 2026 | New Circuit Ideas