Blinking- the Flashing Light

by enid an in Circuits > LEDs

163 Views, 0 Favorites, 0 Comments

Blinking- the Flashing Light

IMG-0747.jpg

Reference: https://www.instructables.com/Simple-Arduino-LED-...

Using this original as a standard reference, inspired by this project, I've made some changes

  • The blinking speed is faster, and the interval between pauses becomes shorter
  • The LED color has changed from red, blue and yellow to green, blue and yellow
  • Instead of directly starts blinking after connecting to the computer, I've added a button to control it
    • The LED starts operating only if you press the bottom
    • It is not continuous, if you press it once, it will run once
    • Exterior decoration that cover the exposed wires and components

Create great atmosphere in the campfire party, lead the way for people in the haunted house... It is a perfect tool for people to use in the dark! Dazzling light, shining and easy to distinguish. With the fast flashing speed in sequence, it is useful for building up the great atmosphere and being a beacon for guiding the directions along the way.

The overall structure of the appearance will be a box that made of a carton with a lampshade.

  • The box will be hollow with three walls surrounding it
  • The lampshade will be putted on top for covering the exposed wires

Prepare All the Materials

Screen Shot 2021-04-13 at 11.45.56 AM.png
IMG-0757.jpg
Screen Shot 2021-04-13 at 11.40.03 AM.png
Screen Shot 2021-04-13 at 11.41.15 AM.png
Screen Shot 2021-04-13 at 11.43.51 AM.png
Screen Shot 2021-04-13 at 11.42.55 AM.png

Prepare all the materials needed in this project

  1. Tools
    1. Hot glue gun
    2. Scissor/Box cutter
    3. Marker
    4. Ruler
  2. Material
    1. Arduino box
      1. Breadboard x1
      2. Resistors (3x240ohm) x3
      3. LED x3
      4. Button x1
      5. Jumper Cables x11
    2. Carton
    3. Thin cloth/ paper/ tissue paper

Internal Assembly

IMG-0750.JPG
IMG-0746.jpg
IMG-0748.jpg
Screen Shot 2021-04-13 at 11.55.04 AM.png
Screen Shot 2021-04-13 at 11.55.31 AM.png
Screen Shot 2021-04-13 at 11.55.50 AM.png
  1. Breadboard
    1. Insert components on your breadboard (pictures above)
      1. Use the jump cable to connect 5v to the positive row "+", connect GND to the negative row "-"
      2. Connect digital pin 11 (D11) to the one side of the resistor (same column), and use the other side to connect with the positive side of your LED (same column), finally, use another jump cable to connect the negative side of the LED to the negative row "-" (same column)
      3. Repeat step 2 again for two times, but this time change to digital pin 9 (D9) and digital pin 7 (D7)
      4. Use the jump cable to connect to one side of the resistor (same column), connect the another side with button. One wire of the button will be connected to the digital pin 2 (D2), while another wire will then be connected to the positive row "+"
  2. Uploading code into Arduino Leonardo
    1. The code is originated from https://www.instructables.com/Simple-Arduino-LED-..., I made some changes with the notes "改"
      1. My code: https://create.arduino.cc/editor/enid/80128b8e-9b8...

External Assembly (Optional)

IMG-0299.jpg
IMG-0752.jpg
IMG-0751.jpg
  1. Use ruler of measure the length, width and heigh of your breadboard. Use a marker to mark the area to be cut after the measurement
    1. For both length, width and height, measure them from end to end, even the most marginal places must be measured
    2. For the height, cut the board based on the bending level of the wires. Use the highest one as a reference, do not press or squeeze your wires
  2. Use a scissor or a box cutter to cut off the labeled areas on the cardboard.
  3. On one piece of the board, cut off a small hole for the blue line to enter to connect to the breadboard and your computer
  4. Use the hot glue gun to stick all the pieces together, place them in a shape like a sofa
  5. Put your breadboard to the box
    1. Move the button to the highest position on the far right
  6. Cover exposed parts with paper or thin cloth
    1. The upper part and the forth side

Testing Your Product

Arduino testing

Now you press the button, it will start blinking in three colors in sequence: yellow, blue, green!

Thank you for your patience to finish reading my work, and you are welcome to change to a better model freely!