Introduction: CPX Headlamp

This is a circus playground express headlamp. This headlamp consists of a go pro head strap, a CPX, a battery, and a servo to make it work. This was created specifically for people who are outdoors a lot such as hikers and construction workers but it can be used by anyone. The headlamp also has a lid that is meant to cover the light when it is bright and it is meant to go up when it is dark.

Supplies

Adafruit Circuit Playground Express (CPX)

  • https://www.adafruit.com/product/3333

Makerbot PLA

  • https://www.makerbot.com/3d-printers/materials/method-pla/?utm_medium=cpc&utm_source=google&utm_campaign=Search_US_ALL_Brand&utm_adgroup=MakerBot_PLA&utm_content=makerbot%20pla&gclid=CjwKCAiA9qKbBhAzEiwAS4yeDZtVdenYp0VEXLiV0N7mf_kiYv1ZDdeeUj4Upt8uSKbERLwi07KrRhoCn7kQAvD_BwE

Go Pro Head Strap

  • https://www.amazon.com/Sametop-Compatible-Fusion-Session-Cameras/dp/B01BSNPP7U/ref=sr_1_1_sspa?gclid=CjwKCAiA9qKbBhAzEiwAS4yeDRe2P7R3JXaP2JdaOb33teKNDnPvMNKbGZvt4kBO2H5x0rOSfsi3jxoCzIoQAvD_BwE&hvadid=177268951196&hvdev=c&hvlocphy=9001923&hvnetw=g&hvqmt=e&hvrand=8302358049543018732&hvtargid=kwd-59937292656&hydadcr=18478_9831933&keywords=gopro+head+strap+quickclip&qid=1667849792&sr=8-1-spons&psc=1

Continuous Rotation Micro Servo

  • https://www.adafruit.com/product/2442

Clamp

  • https://www.fastenersplus.com/products/wright-tool-12-heavy-service-forged-c-clamp?utm_term=&utm_campaign=%23%23-Wright+Tool+Performance+Max+Campaign&utm_source=adwords&utm_medium=ppc&hsa_acc=3477180114&hsa_cam=18653358238&hsa_grp=&hsa_ad=&hsa_src=x&hsa_tgt=&hsa_kw=&hsa_mt=&hsa_net=adwords&hsa_ver=3&gclid=CjwKCAiAjs2bBhACEiwALTBWZdp2-0snYUc6vwFzfwBP00ApYO3RqqwkzdsDIJTgse025JimP9EQXBoCbpoQAvD_BwE

Gorilla Glue

  • https://www.hardwarestore.com/brands/126930-gorilla-4200102-epoxy-glue-translucent-liquid-085-oz-syringe.html?ps=192&gclid=CjwKCAiAjs2bBhACEiwALTBWZdKLCaOvXfS26VBphlsxOHlxtg4tRdfv2PbPNmem_fpozbC9pj_UjxoC9P8QAvD_BwE

Aligator clips

  • https://www.amazon.com/Electrical-Crocodile-Experiment-Electronic-Inspection/dp/B09TFSC4ZL/ref=sr_1_14_sspa?crid=194MUQQVWVX97&keywords=alligator+clips&qid=1668545211&s=hi&sprefix=aligator+ckips%2Ctools%2C96&sr=1-14-spons&sp_csd=d2lkZ2V0TmFtZT1zcF9tdGY&psc=1

Paper clip

  • https://www.amazon.com/Paperclips-Suitable-Paperclip-Tontomtp-Container/dp/B09YV6K2NV/ref=sr_1_2_sspa?keywords=paper+clips&qid=1668622686&sr=8-2-spons&sp_csd=d2lkZ2V0TmFtZT1zcF9hdGY&psc=1

Step 1: Download

Click on link attached to download CPX holder and battery holder. Press export, .STL (see in picture attached)



Step 2: 3D Print

  • Once you have it downloaded go to http://cloudprint.makerbot.com
  • Select "start new print"
  • Switch the "Method X" on the top of the screen to "sketch"
  • Then click import and attach your downloaded file
  • In the Makerbot quick setting change your support type to "breakaway" and your base layer to "none"
  • Click export then save it to a USB and print it when you are ready


Step 3: Download and Print

Download Servo holder to your computer and 3D print it the same way you 3D printed in the previous step using this link

https://www.tinkercad.com/things/1CNgm09mVRb-copy-of-cpx-holder/edit?sharecode=54IBJksiyvdN85eLb3ktJ6v4bJDbXVjTKu42KtWzOSs

Step 4: Glue

Attach the servo holder to your CPX holder using gorilla glue and a clamp

Step 5: Attach 3D Print

Insert the CPX into the CPX holder using screws and attach it to your GoPro head-strap

Step 6: Servo Attachment and Set Up

  • Take servo and attach the part with 1 wing
  • Then take your alligator clip wires and attach the BROWN to GND, the RED to VOUT, and the YELLOW OR ORANGE to A1 on your CPX

Step 7: Cardboard Cover

Cut out a cardboard circle about 2 inches in diameter

Step 8: Attach

Attach Cardboard cover to the headlamp using a paperclip and glue

Step 9: Code

  • Download and Install Mu editor https://codewith.mu/
  • Copy and paste code into Mu Editor
  • Save to code.py
  • This code shows that when light it detected the lid will go down and when it is dark the lid will go up and the light will flash