Module 1: Electricity Fundamentals — Before You Plug Anything In

Level: 🟢 Beginner
Board: None (theory + multimeter + components)
Prerequisites: None
Estimated time: 2–3 hours
Goal: Build a working mental model of electricity and learn to stay safe.


What You'll Learn

By the end of this module, you'll understand what voltage, current, and resistance actually are — not just as formulas, but as intuition you'll use every time you build a circuit. You'll calculate resistor values, read component markings, use a multimeter, and build your first LED circuit entirely from first principles.

No Arduino yet. That comes in Module 2. Here, we focus on the physics, because every debugging session you'll ever have comes down to "is the right voltage in the right place?"


1.1 The Three Fundamentals: Voltage, Current, and Resistance

Voltage (V) — The Push

Voltage is electrical pressure. It's the difference in electric potential between two points that makes current want to flow. A 9V battery has 9 volts of "push" between its positive and negative terminals.

Key intuition: voltage is always measured between two points. When someone says "this pin is at 5V," they mean 5V relative to ground (0V).

Common voltages you'll encounter:

Current (I) — The Flow

Current is the actual flow of electrons through a conductor, measured in amperes (A). In our projects, we usually deal with milliamps (mA) — thousandths of an amp.

Key intuition: current is what does the work. An LED lights up because current flows through it. A motor spins because current flows through its coils. Too much current and things overheat or burn out.

Typical currents in Arduino projects:

Resistance (R) — The Friction

Resistance opposes the flow of current, measured in ohms (Ω). Every component has some resistance. Resistors are components specifically designed to provide a precise, controlled amount of resistance.

Key intuition: resistance is how we control current. Without a resistor in front of an LED, too much current flows and the LED burns out. Resistance is your primary tool for protecting components.


1.2 Ohm's Law — The One Formula You'll Actually Use

V = I × R

This is the relationship between voltage, current, and resistance. If you know any two, you can find the third:

Worked Example: Choosing a Resistor for an LED

You have a 5V power source and a red LED. The LED datasheet says:

Step 1: Calculate the voltage the resistor must drop.

V_resistor = V_source - V_LED = 5V - 2V = 3V

Step 2: Use Ohm's Law to find resistance.

R = V / I = 3V / 0.020A = 150Ω

Step 3: Pick a standard resistor value. 150Ω exists as a standard value. If it didn't, you'd round up to the next standard value (e.g., 220Ω) — using more resistance than needed is safe; using less is not.

Rule of thumb: When in doubt, round up. A dimmer LED is better than a dead one.

Practice Problems

Try these yourself before checking the answers:

  1. You have a 9V battery and a green LED (Vf = 2.2V, If = 20 mA). What resistor do you need?
  2. You measure 3.3V across a 1kΩ resistor. How much current is flowing?
  3. A sensor draws 15 mA from a 5V supply. What's its effective resistance?
Answers
  1. R = (9V - 2.2V) / 0.020A = 6.8V / 0.020A = 340Ω → use 390Ω (next standard value up)
  2. I = 3.3V / 1000Ω = 3.3 mA
  3. R = 5V / 0.015A = 333Ω

1.3 Power — Why Components Have Ratings

P = V × I

Power, measured in watts (W), tells you how much energy a component is converting per second — usually into heat. Every component has a maximum power rating. Exceed it and the component overheats.

Worked Example: Resistor Power Rating

Using our LED example above: the resistor drops 3V with 20 mA flowing through it.

P = V × I = 3V × 0.020A = 0.06W = 60 mW

A standard 1/4W (250 mW) resistor handles this easily. But if you were dropping 12V across a resistor with 100 mA:

P = 12V × 0.100A = 1.2W

A 1/4W resistor would literally catch fire. You'd need at least a 2W resistor.

Safety rule: Always check whether your resistor's power rating can handle the actual power dissipation. This is the calculation beginners most often skip — and the most common cause of burning smells.


1.4 Series vs. Parallel Circuits

Series: One Path

Components in series share one path for current. The same current flows through every component. Voltages add up.

In series:

Example: Two 100Ω resistors in series = 200Ω total.

Parallel: Multiple Paths

Components in parallel share the same two connection points. The same voltage appears across each. Currents add up.

In parallel:

Example: Two 100Ω resistors in parallel = 50Ω total.

Why This Matters

When you wire two LEDs in series off a 5V supply, each gets less voltage. When you wire them in parallel, each gets the full voltage but the power supply must provide more current. Understanding this is essential for multi-LED projects, sensor arrays, and motor circuits.


1.5 Reading Resistor Color Codes

Resistors use colored bands to indicate their value. A 4-band resistor reads as:

