DIY Dodow Clone Arduino Sleep Meditation Machine

4,015

31

21

About: Messing About

Sync your breathing to the glowing lights to decrease your breath rate and hopefully fall asleep easier.

After possibly my hundredth thousandth sleepless night I was searching for anything that could help make me fall asleep quicker when I stumbled across the Dodow. It's basically three flashing LEDs that gradually slow over time with the intention of trying to relax you so you can fall asleep easier. Kind of like those meditative breathing exercises.

To me this seemed like a great project to recreate with an Arduino. I've tried to recreate as much functionality as the original; you can choose between an 8 or 20 minute mode, you have an on/off switch and a reset button. You could also play around with the code and tailor it for yourself.

Step 1: What You'll Need

x1 Arduino Nano $3.46 from banggood.com

x3 LEDs Around $0.34 each

x3 220 Resistors Around $0.13 each

x2 SPDT Switch buy 100 here for $2.76

x1 pushbutton switch buy 100 here for $3.25

x1 4AA Battery Holder $2.17 from banggood x1 small bit of perfboard to solder components on.

You'll also need wire for connections (I used 22awg), a soldering iron, solder, maybe heat-shrink tubing if you're a perfectionist. Possibly screws depending on what sort of case you make? Oh and maybe LED holders.

You could use an Arduino Uno if you don't have a spare Nano (the pins are the same), but you won't get as good battery life with the Uno.

Step 2: Upload the Code

Now upload the code to the Arduino. It'll run on a Nano or Uno without changes, however you'll get much better battery life from the Nano. If you know a little about programming you might be horrified at this code... Please feel free to improve! You can also increase/decrease the time between flashes etc.

Direct link to Github here

Step 3: Construct the Circuit

You could breadboard the circuit first and play around with the code, or just solder it up permanently.

LEDS:The shorter legs of the LEDs have the 220 Ohm Resistors connected to them, after this they go to ground.

The longer LED legs go into the following pins; D9, D10, D11

RESET SWITCH: One edge side of the reset switch goes toto the RST pin, the middle pin goes to ground. The third pin is unused.

8 MIN / 20 MIN SELECTOR SWITCH: One edge side of the switch goes to D2, the middle goes to ground. The third pin is unused.

POWER: The positive lead of the battery goes to one end of the slider switch, the middle pin goes to the ArduinoVin. The third pin of the switch is unused.

Step 4: Put the Circuit in a Case

I used a mitre-box and some spare wood to create the case, then I secured the LEDs with LED Holders into some black project DIY sheet. The back was just fibreboard with a few screws to keep it all in place. Finally I hot-glued the battery pack to the board and added some rubber feet.

Hopefully you should now have a working Dodow clone. Sleep well!

Share

Recommendations

  • Pets Challenge

    Pets Challenge
  • Growing Beyond Earth Maker Contest

    Growing Beyond Earth Maker Contest
  • Backyard Contest

    Backyard Contest

21 Discussions

0
None
Benadski

1 year ago

Isn't it even better if you use other colored LEDs? Blue makes you stay awake longer than red I believe...

2 replies
0
None
gary909Benadski

Reply 1 year ago

This is what I actually thought... Like the red lights used in submarines that don't interfere with your vision as much. However there are a lot of sleep machines that use blue, with the explanation that they aren't strong enough to produce the melatonin to keep you awake, conversely there are many articles stating that blue light before bed is bad for you. Maybe it's a sales thing? I used blue to keep it close to the original, but any colour could be used.

0
None
arduinolerngary909

Reply 6 weeks ago

there is the same question on the amazon comments. according the seller reply, the blue color is to cool down and relax. I understand this color in the dark slow down our brain flow. I assume a blue mode and a red mode can be an advantage depending on your state of mind.

0
None
yknivag

1 year ago

Great idea for a project!

Like others I looked for a way of tailoring the breath rates and the duration of each run. I found the code a little difficult to alter - there are a lot of so called "magic numbers" which would need to be recalculated every time, so I hope you don't mind but I took the liberty of cloning your GitHub repo and re-writing the code.

