ESP32-PaxCounter/docs/hardware.md
2022-11-26 19:11:25 +01:00

4.4 KiB

Hardware

Supported ESP32 based boards:

With LoRa radio data transfer:

Without LoRa:

*) supports microSD/TF-card for local logging of paxcounter data

Depending on board hardware following features are supported:

  • LoRaWAN communication, supporting various payload formats (see enclosed .js converters)
  • MQTT communication via TCP/IP and Ethernet interface (note: payload transmitted over MQTT will be base64 encoded)
  • SPI serial communication to a local host
  • LED (shows power & status)
  • OLED Display (shows detailed status)
  • RGB LED (shows colorized status)
  • Button (short press: flip display page / long press: send alarm message)
  • Battery voltage monitoring (analog read / AXP192 / IP5306)
  • GPS (Generic serial NMEA, or Quectel L76 I2C)
  • Environmental sensors (Bosch BMP180/BME280/BME680 I2C; SDS011 serial)
  • Real Time Clock (Maxim DS3231 I2C)
  • IF482 (serial) and DCF77 (gpio) time telegram generator
  • Switch external power / battery
  • LED Matrix display (similar to this 64x16 model, can be ordered on Aliexpress)
  • SD-card (see section SD-card here) for logging pax data

Target platform must be selected in platformio.ini.
Hardware dependent settings (pinout etc.) are stored in board files in /hal directory. If you want to use a ESP32 board which is not yet supported, use hal file generic.h and tailor pin mappings to your needs. Pull requests for new boards welcome.

3D printed cases

Some 3D printable cases can be found (and, if wanted so, ordered) on Thingiverse, see

Power consumption

Power consumption was metered at around 450 - 1000mW, depending on board and user settings in paxcounter.conf.

By default, bluetooth sniffing is not started. If you enable bluetooth be aware that this goes on expense of wifi sniffing results, because then wifi and bt stack must share the 2,4 GHz RF ressources of ESP32. If you need to sniff wifi and bt in parallel and need best possible results, use two boards - one for wifi only and one for bt only - and add counted results.

=== "Deactivate BLE sniffing (Default)"

``` c linenums="29" title="paxcounter.conf"
#define BLECOUNTER 0
```

=== "Activate BLE sniffing"

``` c linenums="29" title="paxcounter.conf"
#define BLECOUNTER 1
```