Introduction: Bicycle Light

In this project I am going to show you how to create your own bicycle light which can illuminate your way during night, indicate which way you will go, including break light.

Step 1: Gather the Parts

For this build you will need the following components :

  • 11.1v battery pack with BMS
  • Arduino Pro Mini or any other small programmable board which is based on the Atmel Atmega 328p and is 5v tolerant
  • 4-channel relay with optocoupler
  • Single channel Relay with optocoupler
  • 2x 3.7v 1.5w Yellow led [with heatsink if needed]
  • 2x 12v Red led [with heatsink if needed]
  • 12v Cool-White hard led strip [ with heatsink ] ( as much needed )
  • 1x 4x1 membrane switch
  • 16x momentary switch small
  • 8 core wire or protected twisted cable which is used for network (as much need)
  • TTP 223 touch switch
  • 1x DC - DC mini Step down Buck-Converter set to "5.1v on the output or else you can fry some of the components"

Some Tools and supplies you will need for assembling this build are as follows :

  • Soldering Iron

  • Solder

  • Flux

  • PVC wires

  • heat shrink tube small and big

  • Super Glue

  • Hot glue And Hot glue gun

  • Cutter

  • Masking Tape also called Paper Tape

  • Zip Ties medium and large size

  • Wire Stripper

  • FTDI programmer or another Arduino, if you are using the Arduino pro mini to program it

  • Access to a CNC Router or Laser Machine or power tools

  • Clear Acrylic 2mm

  • Black Acrylic ( optional ) 2mm

  • MDF 3mm thick

And if your led requires a heat sink buy it with the led

Step 2: Download and Cut the Files for the Tail Light

To start, first download all the given files.

Then cut the ' Back+1(Clear) ' And then etch the parts stated to etch and finally finish it of by cutting the ' Back+2(MDF) ' file on MDF. The results should look somewhat like in the image given above

Step 3: Assembling the Tail Light

First we are assembling the Tail Light because it is the most easy yet most important part of the build.

First take the side parts of the back part and glue it with the partitions, like the 2nd Picture. Then glue them together with the middle part of the back part like the 3rd Picture. Then glue in the Bottom part also shown in the 3rd Picture. Then glue in the ' Partition Middle ' part as shown in the 4th Picture. Then add in the 1w led's with heatsinks as shown in the 5th pictures. Then add in two zip ties through the two holes on the back side parts on the extremes. Then add in the sides & finally add in the top part and for now you are done with the Tail Light.

Step 4: Making the Breaklight Buttons

First take eight momentary switch buttons then divide them in parts of two. Then solder the two buttons together, as shown in the 1st picture. Then solder two groups together as shown in the 2nd picture. Then solder all of them with each other as shown in the 3rd picture. Then solder two wires to either end as shown in the 4th picture. Then add hat shrink tube to the ends of the wires as shown in the 4th picture. Then cover all of the button with big heat shrink tube as shown in the 5th picture, and also seal the ends with hot glue.

Step 5: Cutting Files and Instructions for Assembling the Body

First Download all the files given bellow and cut them appropriately on clear acrylic or black acrylic except for the front part which should strictly be cut on the clear acrylic. Then glue the partition and the led strips together as it was done the 3rd picture. Then glue the base and the partition together, as shown in the 4th picture. Then glue in the sides of the body, as shown in the 5th picture. Then glue in the front of the body. Then after adding the electronics, whose diagram is given below, add in the back of the body. Then add the two zip ties through the middle back hole as shown in the last picture. Then after checking everything cover the holes if any with hot glue and also hot glue the wires where they get in the body. Then close the top check for openings, cover them if any and you are done with it.

Step 6: Program

Download the program given below and flash it to you Arduino which you are going to use.

Step 7: Circuit Diagram

The image given above is the circuit diagram and be sure to set the output voltage of the buck converter to 5.1v and short both the A & B terminals of the ttp223 touch button and place the front side of the power switch under the marked area on the top of the body. And also it is necessary to connect vcc to the pin 5 of the 4x1 membrane switch, but you can connect any of the 3 input pins of the Arduino to any of the other pins of the membrane keypad according to your need.

Battery Powered Contest

Participated in the
Battery Powered Contest