EveryCircuit
Contact
Reviews
Home
ajayubc
modified 1 year ago

Using MOSFET as a switch and controlling with a microcontroller

3
1
361
05:28:13
Using N-Type MOSFET as a switch in a LED circuit to control the LED. The power source is set to simulate a microcontroller turning on and off one of its pin to 3V and 0V in 10ms intervals. When the voltage source turns on for 10 ms the 3V is sent to the N-Type MOSFET, when the MOSFET gate reaches saturation and MOSFET activates, the current passes through source and drain completing the circuit and switching on the LED. The resistor in parallel to gate and drain makes sure the voltage goes to ground when logic voltage (input voltage that is activating mosfet 3V) is weak or disconnected. If this resistor does not exist, the LED will remain always in an on state when the voltage to the gate is disconnected. Play around with location of Resistor to understand the concept, we can also add another resister in series after the parallel resistor that will limit the current to the gate during switching. Also when the series resistor is connected but the parallel resistor is absent and when logic voltage disconnects the the LED will always remain on.
published 1 year ago
ACEFORLIFE
1 year ago
Is there a need for the 50ohm resistor. Because from what I see, the LED draws most of the power supply voltage (4.85V) to stay on. Is the resistor there to make sure the transistor is in triode mode (Vds < Vov)?

EveryCircuit is an easy to use, highly interactive circuit simulator and schematic capture tool. Real-time circuit simulation, interactivity, and dynamic visualization make it a must have application for professionals and academia. EveryCircuit user community has collaboratively created the largest searchable library of circuit designs. EveryCircuit app runs online in popular browsers and on mobile phones and tablets, enabling you to capture design ideas and learn electronics on the go.

Copyright © 2025 by MuseMaze, Inc.     Terms of use     Privacy policy