Skip to main content

Battery, Resistor, and LED (Copy)

PE

Petra-Dieja

·

Created Jul 13, 2026

·

Updated Jul 13, 2026

Schematic preview for Battery, Resistor, and LED (Copy)
Details

Components

—


Schematic

Yes


Simulation

Transient analysis


Copies

Not copied yet

Tags

No tags yet.

About this circuit

The author hasn't added a description yet.

Circuit notes

Battery, LED, and Resistor

The Circuit


This circuit demonstrates a 5v battery connected in series with a 330Ω resistor and an LED.

image.png

Simulation


  • A transient simulation is run for 20 mS with a 200 uS step size.
  • The voltage vbat+ is measured between the battery and ground.
  • The voltage Vled+ is measured between the LED anode and ground.
  • The current Ir is measured through the resistor and LED.

Notes


The LED in this circuit has a voltage drop of 1.31V1.31V. Therefore the voltage drop accross the resistor is 5V−1.31V=3.69V5V - 1.31V = 3.69V

Using Ohm's law we can calculate Ir.

V=IRV = IR     or     I=VRI = \frac{V}{R}

I=3.69V330Ω=0.0110=11.0.mAI = \frac{3.69V}{330Ω} = 0.0110 = 11.0.mA

Components used

No component metadata available.

SPICE netlist

* **************************************************
* Generated from CircuitSim Schematic
**************************************************
X_D1 N3 N4 GENERIC_DIODE
X_D2 N4 0 GENERIC_DIODE
R_R1 N1 N3 330
V_Vbat N2 0 DC 5
E_VP1 VP1 0 N1 0 1
E_VP2 VP2 0 N3 0 1
E_VP3 VP3 0 N4 0 1
E_VP4 VP4 0 0 0 1
V_IP1 N2 N1 0

**************************************************
* Models and supporting definitions follow
**************************************************
* Generic diode
.subckt GENERIC_DIODE ANODE CATHODE PARAMS: IS=1e-14 RS=0.5 N=1.9 BV=100 CJO=2p TT=10n
    .model DCORE D (IS={IS} RS={RS} N={N} BV={BV} CJO={CJO} TT={TT})
    D1 ANODE CATHODE DCORE
.ends GENERIC_DIODE

**************************************************
* Simulation settings
**************************************************
.tran 0.00019999999999999998 0.02 0
.save V(VP1) V(VP2) V(VP3) V(VP4) I(V_IP1)
.end

Try this circuit yourself

Free to get started. No download — runs in your browser with a full SPICE engine.