[BENCH BUILD] [EMBEDDED • POWER • CELLULAR]

AirChain node

I did the node work end to end: prototype assembly, battery sizing, sensor selection, cellular connectivity, baud-rate selection and firmware. The firmware started in MicroPython on a Pico W and moved to C++ on the ESP32.
AirChain node block diagramData path: a PMS particulate sensor, a DHT22 and a GNSS module connect to an ESP32 DevKit over UART2 and UART0 at 9600 baud. The ESP32 talks to a Quectel EG800Z LTE Cat 1 bis modem over UART1 at 115200 baud, and the modem publishes over MQTT with TLS to a Mosquitto broker on Kubernetes, topic air/sensor_id/data. Power path: a TP5100 charger and a 1S Li-ion pack feed an MT3608 boost at 5 V, which supplies the ESP32 and sensors. A separate 5 V boost supplies the modem only, for its current bursts of about 2 A.DATA PATHPOWER PATHSENSORSPMS particulate sensorDHT22GNSS moduleMCUESP32 DevKit3 hardware UARTsC++ · PlatformIO · OTACELLULARQuectel EG800ZLTE Cat 1 bis3.3 V UARTBACKENDMosquitto brokeron Kubernetesair/<sensor_id>/dataUART2 / UART09600 baudUART1115200MQTT over TLSCHARGETP5100 charger+ 1S Li-ion packRAIL AMT3608 boost5 V · shared loadsRAIL BSeparate 5 V boostmodem bursts about 2 AESP32 + sensorsmodem only
AirChain node, bench build. The data path is on top and the power path below.

it_reports

The AirChain node reads particulate matter, temperature, humidity and position, then publishes one JSON message to an MQTT broker over LTE every 10 seconds. In one logged run it made 139 publishes in about 24 minutes and handled one retransmit.

Message schema, no sample values
topic   air/<sensor_id>/data
every   10 s
fields  {
  sensor_id,   timestamp,
  temperature, humidity,
  pm25,        pm10,
  latitude,    longitude,
  battery_v,   time_synced
}

what_it_has_to_do

  • Report PM2.5, PM10, temperature, humidity and position from outdoor sites over cellular.
  • Run from a Li-ion battery with a solar charging stage.
  • Take firmware updates after installation without unplugging the board.
  • Publish to an MQTT broker over TLS with per-device credentials.

decisions_and_trade_offs

  • Decision
    EG800Z-CN modem over the SIM800L
    Why (from the datasheet)
    The breakout runs its UART at 3.3 V, so no level shifter. The SIM800L has 2.8 V logic and about 2 A bursts.
    What it costs
    LTE Cat 1 bis only, no 2G fallback. The ‑CN variant has no band 20, so I treat it as city-sited until I measure on location.
  • Decision
    UART map on a 30-pin ESP32
    Why (from the datasheet)
    Three hardware UARTs for three serial devices. GNSS is receive-only, so it uses UART0 RX on GPIO3 and TX0 stays free for the console. PMS sensor on UART2 (GPIO16/17). Modem on UART1, remapped to GPIO25/26 because the default pins sit on the flash.
    What it costs
    GPIO3 is soldered, so the board cannot be unplugged for USB flashing. That drove the OTA update path.
  • Decision
    Baud rates
    Why (from the datasheet)
    PMS sensor at 9600 8N1 with 32-byte frames. GNSS at 9600 with auto-detect, because modules ship at different rates. Modem AT commands and console at 115200.
    What it costs
    Auto-detect locked onto noise once. A lock now needs five valid sentences and a plausibility check.
  • Decision
    Separate supply for the modem
    Why (from the datasheet)
    The modem needs about 2 A at 5 V in bursts and an MT3608 cannot supply that, so the MT3608 feeds only the ESP32 and sensors.
    What it costs
    Two supplies to manage. I powered the PMS sensor from a separate 5 V source to rule out boost sag as the cause of a sensor fault.
  • Decision
    Sensor duty cycle
    Why (from the datasheet)
    The PMS SET pin lets the sensor sleep between readings. GPIO35 is input-only, so SET moved to GPIO4. 30 s warm-up, 5 s sample, about 265 s asleep.
    What it costs
    One reading per cycle and a warm-up before each.
  • Decision
    Battery health in the payload
    Why (from the datasheet)
    battery_v is the source of truth. A 15-minute median ignores the voltage sag during LTE transmit. Hysteresis stops alerts flapping: low below 3.70 V, clearing at 3.80 V; critical below 3.50 V, clearing at 3.60 V.
    What it costs
    Starting values for an assumed 1S Li-ion pack, not calibrated yet.
  • Decision
    Carrier PCB Rev A.1
    Why (from the datasheet)
    One board holds wiring, power and protection, with modules plugging in. Built after bench faults, including a header seated one hole off. Keyed connectors, a CN3791 solar MPPT stage, and a 5.2 V rail from a TPS61023 breakout whose 5.07 to 5.33 V range sits above the CO sensor's 5.0 V minimum and under the PMS7003's 5.5 V maximum.
    What it costs
    2-layer, 158 × 95 mm, 95 parts, 57 nets. Design-rule check: 0 errors, 0 unconnected. Not fabricated. Electrical rules check pending.

faults_traced

  • Symptom
    PMS sensor and DHT22 both failing
    Cause
    PMS TX wired to GPIO5, a strapping pin, not GPIO16.
    Fix
    Rewired. The DHT22 recovered.
  • Symptom
    Noise flooding the PMS RX line
    Cause
    First an unpowered sensor with the charger off, then crossed TX and RX.
    Fix
    Restored power, then swapped the assignment in pins.h instead of resoldering.
  • Symptom
    Modem would not connect, signal quality 9 then 99
    Cause
    LTE antenna in the GNSS port.
    Fix
    Moved it to the LTE port. Signal quality 29 and the node connected.
  • Symptom
    GNSS fix looked live but was stale
    Cause
    A loose RX wire gave noise that locked at 38400 and 115200.
    Fix
    Stricter lock rule. The fix expires after 30 s.
  • Symptom
    Cellular node burned out
    Cause
    Header seated one hole off.
    Fix
    Keyed connectors and silkscreen outlines on the carrier board.
  • Symptom
    Node publishing null sensor values
    Cause
    ESP32 not fully seated in its standoffs, and a loose PMS wire.
    Fix
    Reseated both.

status

Working

  • Node publishing over LTE with MQTT over TLS.
  • PMS frames parsing cleanly, 17 of 17 in a short run.
  • OTA update confirmed on a cellular node.

Open

  • Outdoor GNSS fix still to test.
  • Firmware currently skips TLS certificate verification and must be fixed before deployment.
  • One node sagged to 2.65 V, cause unknown.
  • Carrier PCB not fabricated.

2026.