Wearable Automatic Nightlight (A.K.A. Little Rays)

Hardware & Wearables | Solo | 2017

Little Rays is an automatic wearable nightlight to help young kids conquer their fear of the dark.

I built Little Rays with an Attiny85 MPU, and some simple, commonly available discrete components. The basic idea was to use photoresistors to detect ambient light levels, and automatically turn on an LED if the room was dark enough. Originally, I had created a simple circuit without the Attiny85, using only discrete components through a simple voltage divider circuit. This solution created a gradual effect instead of a hard threshold, so I adapted the circuit instead to include a simple FET transistor for a better effect. These implementations had two primary pitfalls- for one, the resultant intensity of the LEDS was noticeably dimmer than the peak intensity, and secondly, a discrete component implementation resulted in significantly higher current consumption than the MPU implementation.

Testing out early prototype functionality and sensitivity- wow that's bright!

The final product is lacking a bit on the aesthetic side (my computer was out for repair as I was finishing up the prototype, so I couldn't create any CAD models for the casing, and my knitting skills could use some work), but I'm happy with it as a proof of concept. The current model uses twin photoresistors to detect ambient light, and is powered by a coin battery which can power the device for well over a year (conservative- my calculations estimate around 3.5 years of usage on a standard 3V coin cell 😉). This impressive battery life is achieved largely thanks to the Attiny's sleep capabilities, which I used to keep the device in an extremely low power (around 5uA!). But, since the device is designed to be perpetually "on" (even if the LED is off), I made some optimizations to the design such that the discrete components were all powered by outputs, so as not to draw power while not in use. I also programmed in an automatic shutoff, and a toggle switch to manually turn the light back on.

Final prototype, fits in a compact package

Overall, I'm pretty happy with how it turned out- it's a pretty functional proof of concept that delivers on brightness, cost, convenience, and battery life. Now that my computer's back, I'm looking to redesign the casing, for a more polished presentation.