Toddler nightlight/stay-in-bed device

Post Syndicated from Liz Upton original https://www.raspberrypi.org/blog/toddler-nightlight-stay-in-bed-device/

Living with a toddler is the best thing. It really is. Seen through their eyes, everything you’re jaded about becomes new and exciting. Every piece of music is new. Frog and Toad are real people. Someone doesn’t care that you’re really, really bad at drawing, believing that you’re actually a kind of cross between Leonardo and Picasso; and you have a two-foot-tall excuse to sing Gaston at the top of your voice in public. The parents of toddlers are allowed into the ball pit at soft play. There’s lots of cake. The hugs and kisses are amazing.

frog and toad

Frog and Toad. Real people. If you are in charge of small children and do not own any of the Frog and Toad series, get yourself to a bookshop pronto. You can thank me later.

However. If my experience here is anything to go by, you may also be so tired you’re walking into things a lot. It doesn’t matter. The hugs and kisses are, like I said, amazing. And there are things you can do to mitigate that tiredness. Enter the Pi.

stay focused

I’m lucky. My toddler sleeps thorough. But sometimes she has an…aggravating habit of early wakefulness. After 7am I’m golden. I can do 6.30 at a push. Any earlier than that, though, and I am dead-eyed and leather-visaged for the rest of the day. It’s not a good look. Enter equally new parent Cary Ciavolella, who has engineered a solution. This is a project so simple even the most sleep-deprived parent should be able to put it together, using Pimoroni parts you can easily buy online. Cary has thoughtfully made all the code available for you so you don’t have to do anything other than build the physical object.

Pi nightlight

Cary’s nightlight can produce a number of different sorts of white noise, and changes colour from red (YOU’RE MEANT TO BE ASLEEP, KID) through orange (you can play in your room) to green (it’s time to get up). Coloured lights are a sensible option: toddlers can’t read numbers, let alone a clock face. It’s all addressable via a website, which, if you’re feeling fancy, you can set up with a favicon on your phone’s home screen so it feels like an app.

White noise – I use a little box from Amazon which plays the sound of the sea – and red-spectrum nightlights have solid research behind them if you’re trying to soothe a little one to sleep. Once you cross over into blue light, you’ll stop the pineal gland from producing melatonin, which is why I hate the fan I bought for our bedroom with a burning, fiery passion. Some smart-alec thought that putting a giant blue led on the front to demonstrate that the fan was on was a smart idea, never mind the whirling blades which are obvious to at least three of the senses. (I have never tried tasting it.)

With this in mind, I’ve one tiny alteration to make to Cary’s setup: you can permanently disable the green LED on the Pi Zero itself so that the only lights visible are the Pimoroni Blinkt – namely the ones that your little one should be looking at to figure out whether it’s time to get up yet. Just add the following to the Zero’s /boot/config.txt and reboot.

# Disable the ACT LED on the Raspberry Pi.
dtparam=act_led_trigger=none
dtparam=act_led_activelow=on

 

 

The post Toddler nightlight/stay-in-bed device appeared first on Raspberry Pi.