Keep The Peace In The Bedroom With A Snore Stopping Sleep Mask

Despite what my wife says, I have absolutely no evidence that I snore. After all, I’ve never actually heard me snoring. But I’ll take her word for it that I do, and that it bothers her, so perhaps I should be a sport and build this snore-detecting vibrating sleep mask so she can get a few winks more.

Part wearable tech and part life hack, [mopluschen]’s project requires a little of the threadworker’s skill. The textile part of the project is actually pretty simple, and although [mopluschen] went with a custom mask made from fabric and foam shoulder pads, it should be possible to round up a ready-made mask that could be easily modified. The electronics are equally simple – an Arduino with a sound sensor module and a couple of Lilypad Vibe boards. The mic rides just above the snore resonating chamber and the vibrators are right over the eyes. When your snore volume exceeds a preset threshold, the motors wake you up.

Whether this fixes the underlying problem or just evens the score with your sleep partner is debatable, but either way there’s some potential here. And not just for snore-correction – a similar system could detect a smoke alarm and help rouse the hearing impaired. But if the sewing part of this project puts you off, you should probably check out [Jenny List]’s persuasive argument that sewing is not just for cosplayers anymore.

ESP8266 Lullaby

The ESP8266 is certainly a versatile device. It does, however, draw a bit of power. That isn’t really surprising, though, since you would expect beaming out WiFi signals to take a little juice. The trick is to not keep the device on all the time and spend the rest of the time in deep sleep mode. [Marco Schwartz] has a good tutorial about how to use this mode to run for “years” on a battery.

[Marco] notes that even using a 2500 mAh LiPo battery, he only gets about 30 hours of operation without sleep. By putting the chip in sleep mode, the current consumption drops from about 88 mA to just over 8 mA. That’s still high, though, because the board has a power LED! By removing a jumper or cutting a trace (depending on the board), you can drop the current draw to about 0.08 mA (80 uA) when it’s not doing anything.

Continue reading “ESP8266 Lullaby”

10,000 Lumen Sunrise Lamp Curses The Darkness

Some of us need a bit of help to get up in the mornings. This can come in the form of a sunrise lamp, which simulates the light of the sunrise to fool our poor sleep-deprived brains into waking up in the depths of winter. [Lincoln Johnson] found the ones he tried were not bright enough to wake him, so he decided to build his own: a 10,000-lumen monster that can wake him up from across the room.

It uses a lot of LEDS: 5 meters of 5630 LED strip, which pulls a circuit bending 72 watts when running at full blast. This monstrosity is powered by an Arduino Pro, which is programmed to slowly increase the brightness over a period of 30 minutes, thus simulating the sunrise. It uses PWM control to fade the LEDs, and also includes a dot matrix display to show the time. Honestly, if you are able to sleep through this thing blasting your eyes, you are probably dead.

Hackaday Prize Entry: Powering A Pi From A Battery

Knocking a microcontroller into sleep mode and waking it up on demand or in intervals is common practice in many low power applications, enabling devices to stay in operation for years on a single coin cell battery. Since there are tons of applications where you might want to do similar things with a Raspberry Pi, [Patrick Van Oosterwijck] created the LiFePO4wered/Pi. The module that snaps on to eight GPIO pins of a Pi, extending it by a long life LiFePO4 battery, a charging regulator, and a proper power management. Obviously, it also makes a great UPS.

lifepo_pcbs[Patrick] realized this project by expanding his already available and equally useful LiFePO4wered/USB charging regulator module by a low power MSP430G2131 microcontroller and a load switch. A daemon on the Raspberry Pi speaks to the module over I2C, allowing you to schedule a wake-up timer, let your Pi autoboot after a power outage or just read out the current battery voltage through a command line tool. Once the Pi is safely shut down, the microcontroller will also go to sleep, resulting in a standby current of 8 uA for the whole system. Together with the 500 mAh LiFePo4 cell, that’s theoretically low enough to send your Pi-ncess into a seven-year-long sleep.

