Introduction: Bicycle Turning Signal Lights
Accident occurrences can be minimized with preventive measures. One of my dad’s friend had a serious concussion as he was hit by a bicycle making a sudden left turn without warning. He was hospitalized for two days. I thought the lack of communication between the cyclist and the pedestrian is the cause of the accident. Therefore, I designed a signaling device that can indicate the cyclist’s clear intention in making turns to the pedestrians as well as other motorists prior to making turns, just like the function of signal light in an automobile.
Step 1: Materials Required
- Arduino Leonardo Board
- Bread Board
- Two Paper Box(one smaller and one bigger)
- Utility Knife
- Led Light (Blue x1, Red x1, Yellow x1)
- Cellophane (Blue x1, Red x1, Yellow x1)
- Aluminum Foil
- A Pair of Scissors
- A Bunch of Wires
- Duct Tape
- A Power Bank
- A USB charge line
- 4 button switch
- 3 resistors
Step 2: Programming
- Define the variables→
- Set the blue button as (digitalread2) and blue light as (digitalwrite12)
- Set the yellow button as (digitalread3) and yellow light (digitalwrite7)
- Set the red light as (digitalwrite6) A
- After defining the variables, set up two “is else” loops, one for the right light and one for the left light. And if the two loops are not activated, the red light will shine continuously.
- Here's the link to the code:https://create.arduino.cc/editor/12345Arduino/0f26257b-8a96-4c18-ad25-3df6afc8d790/preview
Step 3: Assembling the Circuit
Take a look at the program and the variables set. Then, assemble the LED lights according to the program. After connecting the wires, make sure to check if there are any mistakes. If the circuit can’t work, check again. Sometimes an error can be as small as connecting an LED’s positive and negative legs in opposite holes. After making sure the circuit works, use clay at the loose seams of components to make sure they won’t fall off. The pictures below show how the wires and the circuit should be connected.
Step 4: Making the Actual Machine
Outer Box: First of all, get a box. The size doesn’t matter much, but if you want to make the machine exactly as mine, get a box of 19.7 cm(width) x 26 cm(length) x 13 cm(height). Then, cut a rectangular hole at the back of the box, which is about 1 cm(width) x 3.5 cm(length). Tape the borders of the box to make sure it doesn’t crack. On the front, cut a rectangle in the middle 2.8cm(width) x 4 cm(length). Then cut two congruent arrow shapes on the left and right sides of the rectangle. Lastly, tape different colors of cellophane on the inside of the box, covering the area of the cutout rectangle and two arrows in the front(blue on the right arrow, yellow on the left arrow, and red on the rectangle in the middle). The outer box is done! You are half-way through in making the actual machine.
Inner Box: After this is done, find another box is slightly smaller than the outer box. Cut open the top of the box. Cut a hole that has a similar size as the hole on the outer box. Then, cut threes circles that has 0.7 cm in diameter on the front of the inner box. Put an aluminum foil on the front of the inner box(also cut three circles correspond to the location of the three circles on the box). The inner box is finished!
Combining: Put the inner box inside the outer box and fix it with tape so it won’t move around. Let the wires connecting the “4 button switch” through the rectangular cutout on the back of the inner and outer box. Pull the three lights through the three circular cutouts of the inner box, visible under the cellophane of the outer box. Connect the power bank to the assembled circuit, and the machine is ready to work.