Arduino and MOSFET IRL540 Use

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Joey713
 
Posts: 13
Joined: Thu Nov 22, 2018 5:37 am

Arduino and MOSFET IRL540 Use

Post by Joey713 »

Hello, folks
I have the Arduino UNO and try to activate a valve, therefor we have the N-Channel MOSFET IRL540 (data source: https://www.BANNED.net/circuitry/irl ... t-faq.html. On Gate we have the 0 or 5V signal from the arduino to switch (on/off), on drain we have 12V for the powersupply. But if we give the 5V on gate we only get 2,7V on the Source what is not enought to switch the valve.

Is there anyone have ideas o it? Thank you advance.

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: Arduino and MOSFET IRL540 Use

Post by adafruit_support_mike »

Connect one end of the valve you want to control to 12V, and connect the other end to the mosfet’s drain. Then connect the mosfet’s source to GND.

the mosfet will act like a switch between the valve and GND.

Also remember to put a reverse-biased diode in parallel with the switch to keep flyback voltage from damaging anything:

https://learn.adafruit.com/remote-contr ... -door-lock

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”