LiFePO4wered/Pi is not only good for sleeping, though. [Patrick’s] runtime tests show, that the 500 mAh cell will power a Raspberry Pi Zero and a WiFi dongle for about two hours. Because the Raspberry Pi and many USB peripherals won’t complain when only 3.2 V are present on the VBUS, [Patrick] was able to squeeze out even more runtime by dismissing the boost converter from the design and driving the Pi directly from the battery voltage. If that worries you, you can either read a detailed explanation on why that works so well or just have a look at the more compliant 5 V version.

lifepo_time_laps_cameraEventually, [Patrick] used his module to create a Raspberry Pi time-lapse camera. A little script lets the Pi take a picture on boot up, set a wake-up timer and go back to sleep again. Safely enclosed in a waterproof electric box and deployed into the wild, the camera took 120 pictures on a single charge.

We’re sure the module will find it’s way into many cool projects and we’re counting the hours until we can get one in [Patrick’s] tindie store. Until then, enjoy the time-lapse video:

The HackadayPrize2016 is Sponsored by:

 

Auto-sleep Hacked In PC Speakers

We can commiserate with [HardwareCoder] who would rather not leave his PC speakers on all the time. The Creative T20 set that he uses turn off when you turn the volume knob all the way down until it clicks. So shutting them off means repositioning the volume each time they’re switched on again. This hack kills two birds with one stone by turning on and off automatically without touching that knob.

The system is based around an ATtiny45 and a few other simple components. It uses two ADCs to monitor the rear input channels of the PC speakers. If no sound is detected for more than one minute, the shutdown pin of the speakers’ amp chip is triggered. That’s not quite where the hack ends. We mentioned it monitors the rear input of the speakers, but it doesn’t monitor the front AUX input. An additional push button is used to disable the auto-sleep when using this front input. There is also a fancy PWM-based heartbeat on an LED when the speakers are sleeping.

[HardwareCoder] was worried that we wouldn’t be interested in this since it’s quite similar to a hack we ran a few years ago. We hope you’ll agree it’s worth another look. He also warned us that the demo video was boring. We watched it all anyway and can confirm that there’s not much action there but we embedded it below anyway.

Continue reading “Auto-sleep Hacked In PC Speakers”

Controlling Real World Objects From Your Lucid Dream For $15

[Kyle Fredericks] tipped us about his first electronics project, a cheap and smart sleep mask that uses a vibration sensor to detect rapid eye movements.

As some of you may know, REM sleep is the part where you dream the most vividly and actively. If some external stimulation (sound, movement) is sent to you at this moment, it may help you take control of your dream by becoming aware of it. If not, your brain will create dream scenarios that incorporate this stimulus.

The interesting part of the concept is that the vibration sensor calibrates itself at the stage 2 sleep, when no eye movement occurs. This later allows a very accurate detection of the REM sleep stage, triggering a shelf stereo. Secondary buttons are even included in the mask sides.

[Kyle Fredericks] went to great lengths to document every step of the project, making it a perfect first step to learn electronics for beginners out there.

Decades Old TV Gets Sleep Function Thanks To 7400 Family Of Chips

[Viktor] dredged up a hack he pulled off years ago. His grandfather likes to end the day in front of the TV, but he falls asleep soon after sitting down. Rather than tick away the electricity meter all night, [Viktor] built an automatic shutoff which is akin to a modern TV’s sleep feature.

At the time microcontrollers were not as easy to source as they are now. So [Viktor] used a circuit based on the 7400 family of logic chips. It uses a multivibrator to feed some binary counter chips. These are used to divide the oscillations to establish the desired timing. He tuned the system to be about 15 minutes, but that can be adjusted using a potentiometer built into the multivibrator. When time is about the run out an LED next to the TV comes on. This way if [Viktor’s] grandfather is still awake he can press a button next to his chair to reset the counter. But if he’s already snoozing the counter will eventually switch off the television.