P-Channel MOSFET High-Side Switch with an LED
A P-channel MOSFET switches a red LED on the high side of a 9 V battery. Flip the switch to pull the gate low and the meter jumps from 0 to about 15.7 mA.
Learn how a MOSFET switch works, with circuits you can try
Want to build your own circuit? Start a new circuit in the circuit simulator
Teaching with circuits?
Create a classroom, give your students a circuit to build, and review what they submit. Try it free with one classroom and up to 5 students.
Try the free classroom demoHow it works
The source goes to the battery's +, and the LED and its 470 Ω resistor sit between the drain and ground. A 10 kΩ pull-up holds the gate at the source voltage, so the MOSFET starts off and the meter reads 0.
Close the switch: it pulls the gate to about 0.2 V through a 220 Ω resistor, the gate-source voltage drops to about −8.8 V, past the −2.1 V threshold, and the LED lights with about 15.7 mA (about 14.0 mA with NGSpice on). Open it and the pull-up turns the MOSFET off again.
What's inside
- 1× Battery
- 3× Resistor (10 kΩ, 220 Ω, 470 Ω)
- 1× LED
- 1× Transistor
- 1× Switch
- Measured with Voltmeter/Ammeter