Arduino Warning Light

by eric930610 in Circuits > LEDs

211 Views, 0 Favorites, 0 Comments

Arduino Warning Light

Arduino Warning Light

Today we're going to make a warning light that can prevent you from being crushed by other while you're walking.

Supplies

8 LED

13 lines

4 resistances

1 ultrasonic sensor

1 box (with cover)

Circuit Diagram

截圖 2019-12-16 下午10.06.06.png
截圖 2019-12-16 下午10.14.28.png
截圖 2019-12-16 下午10.14.21.png
截圖 2019-12-17 上午10.18.38.png

Be careful! From D10 to D13 are red LEDs, and D2 and D3 are green LEDs

Coding

Packing Up

截圖 2019-12-16 下午10.33.12.png
截圖 2019-12-17 下午7.44.57.png

1. Cut a 12.5cm *7cm hole on the cover.

2. Find a board that is able to make light transmit through it.

3. Cut the board and cover it on the hole. (Suggestion: stick your board from inside, it will look better.)

4. Take the other part of your box and cut two holes on the side, it's for Ultrasonic sensor.

5. Cut another hole for your USB cable.

6. Put your Arduino inside and you are totally finished.