The code I've written (https://github.com/yknivag/Arduino-Dodow-Clone) can be be used with up to 3 potentiometers to vary the initial breathing rate, the final (target) breating rate and the length of time to slow down over. There's also a provision to set a switch to run everything at half brightness if working in a dark room.

All of these are optional and can be commented out with one line each and instead breath rates can be specified in the "#define DEFAULT_*" statements at the top of the code.

I hope this helps others who also wanted to vary timings.

7 replies
0
None
alan.phan1yknivag

Reply 1 year ago

Would you have a schematic of your version?

0
None
yknivagalan.phan1

Reply 1 year ago

You can find the schematic here https://easyeda.com/yknivag/DowDowClone

It's a little rough but it shows how to wire it up. The schematic there uses an ATTiny85 instead of an arduino - if you wish to use a standard Arduino then the pin conversion is as follows to use my code as-is (you can change the pins if you prefer in the #define statements in the code).

ATTiny Pin --> Arduino Pin

1 --> RST

2 --> 14 (A0)

3 --> 15 (A1)

7 --> 16 (A2)

6 --> 2

5 --> 6

Hope this helps

0
None
yknivagalan.phan1

Reply 1 year ago

I've added a breadboard layout for Arduino Uno to the EasyEDA page, hopefully that will make up for my lousy schematic!

Fritzing.png
0
None
yknivagalan.phan1

Reply 1 year ago

Hi, I only have it on breadboard at the moment as I am still looking for a suitable box. I'll post a picture when I have it finished.

0
None
gary909yknivag

Reply 1 year ago

Wow that's great and I think it's fantastic that you've improved the code (and extra thanks for not laughing at my version!) I'm going to print it out and have a proper read through and hopefully improve myself. Thanks again :-)

0
None
NicolasG127

1 year ago

Wow, my gf discovered the dodow few days ago and thanks to you I could quickly build one to try if it works on her sleep. Thanks very much man!

I'll also have a look at yknivag's version but yours is already working very well.

1 reply
0
None
Swansong

1 year ago

That's a pretty neat idea, I haven't seen one of those before! I wonder if something like this would help my nephew get to sleep easier. :)

5 replies
0
None
gary909Swansong

Reply 1 year ago

It actually does help me sleep, so fingers crossed. It's really crying out to be a phone app, perhaps one day soon, best

0
None
Alex Popgary909

Reply 1 year ago

Hi gary ! Actually a phone app rxist called nightwave or something like this

0
None
gary909Alex Pop

Reply 1 year ago

Ahhh ok cool, I did look but I must've missed it... That'll be great for when I'm away travelling; Thanks for letting me know! I was thinking about making an improved version, with a white noise machine and alarm clock, but I guess a phone can do this to!

0
None
Alex Popgary909

Reply 1 year ago

Hi gary ! Sorry for the late answer !
Yes, the night wave light app does the blue thing but does't make the white noise neither wake up light.
I definitely would like to make all in one around an induction charger for instance it would definitely be the wake up alarm 3.0, if you want we can check this out together, I started a wake up light a while ago and couldn't wait for the relaxing box you did, as you could see I already made one, and really appreciate it, thanks a lot !
And looking forward working remotely if interested !
Take care,
Alex

0
None
gary909Alex Pop

Reply 1 year ago

Hi Alex - your version looks great, how's it working out for you? Apologies for the late reply, instructables sometimes says I have messages then other times it doesn't?? I'd love to start working on the follow-up but I've got a long list of projects to complete first (a synthesizer and a Tempeh Incubator to name a few). Saying that though, feel free to take over the Sleep Machine if you like? I'll try and help remotely if you like... sometimes I have lots of free time, and then others, not so much :-0

0
None
Mr Joshua

1 year ago

Great work! Can you easily tailor the length of the breath times?
It might help my kids to sleep when they have trouble, although they’d do shorter breath duration than an adult I think.