Day and Night

by -Palewolf- in Circuits > Arduino

150 Views, 0 Favorites, 0 Comments

Day and Night

截圖 2021-05-11 下午1.33.25.png

source: https://www.instructables.com/Arduino-Basics-With...

Intro: this is for the mothers who have little babies in their house, since the babies are scare of dark so they need a night light which is the yellow light in my device, but they also need white light so they can see clearly in the night when they are not sleeping. This is a light that has one Yellow led and 2 white led lights. you can change the color by pressing the button on the left. Yellow for the night, White for the day.

Materials

IMG_5801.jpg

Button X1

Wires X7

2 white LED 1 Yellow LED

resistance X4

Arduino Board X1

prototype Board X1

The Circuit

截圖 2021-05-10 下午10.12.33.png

What I Change From the Original Author of the Light

In the original light, there is only 2 light but I change it into 3 light because I think we need more light in the day and less light at the night.

Code

https://create.arduino.cc/editor/palewolf/e8c45b75-526a-485b-8acc-2c3abc50b016/preview

Video

https://www.youtube.com/watch?v=lFFKqLFFyMc