Skip to main content

Battery, Resistor, and LED

CI

CircuitSim

·

Created Apr 19, 2026

·

Updated Jul 13, 2026

Preview will appear once the owner saves the schematic
Details

Components

—


Schematic

Yes


Simulation

Transient analysis


Copies

1

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 VP2 0 GENERIC_DIODE
R_R1 N1 N2 330
V_Vbat VP1 0 DC 5
V_IP1 VP1 N1 0
V_VP2 VP2 N2 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) I(V_IP1)
.end

Try this circuit yourself

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