DC MOTOR MOSFET Control Speed Using Arduino

by RonFrtek in Circuits > Arduino

2088 Views, 1 Favorites, 0 Comments

DC MOTOR MOSFET Control Speed Using Arduino

DC MOTOR MOSFET Control Speed Using Arduino

In this tutorial we will learn how to control a DC Motor speed using a MOSFET Module.

Watch the video!

What You Will Need

IRF520-MOSFET-Driver-Module-For-Arduino-ARM-Raspberry-pi.jpg
dc-motor.jpg
FMT2X9VKEY93G5P.jpg
pctdetail.775-114.1.jpg
FZEK4WBK3XGYAP0.LARGE.jpg
VisuinoAdvrtisementVersion8.jpg
  • DC Motor
  • MOSFET Module
  • Potentiometer
  • Arduino UNO (or any other Arduino)
  • Jumper wires
  • Visuino software: Download Visuino

Circuit

2020-12-07_0-36-30.jpg

  • Connect potentiometer pin OTB to Arduino Analog Pin A0
  • Connect potentiometer pin VCC to Arduino Analog Pin 5V
  • Connect potentiometer pin GND to Arduino Pin GND
  • Connect Arduino digital pin [ 5] to MOSFET Module pin [Sig]
  • Connect MOSFET Module pin VCC to Arduino Analog Pin 5V
  • Connect MOSFET Module pin GND to Arduino Pin GND
  • Connect DC motor positive pin (+) to MOSFET Module pin [V+]
  • Connect DC motor negative pin (-) to MOSFET Module pin [V-]
  • Connect Power Supply positive pin (+) to MOSFET Module pin [VIN]
  • Connect Power Supply negative pin (-) to MOSFET Module pin [GND]

Start Visuino, and Select the Arduino UNO Board Type

FMW5CHBKFV47BP9.jpg
F311FBVK5AHN5HJ.LARGE.jpg

The Visuino: https://www.visuino.eu also needs to be installed. Download Free version or register for a Free Trial.

Start Visuino as shown in the first picture Click on the "Tools" button on the Arduino component (Picture 1) in Visuino When the dialog appears, select "Arduino UNO" as shown on Picture 2

In Visuino

2020-12-07_0-27-42.jpg

Connect Arduino Analog pin 0 to Arduino digital pin 5

Generate, Compile, and Upload the Arduino Code

2020-10-30_13-20-50.jpg

In Visuino, at the bottom click on the "Build" Tab, make sure the correct port is selected, then click on the "Compile/Build and Upload" button.

Play

If you power the Arduino module, the motor will start to spin and you can change the speed by sliding the potentiometer.

Congratulations! You have completed your project with Visuino. Also attached is the Visuino project, that I created for this Instructable, you can download it and open it in Visuino: https://www.visuino.eu