element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino Projects
  • Products
  • Arduino
  • Arduino Projects
  • More
  • Cancel
Arduino Projects
Blog Speed Controlling of DC Motor Using MOSFET
  • Blog
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino Projects to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: Rithik_Krisna
  • Date Created: 13 Jun 2024 12:27 PM Date Created
  • Views 3282 views
  • Likes 4 likes
  • Comments 0 comments
  • dc motor
  • Speed Controller
  • IRFZ44N
  • arduino
Related
Recommended

Speed Controlling of DC Motor Using MOSFET

Rithik_Krisna
Rithik_Krisna
13 Jun 2024
Speed Controlling of DC Motor Using MOSFET

DC motors power everything from toothbrushes to robots. Controlling their speed and direction is crucial. In this project, we'll use an Arduino, a potentiometer, and a MOSFET transistor to control a DC motor. Our versatile, low-cost design can also control LEDs and heating elements. It's easy to build with adjustable speed and power settings. Let's get started!

Required Components

  1. Arduino UNO 
  2. IRLZ44N 
  3. 1k Ohm Resistor
  4. 10K Ohm Potentiometer
  5. Bread Board 
  6. USB A to USB B Cable
  7. 12V Power Source
  8. Jumper Wires

Circuit Diagram of Speed Control of DC Motor Using MOSFET

Circuit Diagram

Here's the simple circuit diagram for controlling a DC motor's speed using an Arduino and a MOSFET. This minimal-component design is easy to understand. For direction control, check out our L293D project.

Circuit Diagram Overview:

Components: Arduino UNO, MOSFET, 1k Ohm resistor, 10k Ohm potentiometer, diode, 12V power supply.
Connections:
MOSFET connects the Arduino to the motor, acting as a driver.
The 9th pin of the Arduino (PWM capable) controls the MOSFET.
The potentiometer connects to 5V, ground, and A0 for variable voltage input.
A diode protects against reverse EMF from the motor.
Let's move to the components assembly.

Component Assembly of Speed Control of DC Motor Using MOSFET
Assembled image

We used a breadboard to assemble the simple circuit, a power bank for the Arduino UNO, and a 4S Li-ion battery pack for the motor. The connections follow the previously discussed diagram.

Ensure the breadboard is in good condition to avoid connection issues.

Now, let's get into the code explanation.

Let's Code the Arduino

The code declares the 9th pin as `motorPin` and sets it as an OUTPUT in `setup()`.

In the `loop()`, it reads the potentiometer value and uses `map()` to scale the 10-bit ADC value (0-1023) to the 8-bit PWM range (0-255) for `analogWrite()`. This ensures accurate motor speed control.

Next, let's move to the simulation part of the project.

For the Code Visit the Git Repo Arduino DC Motor Speed Control Using MOSFET

Conclution

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

As expected, the working of the project was verified. If you need to know more about this project, visit the official article explaining Arduino DC Motor Speed Control using a MOSFET transistor. Topics such as how to choose the right MOSFET for the project, simulations, and more are covered.

  • Sign in to reply
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube