ESP32 Paxcounter firmware meters passenger flows by detecting nearby Wi-Fi and Bluetooth devices on cheap ESP32 LoRa boards, with optional environmental sensors.
Overview
ESP32 Paxcounter is firmware for ESP32-based hardware that estimates how many people are nearby by counting mobile devices from Wi-Fi and Bluetooth signals in the air. It focuses on MAC address evaluation for counting rather than tracking individuals over time.
It takes a privacy-oriented approach: it does not persistently store MAC addresses and does not fingerprint scanned devices when the goal is only crowd counts. In parallel it can read data from multiple connected environment sensors.
Collected data can be stored on a local SD card, sent to cloud services over LoRaWAN networks such as The Things Network or Helium, published with MQTT over TCP/IP, or passed to a local host through a serial SPI interface. Battery operation is supported using ESP32 deep sleep, with long runtimes cited for a single 18650 Li-Ion cell.
Hardware is built around inexpensive ESP32 LoRa IoT boards; ready-made Paxcounter LoRa hardware is also available.
Key features
- Wi-Fi and Bluetooth device counting
- LoRaWAN cloud upload support
- MQTT over TCP/IP export
- Local SD card logging
- Serial SPI transfer to a host
- Multi-sensor environmental data
- ESP32 deep sleep for battery power
- No persistent MAC storage
Use cases
- Real-time passenger flow metering
- Privacy-minded crowd estimation
- IoT environmental sensing with LoRaWAN
- Battery-powered occupancy monitoring