Hello Everyone !! Welcome to our channel REES52
that is all about DIY electronics projects
with Arduino, Raspberry pi, ESP 8266 and other popular boards.
In today's tutorial, we will be going to wire
the IRF520 MOSFET that is a metal oxide semiconductor
field-effect transistor module board, a simple
breakout board for driving higher loads.
We connect the power for the device you want
to control to the Vin and GND then you can
connect a pump, LED or other DC device to
V+ and V- up to 24 volts and ~5A.
You can also power this device from your Arduino
to 5v, VCC connection, and GND pin.
So to make this project, we will require these
components.
The main component is IRF520 MOSFET sensor
module and the specifications are here -
and other components are Arduino Uno with
USB cable, Toy motor, 9-volt battery with
snapper, 10k potentiometer, 4-wing fan and
some male to male and male to female jumper
wires.
You can purchase all these items from my website
rees52.com and the link given in the description.
So let's start making the circuit and here
is the diagram.
First of all, we will connect the IRF520 MOSFET
to the Arduino Uno.
Connect the signal pin of MOSFET with the digital pin 6 of Arduino Uno.
Connect the ground pin
of MOSFET with the ground pin of Arduino.
NOTE - You don’t need to connect this VCC
pin for power supply.
We will connect the Potentiometer with the
UNO.
Connect the 5v pin of Arduino UNO with the
first pin of the 10k Potentiometer.
The middle pin of the potentiometer with the
analog zero (A0) pin of Arduino UNO then connect
Connect the third pin of the potentiometer with the
ground pin of Arduino UNO.
Now connect the wires of the Motors with V+
and V- pin of MOSFET.
Since this motor is independent of polarity
only it can vary the direction of rotation
whether clockwise or anticlockwise.
connect them
Now attach the battery, you can use external
power source load up to 24 volt.
Must ensure that you have connected pins to
Vin and GND.
So as you can see the circuit is completed.
Connect the power supply with the Arduino
Uno, so the code is here.
Before uploading the code you need to install
the HC motor library and the link for the
library is given in the description.
After downloading => go to sketch => Include
library and .zip library.
So upload the code.
As you can see the code is completely uploaded.
Now connect the rest component, the four wing fan with the motor
then connect the external power source
This module consists of GND, VCC, and
the Signal pin is made to process the speed
and to control the motor.
So just slightly rotate the Potentiometer.
I hope this video will be helpful to you.
Subscribe to our channel to get more video
updates.
Thank you !!
