MOSFET based H-Bridge Circuit

h-bridgemosfet

Okay really need help on constructing a MOSFET based H-bridge circuit with a switch.
I've got two p type and two n type mosfets.

I understand you have to apply voltage to the gates to turn the transistors on but I'm not sure how you turn certain transistors ON while leaving others OFF.

Also wiring and connecting the circuit up on a breadboard, I get you should have a resistor before the gate to protect the transistors? And I believe the source pin of the MOSFET just connects to ground? Does the drain just connect to the motor? Having trouble understand how and where to connect the components.
Also need to incorporate a switch that allows the direction of the motor to be selected.
Please I need some help, backed into a corner here!

Best Answer

There are plenty of circuits for controlling a motor via a MOSFET H bridge - just google "mosfet h bridge". Here's the first one in the list: -

enter image description here

Here's the website I got this from - it'll give you loads of good ideas.

Basically, the motor spins one direction when inputs B and C are taken to the appropriate logic level. To reverse the motor take inputs A and D to the appropriate logic level and make sure you don't try and control it both ways because you might short out and damage your power supply or battery.

Obviously if you are running your logic signals at 3V3 you'll need to choose a MOSFET that reacts to this sort of gate voltage correctly. If using switches then having them controlled from the 12 V supply is fine but, in reality, performance and circuit is determined by your power supply voltage.