Arduino LED Indicating Light

by vickykao in Circuits > Arduino

101 Views, 0 Favorites, 0 Comments

Arduino LED Indicating Light

Arduino LED Indicating Light

Have you or the elders in your family ever want to wake up and go to the bathroom at midnight but can't find the light switch nor the way to the bathroom? This light can solve your problem! The indicating light could help you find the way to the bathroom during the night(when the room is dark). So you will be safer and it lowers the risk of falling down in the darkness while you are busy finding the lights or the way to the bathroom.

How it works: When you are ready for bed and switch off the lights, the photoresistor would sense the darkness and lights up the LED. The small LED could tell you where the button is, so you won't have to find the button in the darkness. Once you press the button, you can turn on the LED light strip(indicating light) which can help you find your way, and prevent you from hitting the wall.

Gather Materials

cool-white-ip65-5050-led-strip-light-01.jpeg
diodo-led-5mm-alta-luminosita-rosso-85kmc-30.jpeg
0J1479.1200.jpg
Electronics-White-Breadboard.jpeg
Arduino-leonardo-Made-In-Italy-2.jpeg
images.jpeg
cGcq5iZilDNlRmMilDMxQGO1EWOlRWM2YmYmJ2MykDM0UTO0MTMiNWMiNGOv0WZ0l2LjlGcvU2apFmYv02bj5SdklWYi5yYyN3Ztl2LvoDc0RHa.jpeg
resis0.5w.jpg

To make this project, we will need:

  • LED light strip
  • Arduino LED
  • Wires
  • Breadboard
  • Arduino
  • Click button
  • Photoresistor
  • Resistor

Connect the Wires

截圖 2021-05-11 上午10.41.58.png
截圖 2021-05-10 下午9.35.44.png
截圖 2021-05-10 下午9.36.38.png

Photoresistor part:

  1. + >5V
  2. - >GND
  3. one wire connect + and breadboard*
  4. put photoresistor on breadboard*, behind the wire in (3.)
  5. put resistor(blue) in front of the photoresistor
  6. insert another wire in front of resistor >A0
  7. - >breadboard
  8. breadboard> D12
  9. put one LED light behind the wire
  10. put a resistor(yellow) behind the LED
  11. wire - >breadboard

Button/Switch:

  1. wire + >breadboard
  2. insert the button(behind wire)
  3. put resistor(blue) in front
  4. breadboard>D2
  5. breadboard> -

Solder the Wires and LED Strip Light

截圖 2021-05-10 下午9.36.16.png
截圖 2021-05-10 下午11.14.38.png
截圖 2021-05-10 下午11.15.51.png

Solder the LED with jumper wires so that it could connect to Arduino. At the end of the strip light, solder 4 wires. Then connect two of the wires:

5V>+

B>breadboard

Then connect another wire behind the previous wire(aligned in a row)---wire>D10

Make It Prettier

截圖 2021-05-10 下午9.37.10.png
截圖 2021-05-11 上午1.25.43.png
截圖 2021-05-11 上午1.25.28.png
截圖 2021-05-11 上午1.25.14.png

Use a small box(in this case I use a shoebox) to put the breadboard and Arduino inside, so people won't see the messy wires. And because we don't want the photoresistor and the small LED to be blocked by the box, we need to make the box lower so that they can be seen. Therefore, the next step is to cut the box in half. (we will keep the bottom part, also the cover)

Next, cut a small hole on the side to let the LED strip light come through.

Then, on the opposite side, cut another hole to let the USB wire go through.

You might want to use hot glue to make the board more stable, and it won't move around in the box. Use the glue on the four corners of the board.

Next, poke three holes on the cover of the box: for photoresistor, LED, and button. The button should be perfectly fitted in that hole.

Coding

截圖 2021-05-11 上午10.35.37.png

Upload the codes to Arduino.

Go to this link for the code provided-----https://create.arduino.cc/editor/vkkao/306afbb7-94...

FINISH PRODUCT!!

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

Then you finish making! You now can have an indicating light in your room or you can put it in elders room to help them.