GeoMCU Sensor Platform
UbiHealth Lab · Professor Yiwen Dong
At UIUC's UbiHealth Lab, I developed vibration-sensing firmware and Raspberry Pi recording software. I integrated four physical ESP32-S3 nodes with the team's existing Zigbee passive infrared (PIR) setup so one Pi can collect both vibration measurements and motion events.
- ESP32-S3
- FreeRTOS
- PDM
- Raspberry Pi

From GPIO activity to hardware PDM
The earlier ESP32-C6 prototype measured processed GPIO activity at 100 Hz. On the ESP32-S3 I used the hardware PDM receiver to decode PCM samples. The firmware summarizes each 10 ms window into one timestamped vibration measurement. This gives 100 Hz measurements per node; the streamed values summarize the PCM rather than retaining the raw waveform.
Recording vibration and motion on one Pi
The vibration nodes send readings over Wi-Fi and TCP. The team's existing PIR sensors remain on Zigbee, with motion events reaching the Pi through Zigbee2MQTT. The collection platform records each source separately and makes the vibration streams available alongside PIR status and logs.
The current integration supports local recording with per-device CSV files. An earlier Pi prototype also rotated CSVs and uploaded completed files to Box through an OAuth-backed service.
- ESP32-S3 / PDM
- FreeRTOS tasks
- Wi-Fi / TCP
- Shared Pi / local CSV
Keeping acquisition running during a disconnect
Separate FreeRTOS tasks keep sampling independent of network sends. A finite RAM queue holds readings during short interruptions. The node keeps unacknowledged batches for retry, and the receiver identifies batches by device and session so retransmission can be deduplicated.
I tested reconnect and persistence at the receiver. A long outage can fill the queue, at which point the node counts dropped readings. The four-node integration verifies collection from physical devices. Cross-device clock synchronization and field performance remain separate validation questions.
Earlier single-node continuity test
In a controlled one-hour test of the earlier pipeline, I recorded 360,450 consecutive readings with no observed timestamp gap over 20 ms. The check measured timestamp continuity in that recording.