Introduction: Arduino/Microcontroller MOSFET

The IRF540N is a great MOSFET to start turning bigger loads on and off. With three components you can turn on and off just about any DC load you have.

Turn loads on and off with your Arduino! Use 5V to control up to 100V. Add a motor, solenoid, or get creative!

Super Simple Arduino Load Driver V2.0 will be live on Kickstarter.com 7/13/2015. This is a breakout board for comonly used MOSFETs. The board is ready to use with screw terminals.

Step 1: Components You Will Need

The IRF540N is a great MOSFET to start turning bigger loads on and off. With three components you can turn on and off just about any DC load you have.

Components needed

1 N-Channel MOSFET is a IRF540N

1 Diode 1n4004

1 1K ohm Resister

Step 2: Wire Up the MOSFET

The MOSFET should be wired as shown in the picture.

Step 3: Code

Use the Arduino blink sketch to get started. This will turn the motor on for 1 second and then off for 1 second.

void setup() {
// initialize digital pin 13 as an output.
pinMode(13, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(13, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(13, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}

Comments

author
sspence (author)2017-01-02

The IRF series is not an appropriate match to an arduino, as it can't fully open at load with a 5v input. the IRL series are more appropriate.

author
Houser636 (author)2016-10-27

Hello rotemb1,

no reason. That would be awesome rev_2 board. Message me if your interested. It would be great to add the HUF76639S3S to an esp8266 wifi chip. WIFI and a MOSFET!

author
rotemb1 (author)2016-09-06

why not use the HUF76639S3S which has lower resistance and is a logic level mosfet?

author
3eprabu (author)2015-08-12

Guys need some help here . Im using a irf830 power mosfet to control a dc light , but for some reason i can't control the mosfet via the gate . The light turns on automatically without even supplying signal to the gate . I connected the source terminal to the negative of the battery , one side of the light is connected to the battery and the other is connected to the drain of the mosfet . I tried the same connection using a transistor and it worked fine . totally confused . need some help PLZ

author
Houser636 (author)2015-07-11

Here is the link

https://www.kickstarter.com/projects/323660810/102...

I also have true logic level MOSFETS. Elac, what are your thoughts on the

IRLI520NPBF.

The project will go live on this monday morning. If you pledge and share the project on social media I will throw in one free board!

author
Elac. (author)Houser6362015-07-14

Your boards look nice.

The IRLI520NPBF is a better choice over the IRF540N but the IRL540 is better yet with an Rds of 0.077 ohms that's 1/3 of the IRLI520NPBF Rds. Plus the IRL540 can handle a bit more amps. Also the NDP6020P is a true logic level P-channel MOSFET, the IRF5210 is not.

author
Houser636 (author)2015-07-12

The kickstarter project is live!

https://www.kickstarter.com/projects/323660810/super-simple-arduino-load-driver-v20-now-control-p

author

What Kickstarter project? I'd be interested to know more. Regarding your Instructable I'm interested in trying it with a latching circuit I designed being placed between the Arduino and your circuit. Then I'll use an infrared remote to turn my circuit on/off, thereby turning your circuit and load on/off.

author
Elac. (author)2015-07-10

The IRF540N is not a true logic level MOSFET.

The IRL540 is with a Vgs of 1.0V - 2.0V.

author
Houser636 (author)2015-07-09

Hello,

The pull down resistor keeps the MOSFET from latching.

It holds the logic signal at a low logic level when no other active device is connected.

Thanks! The Kickstarter project will go live on Monday! Please share to any friends that might be interested.

-Zach-

author
rbusch (author)2015-07-09

this might be a dumb question but whats the perpose of the resistor between the signal wire and ground? isnt the resistor usually on in series from signal pin to gate. to reduce current?

author
tomatoskins (author)2015-07-09

This is great and best of luck on your Kickstarter!

About This Instructable

17,876views

33favorites

License:

More by Houser636:How to Get your dream jobArduino/Microcontroller MOSFET
Add instructable to: