Do these + and - 12 volt sources share a common ground with the ESP?i have a +12v and -12v sources and iwant to make a circuit that switches between them without using a relay using only 1 pin on esp 32 (3.3v)
A H bridge will reverse a motor with only a +12V supply. There are " L298N " modules that will drive two motors.H Bridge module
YesDoes thi
Do these + and - 12 volt sources share a common ground with the ESP?
Yes, I was aware of that but since the thread starter really did not explain his project in any detail I just suggested using an H Bridge if it would fit his needs. Still no clue as to the current or if the switching will take place under load or no load. I also discourage using a L298 H Bridge module with newer better H Bridge solutions available.A H bridge will reverse a motor with only a +12V supply. There are " L298N " modules that will drive two motors.
Likely need a protection circuit to keep Q4's Vgs below 24V when it's ON.Discrete transistor version:
Good call.Likely need a protection circuit to keep Q4's Vgs below 24V when it's ON.
The OP is ambiguous. This circuit does what one reading says. I, however, read it to mean +12V or -12V switched to a single output.Discrete transistor version:
View attachment 336577

Without a more complete description of what you want to achieve, there is no reason for any to consider the request.i have a +12v and -12v sources and iwant to make a circuit that switches between them without using a relay using only 1 pin on esp 32 (3.3v)