A 5 V source powers an LED (Vf = 2 V) through a switch and a 150 Ω protective resistor.

LogicLab: p37_dc_led_switch

Try this

  1. Click switch S1 on the canvas to open and close the circuit.
  2. Lower R1 to 50 Ω to trigger the LED overcurrent warning (> 30 mA).
Last modified: Wednesday, 2 December 2026, 9:54 PM