Detects when mailbox flap is opened using a PIR motion sensor and sends a notification via LoRa.
- Copy
src/common/credentials-example.htosrc/common/credentials.hand update the details with your information. - Copy
platformio_user_preferences-example.initoplatformio_user_preferences.iniand update the details with your information.
-
XIAO ESP32S3 & Wio-SX1262 Kit
-
PIR AM312
-
3.7 V Lipo Battery
-
PlatformIO on VSCode
# The ESP32S3 is blocked very often.
alias esptool.py='$HOME/.platformio/packages/tool-esptoolpy/esptool.py'
esptool.py --chip esp32s3 --port $PORT erase_flash
## Troubleshooting
Mac with ARM architecture can face the following error:
Adafruit_TinyUSB_Arduino arm-none-eabi-g++: Bad CPU type in executable
This can be solved by installing Rosetta:
softwareupdate --install-rosetta --agree-to-license
Copyright (C) 2025, GPL-3.0-or-later, Nicolas Jeanmonod, ouilogique.com