# QC / Dispatch Test Record — FBOTA-3x6 carrier Rev A v2

**One sheet per unit.  A unit may not be boxed without every box ticked.**

| Field | Value |
|---|---|
| Unit serial | `FBOTA-3x6A2-______` |
| Date | ______ |
| Tester initials | ______ |
| Firmware build | `pio run -e esp32` git hash `______` |

## Stage 1 — visual & optical (before power)

| # | Test | Pass |
|---|---|:--:|
| 1.1 | All parts are the REV-A-v2 BOM; no missing R2–R9, MOV bent, fuse not installed yet | ☐ |
| 1.2 | Silkscreen orientation: OLED label on GPIO21/22 pads, `230V AC - KEEP CLEAR` legible | ☐ |
| 1.3 | No solder bridge across the mains rows: inspect `MOV↔J8ƾ` under magnifier | ☐ |
| 1.4 | DevKit seated on both 2×15 headers; OLED module on J3 (if fitted) | ☐ |
| 1.5 | PZEM module seated; its own terminal ring-tightened | ☐ |
| 1.6 | Continuity: fuse path J8.1 ↔ J8.2 through F1 (≈ 0 Ω) | ☐ |
| 1.7 | **Reverse-bias protection check**: with the meter unplugged, J8.1↔J8.3 / J8.1↔J9.1 all read open | ☐ |

## Stage 2 — insulation (the safety heart of the test)

| # | Test | Instrument target | Pass | Result |
|---|---|---|:--:|---|
| 2.1 | Insulation resistance, SELV ↔ mains (J8/J9 pads vs LED1/R1/DevKit) | ≥ **100 MΩ @ 500 V DC** | ☐ | ______ |
| 2.2 | Dielectric withstand, SELV ↔ mains | **2.5 kV AC, 1 minute**, no breakdown, leak < 5 mA | ☐ | ______ |
| 2.3 | Repeat 2.2 with the fuse present and removed (test both states) | no breakdown | ☐ | ______ |
| 2.4 | Earth-current path: `⚠️ Class II device — do NOT use any protective-earth terminal`  (the unit has none; do not fit one) | n/a | — | — |

## Stage 3 — first power-up

| # | Test | Pass |
|---|---|:--:|
| 3.1 | Bench supply 230 V; flick fuse: OLED shows the `Firebase / 3x6…` splash within 5 s | ☐ |
| 3.2 | Serial console shows `System ready` line and `[OLED] SSD1306 ready` | ☐ |
| 3.3 | Banner flips to `READY · device ready for use` within 60 s of power-up | ☐ |
| 3.4 | Measure 5 V rail: 4.95 – 5.15 V between C1 pads at load | ☐ |
| 3.5 | DevKit temperature after 15 min idle < 40 °C (finger-safe on the chip) | ☐ |

## Stage 4 — functional switching (dummy load 40 W bulb per channel)

| # | Test | Pass |
|---|---|:--:|
| 4.1 | Dashboard → toggle K1: bulb ON within 1 s; toggle OFF; repeat 3× | ☐ |
| 4.2 | Same for K2, K3, K4 | ☐ |
| 4.3 | OLED shows the live `P` power going up by ≈ 40 W per toggled bulb | ☐ |
| 4.4 | OLED shows `C` (cost) increasing at `rate × power/1000` | ☐ |
| 4.5 | Power-cycle the unit mid-DOWN state: board returns to its configured boot state | ☐ |
| 4.6 | Unplug mains < 5 ms (brown-out simulation) twice mid-session | no dead panel, no corrupted NVS |

## Stage 5 — network & OTA

| # | Test | Pass |
|---|---|:--:|
| 5.1 | Unit joins home WiFi and the dashboard is reachable on the OLED-shown IP | ☐ |
| 5.2 | PlatformIO `pio run -e esp32 -t upload` (webhook OTA) — new build loads and `READY` shows after < 60 s | ☐ |
| 5.3 | Force a dirty OTA: `pio run -e esp32 -t upload` then pull mains at ~30 s | device reboots onto either image with no brick | ☐ |

## Stage 6 — boxing

| # | Test | Pass |
|---|---|:--:|
| 6.1 | Fuse installed (T500 mA) | ☐ |
| 6.2 | Face printed with correct serial on the label area | ☐ |
| 6.3 | Leaflet sheet in the box | ☐ |
| 6.4 | **Firmware blob `firmware.bin`**, PDF leaflet and serial number logged in dispatch ledger | ☐ |

## Verdict

* PASS if all boxes ticked → serial released for dispatch
* FAIL → record the step, quarantine the unit, raise a ticket, tag the board with RED dot

Tester signature: ______________      Supervisor: ______________
