Sensor Dashboard

Real data through CRT mesh.

Temperature, humidity, pressure from ESP32 boards. Every reading splits into 7 independent channels. Triple-parity ECC detects any corruption. The math is not abstract.

Current Readings

Fetching latest...
TEMPERATURE
--.- C
HUMIDITY
--.- %
PRESSURE
--.- hPa

CRT Decomposition

Every reading is a number in Z/214,414,200. The Chinese Remainder Theorem splits it into 7 independent channels: 4 data (mod 8, mod 9, mod 25, mod 49) and 3 parity (mod 11, mod 13, mod 17). Each channel sees only its own residue. Corruption in any single channel is detected by the triple-parity check.

Click Simulate to see decomposition

Error Detection (ECC3)

Triple parity: mod 11 + mod 13 + mod 17. Rate 4/7 (4 data, 3 parity). Reconstruct the reading from the 4 data channels. If the result disagrees with any parity channel, corruption is detected. Click Corrupt to see it in action.

Waiting for data...

How It Works

BME280
I2C sensor
Temperature + humidity + pressure. GPIO21 (SDA), GPIO22 (SCL). Reading every 3 seconds.
CRT Encode
7 channels
Each reading modulo {8, 9, 25, 49, 11, 13, 17}. Four data channels carry the measurement. Three parity channels protect it.
SPIN Packet
14 bytes
Step counter + lambda progress + sensor data. ESP-NOW broadcast. 3-second heartbeat.
ECC3
100% correct
Any single-channel corruption detected AND corrected. Parity error (1 syndrome): O(1) from data reconstruction. Data error (2-3 syndromes): brute-force search, max 196 iterations. Uniqueness guaranteed: any 6 of 7 channels determine the value.
Hardware Verified
123/123
Full sweep: 7 channels x 3 deltas = 21 tests, 123 corrections, 0 failures. Every channel, every error size. Sensor round-trip: 6 BME280 readings (temp, humidity, pressure) decompose into 7 CRT residues and reconstruct exactly. Mirror: n + (N-n) = 0 in all 7 channels, confirmed on 4 physical readings.
Angular Momentum
Clock sync
Phase difference between sender and receiver = distance on 7-torus. Deviation from static CRT distance = clock drift. Free on every packet.
Gateway
PC bridge
Python script reads ESP32 serial, POSTs sensor JSON to Cloudflare Worker every 10 minutes. Worker stores in KV. Page fetches the latest on load. Click Refresh to re-fetch; within 10 minutes the browser cache returns the same payload at zero API cost.
Why CRT for Sensors?
A temperature reading is just a number. But through CRT, it becomes 7 independent residues traveling on 7 independent channels. If any channel is corrupted by noise, the other 6 are unaffected. The parity channels detect it -- and the receiver corrects it, recovering the original value from the remaining channels. The angular momentum monitors clock drift. All of this is FREE -- it falls out of the algebra. No protocol overhead. No error-correction codec. Just arithmetic in Z/214,414,200.

Source code · Public domain (CC0)

Report issue

.ax source compiled to WASM via self-hosting compiler. Zero HTML authored.