yknivag / Arduino-Dodow-Clone

DIY Arduino Clone of DowDow Sleep Meditation Machine
8 stars 0 forks source link

Not enough pause at full inhale or full exhale. #1

Open Ynot1 opened 5 years ago

Ynot1 commented 5 years ago

Hi

I have just started to build my own dodow like device, and started with your excellent code. Thanks for making it available.

I am making my device take its start, stop and timing information via wifi from my Alexa controlled system, and using an esp-01 / esp8266 to make that easy.

I have the first cut of the software running now, but i can already see a problem that you might be able to direct me on, and maybe offer some suggestions.

I have never seen a real dodow in action, but looking at YouTube I can see it has quite pronounced periods where the user is supposed to hold a full in breath or out breath . Maybe I screwed up somewhere when I stole your work, but your code doesn’t seem to follow this - it moves quickly between inhale and exhale. I find myself getting quite breathless following it actually, even if I slow down the initial rate a few clicks.

I love the way your code does it’s own math and drives led intensity of each breathing phase just from the 1 input period, and would like to continue that approach if I can. We might need another variable in the mix, maybe 2, inhale-hold and exhale-hold.

Are you using your code in practise, and if so, have you noticed this issue? Or is it just me?

Because I have wrapped so much Alexa related control around your dodow clone code, I may not be able to easily offer complete edit suggestions, but I will update this issue with whatever I come up with.

Ynot1 commented 5 years ago

I think I will try and implement 4:7:8, it looks popular on google....

The specific amount of time spent on each stage isn't important, but the ratio of 4:7:8 is what's most critical. This means the breathing technique can be adjusted based on the level of your breath-holding ability. Whether you have swimmer's lungs or some trouble catching your breath, the exercise can be sped up or slowed down as long as the 4:7:8 ratio is being kept for the three phases — that is, hold your breath for roughly double the time it took you to breathe in, then exhale for exactly double your inhale time. Focus is important, too. It's easy to let your mind wander to the events of the day, but when you notice your thoughts straying, force yourself to turn back to the 4-7-8 breathing technique.

If You Snooze, You Will Not Lose

The 4-7-8 technique works because when it comes to your nervous system, breathing is special. It's both an automatic reflex and a voluntary action — think about the way your breathing speeds up when you're scared and slows down when you're calm, all without your control. Stressful situations can trigger other automatic reflexes, such as an increase in heart rate and the release of stress hormones. But because breathing is part of that automatic system, consciously slowing your breathing can also slow down those other stress reactions. The 4:7:8 breathing ratio forces you to slow your breathing, which helps you fall asleep in a shorter period of time and sleep longer through the night.

Ynot1 commented 5 years ago

Even that ratio doesn’t address the period between inhalation’s . Hmmm