I suggest you familiarize yourself with my new project. This is a sensor for monitoring the opening and closing of windows and doors. The sensor has advanced functionality, I also added a shock sensor and a magnetic field detector sensor (protection against a strong magnet).
For the sensor has been developed case, so the sensor has a finished look.
The sensor has two versions. One version runs on the nRF52811 chip, another version runs on the nRF52840 chip.
Gerber file, case models, software, etc. are available on github - https://github.com/smartboxchannel/EFEKTA-DOOR-WINDOW-SENSOR
The main components:
Sleep Power Consumption:
Power consumption when sending data - 8mA.
Sketch does not use the standard method for processing data transmission errors and restoring the transport layer. The logic of the operation of the presentation() has also been changed. Automatically, a presentation is sent only once upon the first registration of a node on the network; later, a presentation can be sent by clicking on the button on the sensor. That's because it's a battery device.
4 interrupts are used to wake the device from sleep. Priority interrupt processing from the reed switch. This is a test sketch ... available on my github.
video - https://youtu.be/4p1JGMze4s0
Scheme, Gerber file, case models, software, etc. available on github - https://github.com/smartboxchannel/EFEKTA-DOOR-WINDOW-SENSOR
I hope this project has earned your like.