CPX Headlamp

by cmarconi in Circuits > Wearables

274 Views, 2 Favorites, 0 Comments

CPX Headlamp

Screen Shot 2022-11-15 at 8.58.37 PM.png

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

Screen Shot 2022-11-16 at 1.13.48 PM.png
Screen Shot 2022-11-16 at 1.14.38 PM.png
Screen Shot 2022-11-16 at 1.15.06 PM.png
Screen Shot 2022-11-16 at 1.15.45 PM.png
Screen Shot 2022-11-16 at 1.16.12 PM.png
Screen Shot 2022-11-16 at 1.16.46 PM.png
Screen Shot 2022-11-16 at 1.17.28 PM.png
Screen Shot 2022-11-16 at 1.18.34 PM.png

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

Download

Screen Shot 2022-11-15 at 9.26.26 AM.png
Screen Shot 2022-11-15 at 2.33.16 PM.png

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



3D Print

Screen Shot 2022-11-15 at 9.28.00 AM.png
Screen Shot 2022-11-15 at 2.38.19 PM.png
  • 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


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

Glue

Screen Shot 2022-11-15 at 9.34.16 AM.png
Screen Shot 2022-11-15 at 9.34.31 AM.png

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

Attach 3D Print

Screen Shot 2022-11-15 at 9.30.16 AM.png

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

Servo Attachment and Set Up

Screen Shot 2022-11-15 at 4.11.58 PM.png
  • 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

Cardboard Cover

Screen Shot 2022-11-15 at 8.31.42 PM.png

Cut out a cardboard circle about 2 inches in diameter

Attach

Screen Shot 2022-11-15 at 8.32.28 PM.png

Attach Cardboard cover to the headlamp using a paperclip and glue

Code

Screen Shot 2022-11-15 at 8.39.52 PM.png
  • 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