I have a need for a push pull circuit which can drive a line to either +12V, -12V or leave the line floating. The circuit needs to be able to source and sink 2 amperes to and from the line.
A 5V microcontroller is to control 2 transistors which should control the 2 mosfets
The general idea is that R3 keeps Q2 off by pulling the gate of Q1 to the source so that Vgs = 0V. Liikewise, R6 should pull the gate of Q1 to the source so that Q2 is also off in idle state.
Will this circuit work like I hope it will work?
EDIT: I completely forgot about the forward diode effect of the MOSFETs. As such I shorted the +12V to -12V directly.
I have no real need for a galvanic isolation. It was merely the best thing I could come up with. I believe I can replace them by conventional transistors
EDIT2: I replaced the optocouplers by a pair of transistors. And I fixed the symbols for the mosfets.
I think with this schematic that the P channel MOSFET will work but I am not 100% sure about the N channel. If Q4 is on, the Vgs of Q1 will be aprox. 12V + (5V - 0.7V) = 16.3V. This N channel mosfet is a P65NF06 and can handle a Vgs of 20V.