Unicorn Nightlight - The Toddler Whisperer

Featured Project

A 3D printed smart nightlight that uses color psychology to help toddlers follow bedtime routines

Completed August 1, 2024

Technologies Used:

3D PrintingESP32WLEDLED StripsSolderingParenting Tech
Unicorn Nightlight - The Toddler Whisperer screenshot 1

Unicorn Nightlight - The Toddler Whisperer

The Problem: Bedtime Battles

I discovered a toddler hack that every parent needs to know. Of course, they don't listen to their parents, and when you say it's bedtime, your word means nothing to them. But by combining a fascination with color and a favourite animal, you can coax toddlers into believing that going to bed at the "right" time is not your idea, but rather the command of a higher being. The nightlight!

The Solution: Smart Unicorn Magic

We'd had some success with the Gro Clock, but it's a little boring, and only does two colours. I found this design by SouthpawBob on Thingiverse (inspired by these dinosaur lights) and thought I would give it a try. It's a hit!

How It Works

The magic is in the programming and color psychology:

  1. Bedtime Routine Begins: The unicorn glows bright rainbow colours when the bedtime routine starts
  2. Time for Bed: It transitions to a gentle rainbow pattern cycle when it's time to get into bed
  3. Sleep Time: When it turns red, it means it's time to close your eyes
  4. Morning Rule: "If the unicorn is still red, you stay in bed"

Success Rate: It works around 95% of the time. 2.5% is down to dodgy soldering and 2.5% due to toddlers just doing what they want. But any parent will tell you that 95% is a really, really good ratio!

Technical Implementation

3D Printing

The printing itself is pretty simple. It comes in 4 (and a bit) parts:

  • Base (black) - Houses all the electronics
  • Diffusion Sheet (white) - Thin sheet to diffuse the LED lights evenly
  • Cover - Goes over the base and holds the white sheet and picture details in place
  • Details - Extra bits for the nostril and eyelashes

Fun fact: The cover actually failed before it printed the whole way down, but I had enough to use it as a "lid" of sorts and that worked fine, so I never bothered to reprint it. Sometimes imperfection is perfectly functional!

Electronics and Programming

Components Used:

  • ESP32 microcontroller - The brain of the operation
  • LED strip lights - Addressable RGB LEDs for the color magic
  • WLED firmware - Open-source LED control software

Assembly Process:

Planning Phase: After printing the base, I cut out some strips of paper and marked the size of my LED strip lights and the distance between each light so that I could plan where I was going to place them.

Using paper strips to plan the layout of the LED strips.
Using paper strips to plan the layout of the LED strips.

Simplification: I simplified my original plan to make it practical (and easier), cut the strip, and soldered it all together.

LED strips wired up and glued down.
LED strips wired up and glued down.

ESP32 Setup: I got a few of these ESP32 modules and flashed them with WLED and they work so well. As it's only a few lights, I have wired them to the 3V pin so that I could use a single connector, but they work fine.

The ESP32module I used.
The ESP32module I used.

Why This Project Works

The Psychology

  • Authority Transfer: The unicorn becomes the authority figure, not the parent
  • Visual Cues: Colors provide clear, non-verbal communication
  • Routine Reinforcement: Consistent color patterns create predictable expectations
  • Engagement: The "magic" keeps toddlers interested in following the rules

The Technology

  • WLED: Incredibly versatile and easy to program
  • ESP32: Reliable, WiFi-enabled, perfect for home automation
  • 3D Printing: Custom housing that's both functional and appealing

Lessons Learned

  1. Imperfection is OK: The failed print still worked perfectly for the intended purpose
  2. Planning Pays Off: Taking time to measure and plan the LED placement was crucial
  3. Simplicity Wins: The simplified wiring approach was more reliable than complex solutions
  4. Parent Hacks Work: Sometimes the best solutions combine technology with psychology

Future Improvements

  • App Integration: Could add smartphone control for custom routines
  • Sound Integration: Add gentle sounds or lullabies
  • Multiple Profiles: Different routines for different children
  • Seasonal Themes: Holiday-specific color patterns

Impact

This project has been a game-changer for our bedtime routine. It's amazing how a simple combination of 3D printing, some LEDs, and clever programming can solve such a universal parenting challenge. The unicorn has become a beloved family member who just happens to be very good at enforcing bedtime!

Files and Resources

  • Original Design: SouthpawBob on Thingiverse
  • Firmware: WLED (open source)
  • Inspiration: Dinosaur lights project

This project perfectly demonstrates how maker skills can solve real-world problems in creative and effective ways.