Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Yeah, but that's the opposite of what he wants. Reread his post.dknguyen said:I think you can get a NMOS-type MOSFET transistor to do this too. It is a 3 terminal solid-state device (it doesn't physically move to do what it does). The source(S) and drain(D) terminals go in series with whatever you want to switch on and off, but the voltage across them has to be above a certain level (it shouldn't be much of a problem, it depends on the transistor but its usually just 5V I think). The gate(G) is where you apply the on/off signal. If the G-to-S voltage is below a certain level (say 0V), it "shuts off" and if the voltage is above a certain level (say 5V) it turns out. It works more cleanly and quietly than a relay, but there is a very small leakage current when it is shut off. It also uses much less power than a relay to keep it turned on.
To get the switch behavior you want, I think you can use a pull-down resistor in the gate.
I am unsure how it will behave if power is connected to S & D but G is left floating...
D
|.....................................Power switch with other end connected to +V
|........................................|
|........................................|
-------G ---------------------|
|........................................|
|.....................................Pull down resistor with other end connected to 0V (or -V)
|
S
Normal enhancement mode MOSFETs (N or P) will not be on with no power applied. Depletion mode MOSFETs are on with no applied gate bias, but to turn them off, you have to apply a voltage that is the opposite polarity of the drain-to-source voltage. Therefore, two power supplies are required.dknguyen said:Hmm yeah. My mistake. You want a PMOS-transistor instead of NMOS to do that (and I think you have to flip some stuff upside down).
dogsofwar said:Is there a switch that will stay open when power is supplied to it, then close when the power is halted?