Skip to main content
5 of 5
Rollback to Revision 3
SamGibson
  • 18.3k
  • 5
  • 41
  • 63

Using MOSFETs controlled by GPIO pins to switch between two different sources

I need to switch between a constant current source and a programmable power supply to power a lamp.

For both sources, I need to apply 7.6 V to the drain and have the 7.6 V outputted to the lamp. The gates of the two MOSFETs will be controlled with two seperate GPIO pins. So when a logic HIGH level is applied to the gate of one MOSFET from the GPIO pin, the first source will be used and the other MOSFET would be off.

I have attached an image of the concept that I had in mind. I know the circuitry is incorrect but I was wondering if anyone knew the best way to do this.

Please note that I don't want to use relays.

Circuit Concept