d:hack 2022
To make a smarter mail-box, that alerts me that the mail box has been opened (with bills and advertisements inserted)
- Nordic Thingy:53
- Nordic nRF52840
- Some random reed-switches
Install the nRF Connect for Desktop, and nRF command line tools to enable VS Code extension. In parallell, try out nRF Edge Impulse to evaluate some of the inbuilt functionality of Thingy 53
Made attempts to solve the problem using the ML models generated using Edge Impulse based on the light sensor.
Collected seconds of darkness / light with the built-in light sensor of the Thingy:53, and developed a model that would differentiate between open/closed states of mail-box this way.
However, this failed to solve the issue with actually alterting me to changes.
I also failed to flash the Thingy:53 with new programs, so I abandoned this path.
Luckily, I brought a TTGO T-DISPLAY RP2030 to d:hack and was able to connect the reed-switch to the microcontroller and measure proximity to a magnet as shown in the video.
20221208_121421.3.mp4
After making the video, I realized that the RP2030 does not come with its own WIFI/BLE circuits. Ups. Luckily, Morten had some ESP-8266 laying around and I was eventually able to make it connect to my phones WIFI and trigger a web-hook using IFTTT. That marks the end of day 1. Day 2 I hope to either find a suitable ESP-32 or convince the ESP-8266, to combine the achievements of the RP2030 and the 8266 today. That is, measure a change in magnet proximity (as a proxy for a opened mailbox) and report it via wireless to me.