Mosfet question

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
tonynsx
Posts: 43
Joined: Thu May 07, 2020 1:43 pm

Mosfet question

Post by tonynsx » Sat Jul 23, 2022 6:30 pm

I have basic knowledge of electronics. I need to control two 12v dc motors with esp32 and MicroPython. I know I need mosfet. My understanding is that mosfet converts the 5v from esp32 to for example 12v. Is this right?

How would I connect something like this? I think people also use a heatsink so the mosfet won’t overheat. Please help.

davef
Posts: 811
Joined: Thu Apr 30, 2020 1:03 am
Location: Christchurch, NZ

Re: Mosfet question

Post by davef » Sat Jul 23, 2022 7:08 pm

Not really correct.

A MOSFET will take a voltage which exceeds it's gate threshold voltage and then switch an external supply, ie 12V on to supply a connected load.

Your ESP32's GPIO only output voltages between 0-3v3, so you would either need a MOSFET with a guaranteed gate threshold max of 2 maybe 2.5V OR you need a driver transistor that takes the 3V3 base voltage and turns-on to supply a higher voltage to the MOSFET gate.

Be aware that there are N-channel and P-channel MOSFETs. MOSFET's can have a very low Rdss-on so whether or not you need a heatsink depends on the part you choose and how much current the motor(s) draw.

Attached two PDFs, had to call them .zip. House interface has a hi-side P-channel for the microhydro input and House diversion has a two-transistor driver feeding parallel N-channel MOSFETs.
Attachments
House interface.zip
really a PDF
(26.12 KiB) Downloaded 76 times
House diversion heater.zip
really a PDF
(17.15 KiB) Downloaded 70 times

tonynsx
Posts: 43
Joined: Thu May 07, 2020 1:43 pm

Re: Mosfet question

Post by tonynsx » Sat Jul 23, 2022 7:15 pm

Thank you

davef
Posts: 811
Joined: Thu Apr 30, 2020 1:03 am
Location: Christchurch, NZ

Re: Mosfet question

Post by davef » Sat Jul 23, 2022 7:20 pm

One these might be easier:
https://www.aliexpress.com/item/3289056 ... 180278uiAM
Dual-H bridge controller L28N

tonynsx
Posts: 43
Joined: Thu May 07, 2020 1:43 pm

Re: Mosfet question

Post by tonynsx » Sat Jul 23, 2022 7:39 pm

Ok thank you. I need to read more about mosfets. I’m sure I’ll have question later

Post Reply