Back to projects
Undergraduate research

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.

Four physical sensor nodes integrated100 Hz PCM-derived measurements from each ESP32-S3 on a shared Raspberry Pi.
  • ESP32-S3
  • FreeRTOS
  • PDM
  • Raspberry Pi
Earlier Streamlit validation screen with four simulated sensors, status tiles, and vibration plots
Earlier GeoMCU dashboard using simulated data to test visualization and offline detection. · Open full-size image

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.

  1. ESP32-S3 / PDM
  2. FreeRTOS tasks
  3. Wi-Fi / TCP
  4. Shared Pi / local CSV
Implementation flow

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.