This project is about controlling DC motor with Arduino and MOSFET.
MOSFET is small electronic part but very strong which can handle big current.
Arduino cannot drive big motor directly, so MOSFET help Arduino to run motor safely.
This Arduino DC Motor Controller Circuit using MOSFET is simple, safe and cheap.
Arduino Coding:
int motorPin = 9;
void setup() { pinMode(motorPin, OUTPUT); }
void loop() { analogWrite(motorPin, 0); delay(2000);
analogWrite(motorPin, 128); delay(2000);
analogWrite(motorPin, 255); delay(2000); }
Code Explanation:
- motorPin is the PWM pin.
- pinMode sets pin as output.
- analogWrite sends PWM signal.
- 0 means motor off.
- 128 means medium speed.
- 255 means full speed.
- delay is used for testing.
Circuit Working:

Parts List:
| Component | Specification / Details | Quantity |
|---|---|---|
| Resistor | 1k 1/4 watt | 1 |
| Arduino Board | Arduino Uno | 1 |
| MOSFET | IRF3708 | 1 |
| DC Motor | 24V 2A | 1 |
| Power Supply | +3V to +60V | 1 |
| Schottky diode | 1N5822 | 1 |
| Heatsink | Optional | 1 |
The circuit work with DC supply from about +3V to +60V.
Arduino sends PWM signal to MOSFET gate.
MOSFET turns ON and OFF fast and PWM controls average motor voltage.
Motor speed changes with PWM value and external supply gives motor power.
Pull-down resistor R1 ensures MOSFET stays OFF when Arduino pin is floating during boot.
Arduino only controls the gate and D1 diode protects MOSFET from back EMF.
How to Build:
To build a Arduino DC Motor Controller Circuit using MOSFET follow the below steps:
- Take all parts like in circuit diagram.
- MOSFET source pin connect to common GND.
- Arduino PWM pin 9 connect to MOSFET gate pin through R1 resistor.
- MOSFET drain pin connect to one end of DC motor terminal.
- DC Motor other terminal connect to +3V to +60V power supply.
- Power supply negative connect to external GND.
- Diode connect across motor terminals.
Conclusion:
This Arduino DC Motor Controller Circuit using MOSFET is easy and with low cost.
It controls high power DC motors safely.
Arduino is protected from high current and MOSFET gives efficient switching.
This circuit is good for robotics and automation projects.
Leave a Reply