Your basket is currently empty!
How to build a Sleepwalking Monitor/ Pager /Alarm for your home
Ok, the problem we are solving today is “sleepwalking”. The real term for sleepwalking is “somnambulism”, and it causes 620,000 injuries per year. This project aims to reduce the number of injuries, by notifying another person in the home if you’ve:
- Left your bed (bed exit).
- Opened a window.
- Opened a door.
This will allow the other person to wake up and get you back to a place of safety. It won’t ever wake up the sleepwalker themselves, which also prevents harm. We will do this all through the use of some clever electronics, which I will teach you how to make here for less than £5. Fear not, this project can be attempted by novices and beginners with fantastic success. Note, you can also use this product in other applications, such as with the elderly who’s movements need to be monitored during the day and night.
Sleepwalking pagers/alarms on the market at the moment can cost upwards of £200. So if this product helps you, please remember to hit the “Buy me a coffee link” and donate some money to keeping this website running! Thank you.
Let’s dive get to it…
The device we will make here today is a “pager” type device. Sensors can be dotted around the home (i.e on doors and windows) and whenever one is triggered, the caregivers receiver will beep and let you know exactly which window or door has been opened. We will also use a movement sensor which detects as soon as the sleepwalkers feet hit the ground (by putting the sensor by the bottom of the bed, near the headrest).
So like baking a cake, you need ingredients. Here are the components you will need to build this product as follows:
- PIC16F628-04/P (note it has to be the 04 model) microcontroller.
- HC-12 Wireless Modules. Get one per window, door and bed sensor as needed.
- LM7805 voltage regulator.
- 0.1uF ceramic capacitors, 470ohm resistors, 4.7k ohm resistors, 10k ohm resistors. 2 or 3 of these per sensor and pager. Switches.
- A PIC microcontroller programmer (we use the Pickit2 in this tutorial).
- Hitachi HD44780 LCD controller
- Battery holder
- 3 x AA batteries.
Now, all you need to do is solder the components onto the printed circuit boards that needs fabricating. You can print and etch the pcb’s yourself using acid, or get someone to make it for you (there are plenty of vendors online). Simply print and etch this pcb file, drill the holes and solder on the components according to this schematic.
Then all you have to do is upload the following code to the sensor board PIC16F628’s and pager chip and it’s ready to go.
Now simply place the devices on the windows, doors and foot of bed. Then place the pager in the caregivers room, and you have yourself a £10 sleepwalking monitor!
Don’t forget to “buy me a coffee”.
Leave a Reply