Four-node ESP32-P4 array that scores Eurojackpot and 6-of-49 combinations from camera photon noise using GCP methodology.
Rules and operator contract: CLAUDE.md · Evidence: docs/DECISIONS.md ·
Snapshot: docs/STATUS.md
| hpheuer | Design, hardware, experiment, repository |
| Grok (xAI) | Co-author — implementation, OTA validation, docs (Grok Build) |
A home-built GCP/PEAR-style instrument: each node draws bits from its own camera (OV5647 or IMX219, never shared).
Frame-pair diff → LSB → segments of 224 bits → Stouffer z. LSB bits as measured.
Up to four nodes combine as Σz/√k for the nodes that answered that run. Ranking is
Z* = (Z/σ) times the four factors Δn, Mau, Conc and AC (?kdn= ?kmau= ?kconc= ?kac=,
each 0..1, default 0). Scoring uses the same product.
The HTML page shows the number or combination being measured. Sessions are unattended;
do not pool with old focus=on archives.
This cannot predict lottery draws. Output is an experiment on physical randomness, not a betting tip. The ×√n array gain is not established — read
pass_σand the pairwise matrix before any table (CLAUDE.md).
- Rounds until Abort: score → measure a cap-sized pool → re-score. No loops, no ranking modes.
- Window:
?run=0,5–5 s (default 5); actual wall time isfocus_win_ms(slowest node). - Blocks: one round = one block (
?maxruns=, default 100). Sweep, centre, drift, pairwise, soft-down at the round boundary. - UI: parameter line from
/status, one sortable Top-10 (Z*, Z, Conc, Δn), jump board, GCP health line (pass_σ,v_eff,|r|√n). A session is a closed unit: no export, no comparison across sessions. - Illumination:
tools/tune.html— live per-node linearity/sweep board (idle only).
| Start | Session | Results |
|---|---|---|
![]() |
![]() |
![]() |
| node | address | role |
|---|---|---|
| master | 192.168.178.100 | web UI, session, combine |
| slave0 | 192.168.178.103 | measure |
| slave1 | 192.168.178.145 | measure |
| slave2 | 192.168.178.155 | measure |
All four: Waveshare ESP32-P4-ETH, PoE, own OV5647, lit enclosure (not dark). Never power the lamp from a node's VSYS. UDP discovery on port 5000 — addresses are informational. PSRAM mandatory. USB = recovery only.
`powershell cd D:\E-Lotto\elotto .\build.ps1 build # master .\build.ps1 -C../elotto_slave build # slave .\build.ps1 -C ota_firmware build # factory updater
curl.exe http://192.168.178.100/update --data-binary @build/elotto.bin curl.exe http://192.168.178.103/update --data-binary @../elotto_slave/build/elotto_slave.bin
`
After OTA, poll fw_sha in /status until it changes. Fresh board: USB erase-flash of
ota_firmware, then Ethernet forever. Details, recovery, diagnostics: CLAUDE.md.
main/ elotto.c (UI/HTTP), sensor.c/h, nodes.c/h, focus.c components/ elotto_camera, elotto_gcp, elotto_link, elotto_ota (shared with slave) ota_firmware/ recovery image (factory) tools/ tune.html (live illumination board) docs/ DECISIONS.md, STATUS.md; PLAN.md / PLAN_HISTORY.md (stubs → git); data/
Slave repo must sit next to this one (EXTRA_COMPONENT_DIRS=../elotto/components).
| v3 / D67 | Rounds until Abort; block = round; LSB z + centred-half concordance; sortable Top-10. Contract: CLAUDE.md. Never pool with prior-instrument sessions or v2.x. |


