Loading 3D model… large boards can take a moment.
sensing letters in your letterbox via two infrared proximity sensors (HSDL9100), sending out status via lora / lorawan, using RAK3172 (based on STM32WLE5CC) CPU/RF, powered by a CR2032 battery.
This project was inspired by the heise ct briefkasten sensor project
https://www.heise.de/ratgeber/IoT-Netz-LoRaWAN-Briefkastensensor-mit-hoher-Reichweite-selber-bauen-4417179.html
https://github.com/jamct/radio-mailbox
and is a direct successor of version 1: https://github.com/hierle/letterbox-sensor
Contents:
An extended web ui by Peter is available here: https://github.com/pbiering/letterbox-sensor-web
A nice alternative software by Henrik, using Lora P2P mode is available here: https://github.com/HonkStonk/MightyMailbox
Compiled and flashed with ArduinoIDE with RAKWireless STM32 extensions
Features:
Changes to v1:
BOM (digikey.de):
| Count | Part number | Description | Usage |
|---|---|---|---|
| 1 | RAK3172-8-SM-NI | CPU/RF-Lora NO IPEX! | CPU/RF module |
| 2 | CS1213AGF260 | Tactile switch | Boot/Reset |
| 2 | HSDL-9100-021/024 | Proximity Sensor | Proximity sensors |
| 2 | CRGCQ1206F33R | RES 33 Ohm 1206 | Proximity sens LED |
| 2 | CRGCQ1206F1M0 | RES 1M Ohm 1206 | Proximity sens diode |
| 1 | BU2032SM-FH-GTR | CR2032 COIN CELL HOLDER | Battery |
| 2 | TAJE477M010RNJ | CAP tant 470u | Battery supporting caps |
| 1 | LQG18HN1N8S00D | IND 1.8NH 0603 | Antenna matching |
| 1 | GRM1885C1H2R7CA01D | CAP 2.7PF 0603 | Antenna matching |
| 3 | GRM188R72A104KA35D | CAP CER 0.1u 0603 | Suppressor caps |
| 2 | GRM188D71A106KA73D | CAP CER 10u 0603 | Suppressor caps |
| 1 | RAHUC31AUTR | USB-C connector | USB |
| 1 | FT230XS-R | FTDI USB Serial UART | USB UART |
| 1 | MI0805K601R-10 | Ferrite bead 0805 | USB power |
| 2 | AC1206FR-075K1L | RES 5.1k Ohm 1206 | USB power sens |
| 2 | CRGCQ1206F22R | RES 22 Ohm 1206 | USB lines |
| 1 | GRM188R72A104KA35D | DIP switch | Power switch USB/Battery |
| 2 | AA3528LSECKT/J4 | LED orange | Status/USB status |
| 2 | CRGCQ1206F220R | RES 220 Ohm 1206 | Status LEDs |
| 2 | RC1206FR-0710ML | RES 10M Ohm 1206 | Battery voltage measure |
RAK3172 documentation:
How to compile:
Follow the instructions on
https://docs.rakwireless.com/Product-Categories/WisDuo/RAK3172-Module/Quickstart/
in short:
For configuration adjust config.h and lorawan.h
config.h:
lorawan.h:
Additional notes:
Letterbox sensor v2 lorawan payload package byte structure:
| byte | 0 | 1 2 | 3 4 | 5 6 | 7 |
|---|---|---|---|---|---|
| 0x00=empty | battery | sensor1 | sensor2 | threshold | |
| 0xFF=full | voltage | raw | raw |
Todos:
Have fun!
No comments yet. Be the first to ask about this board.