Arduino and MOSFET IRL540 Using Problem

Hi, all I have the Arduino UNO and try to activate a valve, therefor we have the MOSFET IRL540. 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.

(Note: MOSFET IRL540 data source: https://www.apogeeweb.net/circuitry/irl540-n-channel-mosfet-datasheet-pinout-equivalent-faq.html)

Is there anyone have ideas o it? Many thanks.

by Robertlee
September 08, 2021

Could you get in a schematic diagram of your circuitry? I've used the IRF 740 for a motor drive and it worked nicely. There's probably an answer to your problem if we knew what you're doing.

by Foxx
September 08, 2021

The source should be at ground, ideally, for a NMOS (and your valve, the load, between the 12 V and the Drain of the NMOS). I don't understand the "we only get 2,7V on the Source". If you really have 2.7V at the source, you may need 4.7V ( = 2 + 2.7) at the gate to just barely reach VGS(TH), generally defined as when IDS = 1mA.

by vanderghast
September 08, 2021
Add comment...

Please sign in or create an account to comment.


1 Answer

Answer by vanderghast

Note that the model for the IRL540 is not exact, neither the valve simulation (since I don't know anything about it). Hopefully, the illustration could show the problem that you encountered though.

+1 vote
by vanderghast
September 09, 2021
Add comment...

Please sign in or create an account to comment.


Your Answer

You must log in or create an account (free!) to answer a question.

Log in Create an account


Go Ad-Free. Activate your CircuitLab membership. No more ads. Save unlimited circuits. Run unlimited simulations.

Search Questions & Answers


Ask a Question

Anyone can ask a question.

Did you already search (see above) to see if a similar question has already been answered? If you can't find the answer, you may ask a question.


About This Site

CircuitLab's Q&A site is a FREE questions and answers forum for electronics and electrical engineering students, hobbyists, and professionals.

We encourage you to use our built-in schematic & simulation software to add more detail to your questions and answers.

Acceptable Questions:

  • Concept or theory questions
  • Practical engineering questions
  • “Homework” questions
  • Software/hardware intersection
  • Best practices
  • Design choices & component selection
  • Troubleshooting

Unacceptable Questions:

  • Non-English language content
  • Non-question discussion
  • Non-electronics questions
  • Vendor-specific topics
  • Pure software questions
  • CircuitLab software support

Please respect that there are both seasoned experts and total newbies here: please be nice, be constructive, and be specific!

About CircuitLab

CircuitLab is an in-browser schematic capture and circuit simulation software tool to help you rapidly design and analyze analog and digital electronics systems.