Electronics and Circuitry

Key Units

QuantityUnitSymbol
VoltageVoltV
CurrentAmpereA
ResistanceOhmΩ
PowerWattW

Ohm’s Law

Derived forms:

  • I = V / R (current = voltage ÷ resistance)
  • R = V / I (resistance = voltage ÷ current)

Kirchhoff’s Voltage Law (KVL)

The sum of all voltages around any closed loop in a circuit equals zero.

In series: V_source = V_component1 + V_component2 + ...

LED Resistor Calculation

Formula: R = V_R / I_R

Where:

  • V_R = voltage drop across resistor = V_source - V_LED
  • I_R = desired current through LED

Worked Example

Given:

  • Supply voltage: V_s = 12V
  • LED forward voltage: V_LED = 2.2V
  • Target LED current: I = 20mA = 0.02A

Step 1: V_R = V_s - V_LED = 12 - 2.2 = 9.8V Step 2: R = V_R / I_R = 9.8 / 0.02 = 490Ω Step 3: Choose next standard resistor ≥ 490Ω (e.g., 510Ω or 560Ω)

Minimum resistance protects LED from burning out.

GPIO Electrical Limits (Raspberry Pi / reTerminal)

LimitValue
GPIO logic level3.3 V
Max current per GPIO pin16 mA
Max total current (all GPIO)50 mA
5V power pin max2 A (from USB supply)
3.3V power pin max~50 mA

Never connect 5V directly to a GPIO input — it’s 3.3V-tolerant only.

Multimeter Usage

ModeMeasuresConnection
Voltage (V)Voltage across componentParallel to component
Current (A)Current through circuitSeries in circuit (break circuit)
Resistance (Ω)Component resistanceDisconnected from circuit

See Also