House Lighting, full wiring (transistor build)

4 zones · PN2222 low-side switch per zone · Arduino Uno R3 · 5V USB · townhouse_lights.ino

+5V rail GND rail USB bank 5V USB (bench) master sw MBR030 diode-OR → rail Arduino Uno 5V GND D3 D5 D6 D9 D2 D4 BTN scene (D2) BTN section (D4) 220 220 GF · Q1×2 LEDs Q1 EC 1kΩ 220 220 UP · Q2×3 LEDs Q2 1kΩ 220 220 EXT · Q3×5 LEDs Q3 1kΩ 220 FIRE · Q4×1 LED RED · flicker Q4 1kΩ
+5V wire / GND signal (PWM → base) LED (warm white) FIRE = red LED · crossing lines with no dot = not connected
Running the wire, shared buses, not home-runs

One +5V wire snakes past every fixture (shared by all zones). Each zone has one return wire back to its transistor. Every LED just bridges the two nearest buses.

+5V bus, shared by ALL fixtures GF return → Q1 EXT return → Q3 (returns run back to the driver board) 220 porch A 220 GF living 220 entry ← no dot: crosses GF bus, not joined 220 GF kitchen 220 porch B
+5V bus (shared) GF return EXT return · solid dot = tap/join · line crossing with no dot = not connected
ZonePin → 1kΩ → baseTransistorLEDs (each +5V→LED→220Ω→collector)
GF_INTD3Q1 (PN2222)2, living + kitchen ceilings
UP_INTD5Q23, 2 bedroom ceilings, attic
EXTD6Q35, porch A/B, entry, deck, balcony
FIRED9Q41, hearth · RED LED (flickers)
scene buttonD2 → button → GND, cycles scenes / wakes
section buttonD4 → button → GND, spotlight one zone: GF→UP→EXT→FIRE→off
Build & wiring rules