Introduction: FADing (Fall Asleep Device)
This device is a gift I have made and offert several times since 2 years. The version I made for this tutorial is the most complete of all because it takes into account the suggestions I've had in the past. I would also point out that English is not my fluent language but i hope to be understandable.
There are devices that helps you to wake up or fall asleep "naturally" with light. The device I present helps you fall asleep by synchronizing your breathing with the variations of light intensity emitted by it. Inspire by this https://www.mydodow.com/en but with more control and option on it.
With it, you will be able to relax more easily and put aside your thoughts that prevent you from sleeping. Depending on who the device works on and who has tested this principle, you may fall asleep easily in 5 to 15 minutes if it works on you.
The device emits a light whose intensity varies several times per minute. When the intensity of light increases, breathe in, when the intensity decreases, breathe out. During the full cycle, the frequency slowly decreases from 11 to 6 breaths per minute.
UPDATE 1 (27 january 2018) : I added new photos, changed the color of the LEDs as suggested in the comments, add a new LED (blue) inside the box, use thinner wires, sanded the box, redone the bottom plate so that it is slightly larger than its housing so that it stays in place by adjustment, and add Fritzing file. The next update to come will be the rewriting of the program taking into account some brillants comments bellow.
Step 1: The Box
The first models I made were simpler than the one I'm going to detail. These models used only one LED.
A simple small box that can hold an arduino, a relay and a 9V battery can be enough. A LED lights the ceiling, the second added in this tutorial illuminates the device for people who do not fall asleep on their back and now can watch it from the side.
I took advantage of the remaining pieces of wood and Solidworks software to size the box.
For a box with harmonious dimensions that doesn't look too high or too big, I use the golden ration which is 1.61. The base is a cube of 60mm, its total height has been defined by the calculation 60 x 1.61 that give around 97mm.
I used a circular saw to cut to size and a router to dig the inside of the box.
Acrylic cutting and drilling was done between 2 pieces of wood to prevent it from breaking.
I had planned to keep the bottom cover with magnets but the use of too big wires does not leave me enough space. While waiting for a next update with the use of thin wires, the lid is held in place tightened in its housing.
The upper part is screwed from the inside of the box.
The LED and inside acrylic are painted blue with a marker. /!\ Update. I sandpaper the blue on the acrylic inside the box to manage different light color from inside.
Step 2: The Electronics
You just need :
- 1 Arduino Nano
- 1 10K Resistor
- 1 Diode 1N4007
- 2 LED (1 more for the update)
- 2 push buttons
- 1 9V batterie connector
- 1 4.5V Relay
1 small prototyping board piece
I use the free software Fritzing to think about the schematics and draw a prototyping board trace.
There is no battery discharge when the unit is turned off. A long press on the start button allows the arduino, once it finish start, powering the relay itself with its D4 output.
The diode protects the arduino from the 9v battery.
The resistor is for pull up of the mode push button.
One push button is for the startup, the other one is use for several features.
Step 3: The Program
Here the program :
Step 4: How to Use It
To turn the unit on, press the power button until the LED flashes twice. The default operating time of the unit is 8 minutes. If you want to add time, you have 5 seconds after startup to add 2 minutes by short press the mode button. Once the 5 seconds have elapsed, the unit will blink the number of times you have pressed the button and start operation using the ceiling LED.
During operation, if you want to switch between LEDs, press the mode button briefly.
The unit turn off automatically at the end of operation but you can press the mode button for more than one second to shutdown.
Step 5: Conclusion
The device will work best if you don't just spend an hour using your smartphone and you're not too awake.
Not to mention the device, it is important to get in good condition before going to bed and having a quiet time away from the screen 30 minutes before going to bed. With food, sleep is the most important thing for the human body. Food gives strength while sleep gives energy. The lack of sleep leads to depression. It's essential to be able to relativize on all the worries and stress that overcome, to have the mind and body rest to deal with all our problems.
I coming soon update with another pictures and more explanation on the program.
If you need more information for the realization or comprehension of the device, feel free to ask.
Participated in the
First Time Author Contest 2018
Participated in the
Epilog Challenge 9
Participated in the
Arduino Contest 2017