Band Meaning
1st band First digit (0–9)
2nd band Second digit (0–9)
3rd band Multiplier (number of zeros)
4th band Tolerance (gold = ±5%, silver = ±10%)

Color-to-Number Table

Color Digit Multiplier
Black 0 ×1
Brown 1 ×10
Red 2 ×100
Orange 3 ×1,000
Yellow 4 ×10,000
Green 5 ×100,000
Blue 6 ×1,000,000
Violet 7
Gray 8
White 9
Gold ×0.1 (tolerance ±5%)
Silver ×0.01 (tolerance ±10%)

Example Reading

A resistor with bands: Brown – Black – Brown – Gold

Practice

What value are these resistors?

  1. Red – Red – Brown – Gold
  2. Orange – Orange – Red – Silver
  3. Brown – Black – Orange – Gold
Answers
  1. 22 × 10 = 220Ω ±5%
  2. 33 × 100 = 3,300Ω (3.3kΩ) ±10%
  3. 10 × 1,000 = 10,000Ω (10kΩ) ±5%

Practical tip: When in doubt, use your multimeter. Color bands on small resistors can be hard to read under certain lighting, and a 2-second measurement is faster than squinting.


1.6 Capacitor Markings

Capacitors store small amounts of electrical charge. You'll encounter two main types:

Electrolytic Capacitors (cylindrical, have a polarity stripe)

Ceramic Capacitors (small discs or rectangles, no polarity)

Capacitance Units

Unit Symbol Value
Farad F 1
Millifarad mF 0.001 F
Microfarad µF 0.000001 F
Nanofarad nF 0.000000001 F
Picofarad pF 0.000000000001 F

1.7 Component Identification

Here are the components you'll encounter in this course. Learn to recognize them now — it saves time later.

Resistor

LED (Light Emitting Diode)

Diode

Capacitor (Electrolytic)

Capacitor (Ceramic)

Transistor

Pushbutton / Tactile Switch

Potentiometer

Photoresistor (LDR — Light Dependent Resistor)


1.8 Your First Tool: The Multimeter

A multimeter is the single most important tool you'll own for electronics. It measures voltage, current, resistance, and continuity.

Essential Functions

Measuring Voltage (DC V):

  1. Set the dial to DC voltage (V with a straight line, not the wavy one)
  2. Select a range higher than your expected voltage (or use auto-range)
  3. Touch the red probe to the point you want to measure, black probe to ground
  4. Read the display

Measuring Resistance (Ω):

  1. Disconnect the component from any circuit — measuring resistance in-circuit gives false readings
  2. Set the dial to Ω
  3. Touch the probes to each end of the component
  4. Read the display

Continuity Test (🔊):

  1. Set the dial to continuity (beep symbol)
  2. Touch the probes to two points
  3. If there's a connection (very low resistance), the meter beeps
  4. Use this to verify wires are connected, check solder joints, or find shorts

Measuring Current (A):

  1. Set the dial to DC current (A with a straight line)
  2. Move the red probe to the current jack (usually labeled "mA" or "A")
  3. Break the circuit and insert the meter in series — current must flow through the meter
  4. Read the display
  5. Move the probe back to the voltage jack when done — leaving it in the current jack and accidentally measuring voltage can blow the meter's fuse

Common beginner mistake: Trying to measure current by touching the probes across a component (like you do for voltage). This creates a short circuit through the meter. Always connect the meter in series for current measurement.


1.9 Electrical Safety

This course uses low-voltage DC only (up to 12V). At these voltages, the risk of electrical shock to you is essentially zero. But you can still damage components, start small fires, and make expensive mistakes.

Safety Rules for This Course

  1. Never connect mains voltage (120V/240V) to anything in this course. Mains electricity can kill. Mains work requires professional training and certification.
  2. Double-check polarity before powering on. Reversing power connections can destroy components instantly.
  3. Never exceed component ratings. Voltage ratings, current ratings, and power ratings all exist for a reason.
  4. Disconnect power before rewiring. Making changes to a live circuit is how you create accidental short circuits.
  5. Short circuits generate heat. If you smell burning or a wire gets hot, disconnect power immediately.
  6. Electrolytic capacitors can hold charge. Even after disconnecting power, large capacitors may still have voltage. Discharge them before handling.
  7. Lithium batteries require extra care. They can deliver enormous current if shorted and may catch fire or explode. Use protected cells and proper charging circuits only.

1.10 Reading Datasheets — Starting Early

Every electronic component has a datasheet — a document from the manufacturer that tells you everything about how the component works and what its limits are.

