DIY Bicycle Indicator Lights

by OladepoI in Circuits > Wearables

2406 Views, 23 Favorites, 0 Comments

DIY Bicycle Indicator Lights

20220509_164935.jpg
20220509_232259.jpg

The bicycle indicator light is a wearable device that is most suitable for use when riding at night time. The device can indicate which direction the rider is about to turn. The device also enables the vehicles behind the rider to be aware of the rider's presence.

Supplies

Hardware:

  1. Velcro
  2. LED pack
  3. PIC16F18313
  4. Resistor Pack
  5. MPLAB Snap programmer and debugger
  6. 3D Printer
  7. Bantam Othermill Pro (or just any other CNC PCB machine)
  8. Copper clad board
  9. Stripboards
  10. Pin headers
  11. 2N2222 transistor
  12. Connecting wires
  13. Heat shrink tubes
  14. SPST switches (2)
  15. Toggle switches (2)
  16. 400mAH lipo battery and charger
  17. Superglue
  18. Sandpaper


Software:

  1. MPLAB X IDE
  2. MPLAB X IPE
  3. KiCad
  4. Fusion 360
  5. Bantam Tools Desktop

Draw Circuit Schematic and Prototype on Breadboard

schematic.png
20220505_190200.jpg
20220505_190218.jpg
20220505_191155.jpg

Begin by drawing out the circuit schematic in KiCad or any other CAD software you are comfortable with. In my case, I decided to select the PIC16F18313 as the microcontroller unit (MCU) for this project because it has the minimum number of pins required and it also has some additional advanced low-power features. The other parts of the circuit were designed around this MCU.


After drawing out the schematic, prototype the design on a breadboard to ensure everything is working as desired. Once everything is working fine, move on to the next step. This is where the MPLAB Snap programmer and debugger, MPLAB X IDE, and MPLAB X IPE come into the picture. If you are using a different MCU, you may need a


Design and Mill the Printed Circuit Board (Optional)

PCB.png
20220507_110102.jpg
20220507_110131.jpg
20220507_110213.jpg
20220507_110510.jpg
Bicycle Indicator: Making PCB in Bantam Other Mill Pro
20220507_095701.jpg

Import the schematic design into a PCB routing software (KiCad installation comes with both a schematic designer as well as a PCB designer).


If you are going to be using a CNC milling machine, ensure to adjust trace width, hole sizes, and via sizes to match the minimum specifications of your machine. In my case, I used the Bantam Othermill Pro to fabricate the PCB. Also, I used the 1/32" flat end mill bit to make the PCB because I wanted the process to be quick. Selecting a smaller tool would have taken a longer time to fabricate; although the result would have been finer and the minimum specifications would have also been smaller.


Another alternative to this is to just use strip boards. The advantage of the milling method over this is the repeatability i.e. You can make tens of the PCB faster using the milling machine.


All in all, just go with the most attractive and most affordable option for you.

Solder Components to the PCB and Test

20220507_165400.jpg
20220507_174954.jpg
20220507_181409.jpg
20220507_185213.jpg
Bicycle Indicator: PCB Test

Once the PCB is ready, begin to solder all the various parts to the board. Ensure to take note of not soldering components that would need to be connected to some parts of the casing directly on the PCB such as power switches and the toggle switches in this case.


After soldering all the components in place, power the board and ensure things are working as designed. If for any reason something is not working, then it is time to enter debugging mode.

Design Enclosure in Fusion 360

Fusion-3.png
Fusion-1.png
Fusion-2.png
Fusion-4.png
Fusion-5.png
20220509_151631.jpg
20220509_144206.jpg
20220509_161022.jpg
20220509_152156.jpg

The various parts of the enclosure were designed in Fusion 360: housing for electronics and cover, toggle switch enclosure, and velcro attachments.


Several prints were made before finally arriving at a suitable design for all the different parts.


The velcro attachments were also glued to the housing for electronics and the toggle switch enclosure (using superglue) as shown in the images. The locations where the glue was applied were sanded before applying the glue.


FIND ATTACHED MY ENCLOSURE DESIGNS.

Assemble Electronics and 3D Prints

20220509_163357.jpg
20220509_163404.jpg
20220509_152616.jpg
20220509_165102.jpg
20220509_164944.jpg

Now that all the parts are ready, insert the electronic parts into their various housing.


Also, put the velcro straps in their destinations.

Perform Final Tests and Trials

Bicycle Indicator: Preliminary Test
20220509_232100.jpg
20220509_232156.jpg
Bicycle Indicator: Final Test

Now that everything is in place, test your final design and enjoy your final product.