PROJECT 00 · FOUNDATIONS

Electronics & Communication Basics

Read this before anything else — the ideas every other project quietly assumes. No wiring yet.

Understand voltage, current, polarity, grounds, and how chips talk to each other, and the rest of the kit becomes easy (and you won't fry parts).

1 · Voltage, current, resistance

A helpful model is water in pipes:

ElectricalUnitWater analogy
Voltage (V)volt (V)Pressure pushing the water
Current (I)ampere (A)Flow rate — how much moves
Resistance (R)ohm (Ω)Pipe narrowness — opposition to flow

2 · Ohm's Law — the one equation to remember

V = I × R
V I R
Cover the one you want: V = I×R · I = V/R · R = V/I.

For a fixed voltage, more resistance → less current.

Why every LED gets a 220 Ω resistor

An LED barely resists current itself — straight across 3.3 V it draws too much and burns out. A series resistor limits the current. An LED drops ~2 V, leaving 1.3 V across the resistor:

I = V / R = (3.3 V − 2 V) / 220 Ω ≈ 0.006 A = 6 mA

6 mA is safe and bright — well under the ESP32's limits (§6). Power is P = V × I (watts); our circuits use tiny fractions of a watt, so parts stay cool.

3 · Polarity — and why direction matters

Polarity means a connection has a + (higher voltage) side and a (lower / ground) side. Some parts only work one way around.

+ 3.3 V source 220 Ω LED I → ← I
Conventional current flows + → through the parts → back to −. The LED only conducts one way.
Polarized part+ side− side
LEDanode (long leg)cathode (short leg / flat notch)
Electrolytic capacitor+ leg− stripe
Diodeanodecathode (band)
Modules / sensorsVCC / +GND / −
Power (battery, USB)+

Not polarized (either way): resistors, ceramic capacitors, pushbuttons.

Golden rule: before powering up, trace VCC → … → GND and confirm every polarized part faces the right way. A reversed LED just won't light; a reversed power connection to a module can destroy it.

4 · DC power, ground & short circuits

Never create a short circuit. A wire from 3V3 straight to GND is near‑zero resistance → enormous current → overheating and damage. Never connect a power rail directly to ground.

5 · Digital signals & logic levels (3.3 V!)

Chips represent data as two voltage levels:

The ESP32 is a 3.3 V device — putting 5 V on a GPIO can permanently damage it. When a module needs 5 V power (PIR, relay), power it from VIN but keep its signal wires at 3.3 V logic.

Analog is different: a continuous range 0–3.3 V that the ESP32's ADC reads as 0–4095 (Project 2).

6 · Current limits & good habits

7 · How chips talk to each other (buses)

Sensors, displays, and the ESP32 exchange bits over shared wires. Three standards cover almost everything in this kit — libraries handle the details, but knowing them helps you wire correctly.

MCU Device TX → RX RX ← TX
UART · 2 wires · no clock
MCU SDA SCL Dev 0x3C Dev 0x27
I²C · 2 shared wires · addresses
MCU Device MOSI MISO SCK CS
SPI · 4 wires · +CS each

UART — simplest (asynchronous serial)

2 wires, TX and RX, cross‑connected. No clock — both sides agree on a baud rate (why the Serial Monitor is always 115200). Point‑to‑point; the USB Serial Monitor uses UART via the CP2102 chip.

I²C — few wires, many devices

2 shared wires: SDA (data) + SCL (clock) — on the ESP32, GPIO 21 & 22. Each device has a unique address (the OLED is 0x3C), so many share the same pair. Needs pull‑ups (usually on‑module). The OLED (Project 10) uses I²C.

SPI — fast, more wires

4 wires: MOSI, MISO, SCK, plus a CS per device. Full‑duplex and fast — displays, SD cards, high‑rate sensors. ESP32 VSPI: MOSI 23, MISO 19, SCK 18, CS 5.

WiresClock?# devicesSpeedIn this kit
UART2 (TX, RX)No (baud)1‑to‑1Low–medUSB Serial Monitor
I²C2 (SDA, SCL)YesMany (addresses)Low–medOLED (Project 10)
SPI4 (+CS each)YesMany (CS each)Highdisplays / SD cards

8 · Further reading (beginner‑friendly)

Want a deeper explanation of any idea above? These free, well‑illustrated guides are excellent starting points.

Fundamentals

Tools

Communication buses

ESP32‑specific

External links open on third‑party sites and were chosen for being clear and beginner‑friendly.

9 · You're ready

With these fundamentals you can reason about every circuit in the kit. Next:

  1. Project 0 — Introduction & Board Tour
  2. Project 0b — Arduino IDE Setup
  3. Project 1 — Inputs & Outputs
🏠 Project Hub Project 0 · Introduction & Setup →