Electronic – Will this hbridge work

h-bridgemosfet

I am a newbie trying to build a simple circuit for reversing polarity (using the components I have). The intention is to control a DC three way motorized ball valve. The valve has two positions and to switch I have to change the polarity of voltage applied to the input wires. I would like to make the switch happen via output from a couple of RPI GPIO pins.

The schematic is attached.
enter image description here

Most common H-Bridge's that I saw on the net use some sort of BJT combination. Unfortunately I do not have the luxury of ordering more components that what you see in the circuit. Will the schematic work, or should I really go hunt for some new components?

Thanks for your comments..

Vijay

EDIT: Modified the schematic based on inputs is below, modified schematic

Best Answer

As drawn, the H-bridge will not work.

You have N-channel MOSFETs for all components of the H-bridge. This is OK if you drive them appropriately. Imagine turning on Q1. Initially, Vgs will be 12V, but as the voltage on the output of Q1 rises, then Vgs will become smaller and smaller... until Q1 is off.

Additionally, optocouplers aren't very fast, so your switching losses on your MOSFETs are going to be much higher than they needs to be.

There are chips designed for this exact application. Have a look at the FAN7842MX for a good example. There are other designs, but this chip works great. You will need one chip for each half-bridge. There are full H-bridge drivers out there, I just haven't used them.

Enjoy, motors are fun!