Introduction: Waterproof Headlamp Wearable

Our goal is to create a wearable headlamp that is waterproof to make it safer in bad conditions. The wearable should be comfortable, easy to put on and take off, and is easy to use. 

Supplies

  1. Adafruit Circuit Playground Express (CPX): https://www.adafruit.com/product/3333
  2. Continuous Rotation Servo: https://www.adafruit.com/product/2442
  3. USB-A or USB-C to micro-B data cable
  4. Li-Ion battery: https://www.adafruit.com/product/258 
  5. USB li-ion charger: https://www.adafruit.com/product/1304
  6. MakerBot PLA
  7. 3D Printer
  8. M3 screws
  9. Glue gun
  10. Glue
  11. Foam
  12. Wires
  13. Plastic sheet

Step 1: Creating CPX Holder

First, you need to use tinkercad.com to create the CPX holder for the headband. Here is the CPX holder: https://www.tinkercad.com/classrooms/kufC1ncGqbN/activities/ckr1lxe7Wwx


Step 2: Creating CPX Holder

Step 3: Printing CPX Holder

Print out the completed CPX holder using MakerBot and your 3d printer. You can find how to print here: Makerbot Intro to 3D Printing - Google Slides. Infill density should be set to 15 percent, and number of shells should be set to 2, and layer height should be set to 0.18. The design should be printed with the support type as breakaway - model material and base layer as a raft.

Step 4: Coding

Now, you can work on coding your CPX to do the tasks you want. To code our CPX, we used adafruit's instructions on the website Circuit Playground Library. This website shows the basics of coding and gives steps you can copy and paste to use in your own designs. We used code to move the waterproof cover up using the servo and turn the light on with the switch. Our code can be copied here: Project 2 code and be pasted into python.

Step 5: Downloading Code

After you copy the code or finish coding, you can download it by plugging the CPX into your computer and saving the code to the CPX. It should blink green when it saves.

Step 6: Attaching Servo Motor to CPX

Plug in the wires from your servo to the CPX like this. Red should go to VOUT, brown should go to GND, and orange should go to A2. While it is plugged into the computer, press the buttons or switch to make sure it works!

Step 7: Making the Cover

Cut out a small circular piece of the plastic sheet that is the same size or slightly bigger than the CPX holder to cover it.

Step 8: Cutting Foam

Cut out a piece of foam the same size as the CPX holder to go underneath it. This makes the CPX holder more comfortable.

Step 9: Assembly

Now, you have all the pieces ready. To start putting it together, screw the CPX into the holder. Make sure there are no screws in the hole wires are going in.

Step 10: Assembly

Next, glue the foam to the CPX holder.

Step 11: Assembly

Attach the servo to the CPX holder.

Step 12: Assembly

Put the wires through the foam to the right spots. Red goes to VOUT, brown goes to GND, and orange goes to A2.

Step 13: Assembly

Glue the plastic circle onto the servo.

Step 14: Assembly

After this, glue the CPX holder onto the headband by the foam. You can put all the wires underneath your CPX before you glue it.

Step 15: Placing the Battery

Attach the battery by gluing it to the outside of the headband.

Step 16: Final Design

Once the steps are complete, this is the final design. Thank you for listening!