You don't need to read the entire thing (they can be dozens of pages). Here's what to look for first:

Key Datasheet Sections

Section What it tells you Why you care
Absolute Maximum Ratings The limits that must never be exceeded Exceeding these destroys the component
Electrical Characteristics Typical operating values (voltage, current) Use these for your calculations
Pin Configuration Which pin does what Required for wiring correctly
Application Circuit Recommended circuit design A good starting point for your own design

Practice: Reading an LED Datasheet

For a typical 5mm red LED, you'll find:

From Module 6 onward, reading datasheets is mandatory. Start getting comfortable with them now.


Module Project: Your First LED Circuit — By Hand Calculation

Objective

Build a simple LED circuit on a breadboard. But instead of copying a diagram, you'll determine the correct resistor value yourself using what you've learned.

Components Needed

Component Quantity Notes
Breadboard 1 Full-size or half-size
5mm Red LED 1 Any standard red LED
Resistor (calculated) 1 You'll determine the value
4×AA Battery holder 1 Provides 6V (4 × 1.5V)
AA Batteries 4
Jumper wires 2 Male-to-male
Multimeter 1 For verification

Steps

Step 1: Check your LED's datasheet (or use typical values)

Typical 5mm red LED:

Step 2: Calculate the resistor value

V_supply = 6V (4 × AA batteries)
V_resistor = V_supply - V_LED = 6V - 2.0V = 4.0V
R = V_resistor / I_LED = 4.0V / 0.020A = 200Ω

Nearest standard value: 220Ω (round up for safety).

Step 3: Verify the power dissipation

P_resistor = V_resistor × I_LED = 4.0V × 0.020A = 0.08W = 80 mW

A standard 1/4W (250 mW) resistor is more than adequate.

Step 4: Wire it up

  1. Insert the LED into the breadboard. The longer leg (anode, +) goes into one row, the shorter leg (cathode, −) goes into an adjacent row.
  2. Connect the 220Ω resistor from the LED's anode row to a new row.
  3. Connect a jumper wire from the resistor's other end to the battery holder's positive (+) wire.
  4. Connect a jumper wire from the LED's cathode row to the battery holder's negative (−) wire.
  5. Insert batteries.

The LED should light up.

Step 5: Verify with your multimeter

Circuit Diagram

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 600 300" font-family="monospace" font-size="12">
  <!-- Battery -->
  <rect x="50" y="100" width="60" height="100" fill="none" stroke="#333" stroke-width="2" rx="4"/>
  <text x="80" y="90" text-anchor="middle" font-size="14" font-weight="bold">6V</text>
  <text x="80" y="120" text-anchor="middle" font-size="10">4×AA</text>
  <line x1="65" y1="140" x2="95" y2="140" stroke="#333" stroke-width="3"/>
  <line x1="70" y1="155" x2="90" y2="155" stroke="#333" stroke-width="2"/>
  <text x="100" y="143" font-size="10">+</text>
  <text x="100" y="158" font-size="10">−</text>

  <!-- Positive wire to resistor -->
  <line x1="110" y1="140" x2="200" y2="140" stroke="red" stroke-width="2"/>

  <!-- Resistor -->
  <rect x="200" y="130" width="80" height="20" fill="none" stroke="#333" stroke-width="2" rx="3"/>
  <text x="240" y="145" text-anchor="middle" font-size="11">220Ω</text>
  <text x="240" y="170" text-anchor="middle" font-size="10" fill="#666">¼W</text>

  <!-- Wire from resistor to LED -->
  <line x1="280" y1="140" x2="370" y2="140" stroke="red" stroke-width="2"/>

  <!-- LED -->
  <polygon points="370,120 370,160 410,140" fill="none" stroke="red" stroke-width="2"/>
  <line x1="410" y1="120" x2="410" y2="160" stroke="red" stroke-width="2"/>
  <text x="390" y="110" text-anchor="middle" font-size="11" fill="red">LED</text>
  <!-- Light rays -->
  <line x1="400" y1="118" x2="408" y2="105" stroke="red" stroke-width="1" stroke-dasharray="2,2"/>
  <line x1="410" y1="115" x2="418" y2="102" stroke="red" stroke-width="1" stroke-dasharray="2,2"/>

  <!-- Negative wire back to battery -->
  <line x1="410" y1="140" x2="480" y2="140" stroke="blue" stroke-width="2"/>
  <line x1="480" y1="140" x2="480" y2="220" stroke="blue" stroke-width="2"/>
  <line x1="480" y1="220" x2="80" y2="220" stroke="blue" stroke-width="2"/>
  <line x1="80" y1="220" x2="80" y2="200" stroke="blue" stroke-width="2"/>
  <line x1="80" y1="200" x2="110" y2="155" stroke="blue" stroke-width="2"/>

  <!-- Current direction arrow -->
  <text x="300" y="135" text-anchor="middle" font-size="10" fill="#666">→ I = 20mA →</text>

  <!-- Voltage labels -->
  <text x="240" y="195" text-anchor="middle" font-size="10" fill="#0066cc">V = 4.0V</text>
  <text x="390" y="185" text-anchor="middle" font-size="10" fill="red">V = 2.0V</text>
