For this tutorial to be truly practical, we need to interface the MOSFET to a microcontroller. Here, soultions are provided for N channel low side, P channel high side and N channel high side configurations.

By Julian

Youtuber, shed dweller, solar charge controller aficionado

13 thoughts on “Practical mosfet tutorial #5 – microcontroller interfacing”
  1. Avataaar/Circle Created with python_avatars Michael Mounts says:

    great series! question: why is it not necessary to use a gate resistor to handle inrush of current as mosfet cap ramps up initially? I have worked on an automotive circuit that would absolutely fry ecm controlling mosfet without it…

  2. Avataaar/Circle Created with python_avatars Icaros Savvides says:

    Interesting but I would suggest that neither drive cct (N or P channel) is "failsafe"? At turn on the drive of the FET is undefined consequently the FET could be ON when the load isn't ready to accept power.or, with the bootstrap, it could remain on when the uC is powered off whilst the 12v is still on. Just highlighting these possible scenarios if someone wishes to include in an actual end 'product'.

  3. Avataaar/Circle Created with python_avatars Malcolm Jackson says:

    Evening Julian. Many thanks for this brilliant tutorial. Just got the Mosfet to drive your LED 10Watt lamp and LED driver circuit, using a 2200ma 3s lipo.

  4. Avataaar/Circle Created with python_avatars Hans de Groot says:

    Thank you soo much for this. After months of watching youtube and reading about arduinos and electroniscs I wanted to make my own battery capacity tester that can charge and discharge using an arduino. But I really got stuck on the PNP high side part. Than I found this mosfet series you made and now all is clear. I even got more! The high side NPN Fet is brilliant! Next project I will go that way. Thank you!

  5. Avataaar/Circle Created with python_avatars naushad alam says:

    That's what I am looking for.
    Thanks a lot

  6. Avataaar/Circle Created with python_avatars Phasor Systems says:

    Can anyone try this out and give feedback? Try out androidcircuitsolver on google

  7. Avataaar/Circle Created with python_avatars Blocked User says:

    what sorcery is this xD

  8. Avataaar/Circle Created with python_avatars Artjoms Pugacovs says:

    Use pwm ignal to dim both lights. ty

  9. Avataaar/Circle Created with python_avatars Garry Nichols says:

    LOL "The mosfet is going from very on to quite ON."

  10. Avataaar/Circle Created with python_avatars Henrik Andersen says:

    How can i make a dimmable 12Vdc LED strip with a Common GND (Cathode)?
    do you have a diagram?

  11. Avataaar/Circle Created with python_avatars NoVaKane says:

    A dude doesn't change how many amps a wire can handle. It's just makes it so power is cut off before it wrested the system. Doesn't increase

  12. Avataaar/Circle Created with python_avatars Browarus Pierogus says:

    Mosfet has diode mode and saturation mode depending on charging gate voltage
    All is in datasheet. Threshold voltage is critical value here

  13. Avataaar/Circle Created with python_avatars learn from ideas says:

    Excellent Explanation

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.