Sleepduino

An Arduino shield providing three RGB LED outputs, three button inputs, a potentiometer and a buzzer. With the matching sketch, it provides a combination nightlight and white-noise generator

The Sleepduino is a relatively simple shield: it's got three RGB LEDs, three buttons, a potentiometer and a piezoelectric buzzer.

What it does, however, is rather clever.

As a new father, I've found it's difficult to convince my little bundle of noise to go to sleep at night. A common method of convincing a baby to sleep is to provide 'white noise,' either through the use of an expensive specialist baby-soother or by detuning a radio. Alternatively, there's the Sleepduino.

The buttons control the LEDs: each LED has its own button, which cycles it through seven different colours before turning it off. Press the button again, and it'll switch on again. The pot controls the volume of the buzzer, which exists to vocalise the output of a pseudorandom bit-shift register to generate a pleasing 'static' sound.

Set the LEDs to provide whatever level and colour of nightlight you think your baby - or, indeed, you - would prefer, adjust the volume of the white noise (apparently, it should be around the same volume as being in the same room as someone taking a shower) and cross your fingers that you're going to enjoy the best night of sleep you've ever had.

The code is crufty, thanks to my cargo-cult approach of melding together two existing projects into one (see the sketch header for details.) The wiring is dodgy, mostly because I have no idea what I'm doing. But it works, damnit.

Take the PCB, solder on the components from the included BOM (all the resistors are the same, so don't worry about what goes where) and you're done.

By ghalfacree
Created on February 8, 2012, 22:12

Category: Digital

Difficulty: amateurs

License:  Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License

Tags: rgb, led, piezo, buzzer, white noise, nightlight, arduino, shield

Images

Files

Fritzing Files

Code Files

Other Files

Links

Comments

  1. Christian Aschoff # Feb. 17, 2012, 9:22 a.m.

    Does it work? I mean, not electrically, but with the baby? Christian
  2. Gareth Halfacree # Feb. 29, 2012, 3:29 p.m.

    It seems to - and white noise in general is an accepted and recommended technique for helping babies to sleep: http://www.troublesometots.com/why-babies-love-white-noise/ http://anaaman.blogspot.com/2011/03/free-baby-whitenoise-generators.html http://babywhitenoise.wordpress.com/why-do-babies-like-to-sleep-by-white-noise/ There are those who say it can delay language development, although they're extrapolating from a small study done by exposing rats - not humans - to continuous white noise 24/7: http://www.secretsofbabybehavior.com/2011/09/white-noise-and-infant-hearing.html
  3. Gareth Halfacree # Feb. 29, 2012, 3:30 p.m.

    Hmm. Well, *that* comment got messed up. What kind of commenting system strips out carriage returns? Humph.

Login to post a comment...
  • Print this
© 2007 - 2011 University of Applied Sciences Potsdam