</svg>

Circuit Schema (JSON)

{
  "module": 1,
  "project": "First LED Circuit",
  "schematic": {
    "components": [
      {
        "id": "BAT1",
        "type": "battery_pack",
        "value": "6V",
        "description": "4×AA battery holder",
        "pins": {
          "positive": "net_vcc",
          "negative": "net_gnd"
        }
      },
      {
        "id": "R1",
        "type": "resistor",
        "value": "220",
        "unit": "ohm",
        "power_rating": "0.25W",
        "color_code": ["red", "red", "brown", "gold"],
        "pins": {
          "pin1": "net_vcc",
          "pin2": "net_r1_led"
        }
      },
      {
        "id": "LED1",
        "type": "led",
        "color": "red",
        "forward_voltage": 2.0,
        "forward_current_ma": 20,
        "pins": {
          "anode": "net_r1_led",
          "cathode": "net_gnd"
        }
      }
    ],
    "nets": [
      {
        "name": "net_vcc",
        "description": "Positive supply rail (6V)",
        "nodes": ["BAT1.positive", "R1.pin1"]
      },
      {
        "name": "net_r1_led",
        "description": "Connection between resistor and LED anode",
        "nodes": ["R1.pin2", "LED1.anode"]
      },
      {
        "name": "net_gnd",
        "description": "Ground rail (0V)",
        "nodes": ["BAT1.negative", "LED1.cathode"]
      }
    ],
    "power": {
      "supply_voltage": 6.0,
      "supply_type": "battery",
      "total_current_ma": 20
    }
  },
  "breadboard": {
    "connections": [
      {
        "step": 1,
        "instruction": "Insert LED: anode (long leg) into row 15 column E, cathode (short leg) into row 15 column F",
        "component": "LED1"
      },
      {
        "step": 2,
        "instruction": "Insert 220Ω resistor: one leg into row 15 column A (same row as LED anode), other leg into row 10 column A",
        "component": "R1"
      },
      {
        "step": 3,
        "instruction": "Jumper wire from row 10 column B to positive (+) power rail",
        "type": "wire",
        "color": "red"
      },
      {
        "step": 4,
        "instruction": "Jumper wire from row 15 column J (same row as LED cathode) to negative (−) power rail",
        "type": "wire",
        "color": "black"
      },
      {
        "step": 5,
        "instruction": "Connect battery holder: red wire to positive rail, black wire to negative rail",
        "component": "BAT1"
      }
    ]
  },
  "validation": {
    "expected_measurements": {
      "voltage_across_led": { "min": 1.8, "max": 2.2, "unit": "V" },
      "voltage_across_resistor": { "min": 3.8, "max": 4.2, "unit": "V" },
      "current_through_circuit": { "min": 17, "max": 22, "unit": "mA" }
    },
    "common_mistakes": [
      "LED inserted backwards (no light, no damage at this voltage)",
      "Resistor and LED in same breadboard row but not actually connected via internal rails",
      "Battery holder wires reversed",
      "Using the wrong resistor value (check color bands with multimeter)"
    ]
  }
}

Self-Check: Module 1

Before moving to Module 2, make sure you can:


Key Terms Glossary

Term Definition
Voltage (V) Electrical pressure between two points, measured in volts
Current (I) Flow of electrons through a conductor, measured in amperes (A)
Resistance (R) Opposition to current flow, measured in ohms (Ω)
Ohm's Law V = I × R — the fundamental relationship
Power (P) Energy converted per second (P = V × I), measured in watts (W)
Forward voltage (Vf) The voltage drop across an LED (or diode) when current flows through it
Forward current (If) The current flowing through an LED at its intended brightness
Anode The positive terminal of an LED or diode (longer leg on LED)
Cathode The negative terminal of an LED or diode (shorter leg / flat side on LED)
Datasheet Manufacturer document specifying all characteristics and limits of a component
Continuity A low-resistance path — the multimeter beeps when it detects one
Short circuit An unintended low-resistance path that allows excessive current to flow

Next: Module 2 — Meet the Arduino: Your First Programmed Circuit →