I'm trying to turn on/off a 12v line using a Arduino and a p channel mosfet (f9540n), but if i were to connect them together using some simple schematics online, i would be sending 12v through the arduino. The supplies for the 12v line and the arduino have the same ground since im using the same power supply and a 5v regulator to supply the arduino. What options would I have to solve this? Is getting a n channel mosfet the only choice?

Edit: This is the diagram, I'm not really good at making them, but i hope it helps enter image description here

  • 2
    \$\begingroup\$ show the schematic you are concerned about please \$\endgroup\$
    – vicatcu
    Oct 5 '20 at 13:47
  • \$\begingroup\$ just added it, the power supply is 12V \$\endgroup\$ Oct 5 '20 at 14:05
  • \$\begingroup\$ What exactly is the 12 volt load? What other connections does it have? \$\endgroup\$ Oct 5 '20 at 15:12
  • \$\begingroup\$ its a boost converter to convert 12v to 170v \$\endgroup\$ Oct 5 '20 at 17:21

Use This circuit.

Arduino will drive your MOSFET with the help of BJT at 5V safely.


simulate this circuit – Schematic created using CircuitLab


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.