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.
Mosfet question
Re: Mosfet question
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.
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 81 times
-
- House diversion heater.zip
- really a PDF
- (17.15 KiB) Downloaded 74 times
Re: Mosfet question
One these might be easier:
https://www.aliexpress.com/item/3289056 ... 180278uiAM
Dual-H bridge controller L28N
https://www.aliexpress.com/item/3289056 ... 180278uiAM
Dual-H bridge controller L28N
Re: Mosfet question
Ok thank you. I need to read more about mosfets. I’m sure I’ll have question later