IRF520 MOSFET Driver Module (HCMODU0083)

Stepper and DC type motor drivers
Post Reply
admin
Site Admin
Posts: 725
Joined: Sun Aug 05, 2012 4:02 pm

IRF520 MOSFET Driver Module (HCMODU0083)

Post by admin » Tue Jul 14, 2015 10:47 am

Image

Image

This little module (HCMODU0083) is a breakout board for the IFR520 MOSFET transistor. The module is designed to switch heavy DC loads from a single digital pin of your microcontroller. Its main purpose is to provide a low cost way to drive a DC motor for robotics applications, but the module can be used to control most high current DC loads. Screw terminals are provided to interface to your load and external power source. An LED indicator provides a visual indication of when your load is being switched.

If you are intending to use this module with an Arduino then please check out our HCMotor library. Links are below.



Image


Model number: HCMODU0083
Weight: 10g
Size: 33.5 x 25.5mm
Max load (drain) current: <5A
Output load voltage :0-24V
Input Switching Voltage: Suitable for 5V microcontrollers.

Applications: LED lights, DC motors, miniature pumps, solenoid valves.




Image


Image






Example Application:


Image


Image

Code: Select all

/* Include the library */
#include "HCMotor.h"

/* Set the pin that will control the motor. Note that it doesn't have to be a PWM pin - 
   any digital pin will do! */
#define MOTOR_PIN 7

/* Set the analogue pin the potentiometer will be connected to. */
#define POT_PIN A0

/* Create an instance of the library */
HCMotor HCMotor;


void setup() 
{
  /* Initialise the library */
  HCMotor.Init();

  /* Attach motor 0 to digital pin 7. The first parameter specifies the 
     motor number, the second is the motor type, and the third is the 
     digital pin that will control the motor */
  HCMotor.attach(0, DCMOTOR, MOTOR_PIN);

  /* Set the duty cycle of the PWM signal in 100uS increments. 
     Here 100 x 100uS = 1mS duty cycle. */
  HCMotor.DutyCycle(0, 100);
}



void loop() 
{
  int Speed;

  /* Read the analogue pin to determine the position of the pot. The map 
     function takes this value which could be anywhere between 0 - 1024 
     and reduces it down to match the duty cycle range of 0 - 100 */ 
  Speed = map(analogRead(POT_PIN), 0, 1024, 0, 100);
  
  /* Set the on time of the duty cycle to match the position of the pot. */
  HCMotor.OnTime(0, Speed);
}

The above example demonstrates the use of the module and an Uno to control the speed of a DC motor via a potentiometer. See the links below for a library and example sketch.


Image
IFR520_Datasheet.pdf
The HCMotor Arduino library and example sketch can be downloaded from the software section of our support forum here: http://forum.hobbycomponents.com/viewto ... =58&t=1870
You do not have the required permissions to view the files attached to this post.

Flying_Dutchman
Posts: 2
Joined: Thu Nov 24, 2016 4:28 pm

Re: IRF520 MOSFET Driver Module (HCMODU0083)

Post by Flying_Dutchman » Thu Nov 24, 2016 4:34 pm

Hello,

I've build the example, but it drops the voltage considerably when I add a little fan...

Without the fan attached, the voltage is 16V, but when connecting the fan, it drops to a little over 2V. Any ideas why? Without the MOSFET, the fan runs just fine on the power supply.

Thanks!

andrew
Site Admin
Posts: 791
Joined: Sun Aug 05, 2012 4:15 pm

Re: IRF520 MOSFET Driver Module (HCMODU0083)

Post by andrew » Fri Nov 25, 2016 11:07 am

Without the fan attached, the voltage is 16V, but when connecting the fan, it drops to a little over 2V.
In both cases where are you measuring the voltage? Also, on the module do you see an LED illuminated when the fan is connected?
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.

Flying_Dutchman
Posts: 2
Joined: Thu Nov 24, 2016 4:28 pm

Re: IRF520 MOSFET Driver Module (HCMODU0083)

Post by Flying_Dutchman » Fri Nov 25, 2016 4:08 pm

Hi Andrew,

Thought I deleted my post, guess not ... :|

Build another setup with another board - that worked fine - it was the board. All working fine now, monitoring the temp in my AV closet, turning on the fans, as well as resetting my router each week to clear it out.

Thanks!

andyd
Posts: 2
Joined: Thu Jul 27, 2017 11:12 am

Re: IRF520 MOSFET Driver Module (HCMODU0083)

Post by andyd » Thu Jul 27, 2017 11:20 am

I have 3 of these to power an LED strip. The strip has 4 pins. +12v and R, G and B which need to be pulled down to 0V to power each colour. Do you guys have a circuit diagram of the board you can share so that I can work out how to connect it? I would expect to supply +12 directly to the LED power bus and then connect each FET Source to the R, G, B pins to draw current through the LEDs, but I cannot work out how to achieve this with your boards...

Thanks,
Andy.

andrew
Site Admin
Posts: 791
Joined: Sun Aug 05, 2012 4:15 pm

Re: IRF520 MOSFET Driver Module (HCMODU0083)

Post by andrew » Thu Jul 27, 2017 3:07 pm

I've added a schematic to the first post. Hopefully this will help you work out how you can connect your LED strips. I don't know anything about your strips as we don't stock them so take my suggestion with caution, but it looks to me that you will need to connect the R, G, or B of your strip to the V- on the module and GND of your supply to GND of the module. Then you can turn on the LEDs by pulling the SIG pin high.
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.

andyd
Posts: 2
Joined: Thu Jul 27, 2017 11:12 am

Re: IRF520 MOSFET Driver Module (HCMODU0083)

Post by andyd » Thu Jul 27, 2017 8:44 pm

Perfect :-) thanks for your help

adam
Posts: 1
Joined: Thu Sep 06, 2018 2:31 pm

Re: IRF520 MOSFET Driver Module (HCMODU0083)

Post by adam » Thu Sep 06, 2018 3:01 pm

Hi,
I have built the schematic using 3.6V DC motor and 18650 Li-Ion batttery as a power source. Unfortunately I can't get the motor to start, it makes a whining noise, but no movement.
Any ideas?
Adam

Post Reply