Door sensor, remix of some MYS community efforts
-
This project is a remix of a few other MYS project. The base is the excellent Window Sensor with Sensebender (high WAF) where I thought I could get some use of the tiny jModule instead. I ended up ordering from a link to dirtyPCBs in the comments.
This is the start, dirt cheap but still looks ok.
Rip it open, de-solder the glass reed switch and don't bend the pins since that will most likely kill it. Use a dremmel and remove some excess plastic in the top part of the speaker fitting.
Assemble your jModule. I didn't use any bent pins since the space is extremely limited.
As you see, the wiring is just the reed switch to GND and 3. Power and GND to the edge of the jModule (on to VCC of pro mini). Since it's battery powered the pro mini LED is removed (destroyed) and traces cut. Cut the corners of the pro mini (!) to make it fit.
Last but not least, some code. I gave NodeManager by @user2684 a try and it makes things almost to easy
/* * For v1.3 * Register below your sensors */ nodeManager.setBatteryMin(1.8); nodeManager.setBatteryMax(3.2); nodeManager.setBatteryReportCycles(2); nodeManager.registerSensor(SENSOR_DOOR,3); nodeManager.setSleep(SLEEP,3,HOURS); /* * Register above your sensors */
Every 6 hous the sensor will report battery status. On open or close it will report state then go back to sleep.
The second sensor took 15 minutes to assemble, quite ok imho...
Suggested Topics
-
Welcome
Announcements • 23 Mar 2014, 08:24 • hek 2 Apr 2014, 14:39 -
Wio-E5 (STM32 and SX1262)
My Project • 31 Dec 2024, 17:52 • nagelc 25 Jan 2025, 20:21 -
Long time test done with soil sensor!
My Project • 7 Jan 2025, 09:13 • Nicklas Starkel 13 Jan 2025, 09:10 -
Simulate Online-Recreating 'Flappy Bird' with Arduino Nano
My Project • 15 Jan 2025, 09:13 • Skylar Jones 15 Jan 2025, 09:13 -
Door chime
My Project • 23 days ago • Paul Scarbro 19 days ago -
Water Filtering and Sterilization and Hot Water Recirculation
My Project • 10 Aug 2024, 07:51 • fsgraz 12 Aug 2024, 05:25