2019-04-06 11:37:32 +02:00
# ESP32-Paxcounter
2022-11-22 14:33:36 +01:00
![logo ](docs/assets/paxcounter_logo_white.png )
2019-04-06 11:37:32 +02:00
**Wifi & Bluetooth driven, LoRaWAN enabled, battery powered mini Paxcounter built on cheap ESP32 LoRa IoT boards**
2022-11-22 14:33:36 +01:00
[Tutorial (in german language): heise.de ](https://www.heise.de/select/make/2019/1/1551099236518668 )
2019-04-06 11:37:32 +02:00
2022-08-16 09:30:52 +02:00
[![CodeFactor ](https://www.codefactor.io/repository/github/cyberman54/esp32-paxcounter/badge )](https://www.codefactor.io/repository/github/cyberman54/esp32-paxcounter)
2022-11-22 14:33:36 +01:00
[![PlatformIO CI ](https://github.com/cyberman54/ESP32-Paxcounter/actions/workflows/build.yml/badge.svg?event=push )](https://github.com/cyberman54/ESP32-Paxcounter/actions/workflows/build.yml)
---
**Documentation**: < a href = "https://cyberman54.github.io/ESP32-Paxcounter" target = "_blank" > https://cyberman54.github.io/ESP32-Paxcounter< / a >
2020-02-05 22:35:54 +01:00
2022-11-22 14:33:36 +01:00
**Source Code**: < a href = "https://github.com/cyberman54/ESP32-Paxcounter" target = "_blank" > https://github.com/cyberman54/ESP32-Paxcounter< / a >
2019-06-29 19:02:54 +02:00
2022-11-22 14:33:36 +01:00
---
2021-01-19 16:08:59 +01:00
2022-11-22 14:33:36 +01:00
< img src = "docs/img/Paxcounter-title.jpg" >
< img src = "docs/img/Paxcounter-ttgo.jpg" >
< img src = "docs/img/Paxcounter-lolin.gif" >
< img src = "docs/img/Paxcounter-Screen.png" >
< img src = "docs/img/TTGO-case.jpg" >
< img src = "docs/img/TTGO-curves.jpg" >
< img src = "docs/img/Paxcounter-LEDmatrix.jpg" >
< img src = "docs/img/Paxcounter-Clock2.png" >
< img src = "docs/img/Paxcounter-ttgo-twristband.jpg" >
2019-04-06 11:37:32 +02:00
# Use case
2020-12-25 16:54:22 +01:00
Paxcounter is an [ESP32 ](https://www.espressif.com/en/products/socs/esp32 ) MCU based device for metering passenger flows in realtime. It counts how many mobile devices are around. This gives an estimation how many people are around. Paxcounter detects Wifi and Bluetooth signals in the air, focusing on mobile devices by evaluating their MAC adresses.
2019-04-06 11:37:32 +02:00
Intention of this project is to do this without intrusion in privacy: You don't need to track people owned devices, if you just want to count them. Therefore, Paxcounter does not persistenly store MAC adresses and does no kind of fingerprinting the scanned devices.
2022-11-22 14:33:36 +01:00
Data can either be stored on a local SD-card, transferred to cloud using LoRaWAN network (e.g. TheThingsNetwork or Helium) or MQTT over TCP/IP, or transmitted to a local host using serial (SPI) interface.
2019-04-06 11:37:32 +02:00
2020-12-25 16:54:22 +01:00
You can build this project battery powered using ESP32 deep sleep mode and reach long uptimes with a single 18650 Li-Ion cell.
2019-04-06 11:37:32 +02:00
# License
2022-11-22 14:33:36 +01:00
Copyright 2018-2022 Oliver Brandmueller < ob @ sysadm . in >
2019-04-06 11:37:32 +02:00
2022-11-22 14:33:36 +01:00
Copyright 2018-2022 Klaus Wilting < verkehrsrot @ arcor . de >
2019-04-06 11:37:32 +02:00
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
2022-11-22 14:33:36 +01:00
NOTICE:
2019-04-06 11:37:32 +02:00
Parts of the source files in this repository are made available under different licenses,
see file < A HREF = "https://github.com/cyberman54/ESP32-Paxcounter/blob/master/LICENSE" > LICENSE.txt< / A > in this repository. Refer to each individual source file for more details.
# Credits
2022-11-22 14:33:36 +01:00
Thanks to
2019-04-06 11:37:32 +02:00
- [Oliver Brandmüller ](https://github.com/spmrider ) for idea and initial setup of this project
- [Charles Hallard ](https://github.com/hallard ) for major code contributions to this project
- [robbi5 ](https://github.com/robbi5 ) for the payload converter
2021-02-02 23:23:19 +01:00
- [Caspar Armster ](https://www.dasdigidings.de/ ) for the The Things Stack V3 payload converter
2019-04-06 11:37:32 +02:00
- [terrillmoore ](https://github.com/mcci-catena ) for maintaining the LMIC for arduino LoRaWAN stack
- [sbamueller ](https://github.com/sbamueller ) for writing the tutorial in Make Magazine
2019-11-27 22:25:34 +01:00
- [Stefan ](https://github.com/nerdyscout ) for paxcounter opensensebox integration
2022-01-28 22:17:17 +01:00
- [August Quint ](https://github.com/AugustQu ) for adding SD card data logger and SDS011 support
2022-11-23 08:27:24 +01:00
- [t-huyeng ](https://github.com/t-huyeng ) for adding a CI workflow and rework documentation