Skip to main content
Activity (Hands-On)Grades 8 - 12

Build Your Own Night-Light with Arduino

Whether you want to light up a front step or a bathroom, it helps to have a light come on automatically when darkness falls. For this maker challenge, students work through the engineering design process to create their own night-lights using Arduino microcontrollers, photocells and (supplied) code to sense light levels and turn on/off LEDs as they specify. As they build, test, and control these night-lights, they learn about voltage divider circuits and then experience the fundamental power of microcontrollers—controlling outputs (LEDs) based on sensor (photocell) input readings and if/then/else commands. Then they are challenged to personalize (and complicate) their night-lights—such as by using delays to change the LED blinking rate to reflect the amount of ambient light, or use many LEDs and several if/else statements with ranges to create a light meter. The possibilities are unlimited!

A photograph taken in darkness shows a cylindrical night-light with a crackle finished that glows green and blue.Illuminate the darkness with a cool night-light!

More Like This