Arduino Forum

Using Arduino => Motors, Mechanics, and Power => Topic started by: njdurkin on Apr 23, 2019, 05:53 pm

Title: MOSFET circuit working but no reverse
Post by: njdurkin on Apr 23, 2019, 05:53 pm
I am using a mosfet as a switch for a dc motor controlled by an arduino mega. I want to be able to also reverse the direction of the motor. Can this be done with a mosfet? Maybe a P type mosfet?
Title: Re: MOSFET circuit working but no reverse
Post by: JCA79B on Apr 23, 2019, 06:32 pm
No, you need either 4 transistors in an "H-bridge" configuration or at least 2 relays depending on the motor specs which are unknown. Something like this for small motors.
https://www.adafruit.com/product/2448 (https://www.adafruit.com/product/2448)
https://www.sparkfun.com/datasheets/Robotics/TB6612FNG.pdf (https://www.sparkfun.com/datasheets/Robotics/TB6612FNG.pdf)
Title: Re: MOSFET circuit working but no reverse
Post by: njdurkin on Apr 24, 2019, 01:25 am
Would something like the attached image not work?
Title: Re: MOSFET circuit working but no reverse
Post by: MarkT on Apr 24, 2019, 05:02 am
Would something like the attached image not work?
That circuit is using two complementary power supplies, which indeed only requires two switching devices, but is rarely if ever used for standard motors as the cost of the second power supply exceeds the cost of two more
switches.

H-bridge is definitely what you need, but not knowing what motor you have I can't recommend any particular H-bridge.