LED FLASH

Introduction: LED FLASH

改自 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

Step 1: Build Up the Device 組裝裝置本體

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

Step 2: Prepare Your Box 加工盒子

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

用延長線將燈泡拉出盒外

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

在盒子上方和側邊挖洞

Step 3: 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

Step 4: Finish!

It should look like this when you are finished!

Make a small lampshade by paper if you need it.

Be the First to Share

    Recommendations

    • Space Contest

      Space Contest
    • First Time Author Contest

      First Time Author Contest
    • Metal Contest

      Metal Contest

    Comments