Is it required to connect MOSFET or BJT with the motor ,when interfacing with my microcontroller ESP32??

Thread Starter


Joined Nov 30, 2021
I have a 5V DC submersible motor. I need to control( no speed control ,only ON/OFF) it by ESP32 microcontroller via a 5V RELAY CHANNEL. So if I need a N-CHANNEL MOSFET or a BJT to control the motor via a 5VRELAY MODULE along the ESP32??


Joined Aug 21, 2008
Yes, that or a relay. Tell us about the motor - how much current does it draw and what power supplies are available to drive it? Do you have any particular part in mind for driving the motor?


Joined Jul 10, 2017
You can use a BJT, MOSFET or relay to actuate the motor. Make sure that whatever you use can handle the startup current of the motor and that you protect the switching device from the back EMF of the motor with a reverse diode connected across its terminals.