Build Your Own Night-Light with Arduino

preview_player
Показать описание
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 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!

View the full activity at TeachEngineering:

Music: Hot Mess - Audionautix

Рекомендации по теме
Комментарии
Автор

I followed every single steps, for some reason the light flickers when running the program but don't light afterwards

rhythmray
Автор

mine worked when I turn off turns on when it turn on its off

nathanielzammit