From 6dc03fc0e6ce3e3c943fa122300a7be9d30d8d3d Mon Sep 17 00:00:00 2001 From: Klaus K Wilting Date: Sun, 15 Jul 2018 22:19:05 +0200 Subject: [PATCH] readme.md updated --- README.md | 31 ++++++++++++++-------------- platformio.ini | 6 +++--- src/hal/{lolin32.h => lolin32lite.h} | 7 ++++--- 3 files changed, 23 insertions(+), 21 deletions(-) rename src/hal/{lolin32.h => lolin32lite.h} (65%) diff --git a/README.md b/README.md index 996ee63d..fb182d98 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ Paxcounter is a proof-of-concept device for metering passenger flows in realtime 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. -Bonus of this project is that metered data is transferred via a LoRaWAN network, not via usual GSM/LTE or Wifi uplink. +Metered counts are transferred to a server via a LoRaWAN network, and/or a local SPI cable interface. You can build this project battery powered and reach a full day uptime with a single 18650 Li-Ion cell. @@ -19,26 +19,27 @@ This can all be done with a single small and cheap ESP32 board for less than $20 # Hardware -Supported ESP32 based LoRa IoT boards: +**Supported ESP32 based boards**: -- **Heltec LoRa-32** -- **TTGOv1** -- **TTGOv2** -- **TTGOv2.1** -- **TTGO T-Beam** -- **Pycom LoPy** -- **Pycom LoPy4** -- **Pycom FiPy** -- **LoLin32** + [LoraNode32 shield](https://github.com/hallard/LoLin32-Lora) -- **LoLin32 Lite** + [LoraNode32-Lite shield](https://github.com/hallard/LoLin32-Lite-Lora) +*LoRa & SPI*: + +- Heltec: LoRa-32 +- TTGO: T3_v1, T3_v2, T3_v2.1, T-Beam +- Pycom: LoPy, LoPy4, FiPy +- Wemos: LoLin32 + [LoraNode32 shield](https://github.com/hallard/LoLin32-Lora), [LoraNode32-Lite shield](https://github.com/hallard/LoLin32-Lite-Lora) + +*SPI only*: + +- Pyom: WiPy +- WeMos: LoLin32, LoLin32 Lite, WeMos D32 Depending on board hardware following features are supported: - LED - OLED Display - RGB LED -- button -- silicon unique ID -- battery voltage monitoring +- Button +- Silicon unique ID +- Battery voltage monitoring - GPS Target platform must be selected in [platformio.ini](https://github.com/cyberman54/ESP32-Paxcounter/blob/master/platformio.ini).
diff --git a/platformio.ini b/platformio.ini index 2cd52f94..f51f3aba 100644 --- a/platformio.ini +++ b/platformio.ini @@ -11,7 +11,7 @@ ; ---> SELECT TARGET PLATFORM HERE! <--- [platformio] -env_default = generic +;env_default = generic ;env_default = heltec ;env_default = ttgov1 ;env_default = ttgov2 @@ -22,7 +22,7 @@ env_default = generic ;env_default = fipy ;env_default = lolin32litelora ;env_default = lolin32lora -;env_default = lolin32 +env_default = lolin32lite ; description = Paxcounter is a proof-of-concept ESP32 device for metering passenger flows in realtime. It counts how many mobile devices are around. @@ -189,7 +189,7 @@ lib_deps = build_flags = ${common_env_data.build_flags} -[env:lolin32] +[env:lolin32lite] platform = ${common_env_data.platform_espressif32} framework = arduino board = lolin32 diff --git a/src/hal/lolin32.h b/src/hal/lolin32lite.h similarity index 65% rename from src/hal/lolin32.h rename to src/hal/lolin32lite.h index 1b6ce3ea..b30f76ae 100644 --- a/src/hal/lolin32.h +++ b/src/hal/lolin32lite.h @@ -1,11 +1,12 @@ -// Hardware related definitions for lolin32 (without LoRa shield) +// Hardware related definitions for lolin32lite (without LoRa shield) + +#define CFG_sx1272_radio 1 // dummy // disable brownout detection (avoid unexpected reset on some boards) #define DISABLE_BROWNOUT 1 // comment out if you want to keep brownout feature -#define HAS_LED NOT_A_PIN // Led os on same pin as Lora SS pin, to avoid problems, we don't use it +#define HAS_LED 22 // on board LED on GPIO22 #define LED_ACTIVE_LOW 1 // Onboard LED is active when pin is LOW -#define HAS_RGB_LED 13 // ESP32 GPIO13 (pin13) On Board Shield WS2812B RGB LED #define HAS_SPI 1 // comment out if device shall not send data via SPI