LED FLASH

by ziyuan_kur0 in Circuits > Arduino

340 Views, 0 Favorites, 0 Comments

LED FLASH

螢幕快照 2020-04-16 上午9.39.32.png

改自 Source: https://www.instructables.com/id/LED-Light-2/

一個簡單的LED燈閃爍裝置,藉由更改閃爍時間和燈罩,可以作為夜燈使用。

Web that might be useful for buying materials:

https://www.icshop.com.tw/

將原本的一顆燈改為兩個燈,使原本的夜燈更加明亮。

Supplies

準備材料:

- A box (any box that fits to your Arduino board will be fine, highly suggest that the length should be longer than 20cm, and the width should be longer than 12cm.)

- A paper

- LED lights

- Wires

- Resistor

- Arduino Leonardo

- Computer

Build Up the Device 組裝裝置本體

螢幕快照 2020-04-15 下午9.48.04.png
S__6242314.jpg

Connect the positive electrode (the longer end) of the LED light to D Pin.

燈泡正極接向D Pin

Connect the negative electrode (the shorter end) of the LED light to the resistor.

燈泡負極接向電阻

Connect a wire from the negative sign(-) to the GND, and another wire from the positive sign(+) to 5V.

一條電線把負極接到GND,另一條將正極接到5V

Prepare Your Box 加工盒子

S__6242313.jpg
S__6242309.jpg
S__6242312.jpg

Use the wire and pull the lightbulb out of the box.

用延長線將燈泡拉出盒外

Dig small holes on the box so you can pull the wires out.

在盒子上方和側邊挖洞

Copy the Code Below

1. You can change the delay time 改變延遲時間

2. Copy and Paste the code if you add more lightbulb 如果你想要加更多燈泡,將程式複製貼上即可

CODE LINK: https://create.arduino.cc/editor/annika_lin/77236361-86be-41e4-b81f-f583ad0beab4/preview

Finish!

LED LIGHT FLASH
S__6242307.jpg

It should look like this when you are finished!

Make a small lampshade by paper if you need it.