Why are there only 3 pins on MOSFET transistors? Where is the ground for the GATE power? Answered
I'm trying to switch solenoids with the 5v output from a microcontroller using an N channel MOSFET transistor.
I'm familiar with relays but not so much transistors, which is probably why I'm getting confused.
From what I can determine, the DRAIN and SOURCE pins are like a normally open switch, and the GATE is the coil of sorts that closes the switch if it produces a nonzero voltage. If I hook up the DRAIN and SOURCE to a 24v power supply (the grnd to DRAIN and the SOURCE to the solenoid), and I have a 5v battery for the GATE....how does that physically attach to the GATE pin? Ultimately I'll use the output from the microcontroller, but in the meantime I'd like to do it manually. I realize I need a switch for the battery to toggle the GATE on and off, but if the +5v from the battery goes into GATE, where does the battery's ground go?