I'm fairly inexperienced and while I have an understanding of classic npn and pnp transistors, I'm shaky when it comes to MOSFETs.
I'm looking for an element to act as a switch. This element would be normally ON, when no stimulus is applied. The trigger needs to be a positive voltage, and is intended to turn OFF the element (open the circuit). After a bit of searching I figured that a P-channel JFET transistor might solve my problem. There would normally be continuity between Drain and Source, unless I applied a positive voltage to the Gate.
I'm talking about a low power application:
- Drain-source voltage: 5V or less
- Drain-source current: a few milliamps are enough
- Gate trigger voltage: 5V or less
Maybe hurriedly, I got a FQP27P06 MOSFET and set up a simple test circuit with a LED. I understand this is a MOSFET and not a JFET, but I thought it would work anyway.
I'm using a voltage divider to keep the gate voltage in the specified range (2 to 4V). TBH I don't understand why that's actually specified as a negative voltage: -2 to -4 V.
In my intentions, the LED should always be on unless the button is pressed.
simulate this circuit – Schematic created using CircuitLab
What I'm observing is:
- the LED is normally ON
- when I press the button the LED goes OFF
- when I release the button the LED STAYS OFF. Or maybe it just glows very dimly and then turns OFF again. Sometimes it gets brighter and brighter but never reaches full brightness. This behavior seems to be randomic.
- in order to turn the LED back ON again, I need to short the Gate to ground!
I do not understand what's going on. Can someone please help me out? Thank you