
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.

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.


Example Application:

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.

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