Crafting a Hat Headlamp
![IMG_5538.JPG](/proxy/?url=https://content.instructables.com/FPQ/RADL/IUG0Q3BP/FPQRADLIUG0Q3BP.jpg&filename=IMG_5538.JPG)
Here you will learn to make a simple circuit to build a hat headlamp without any computing boards, but it is optional to use a ATTiny board or another arduino based boards too.
Materials:
- White or Black Cap.
- White Neo Pixel LEDs
- ATTiny
- 1 or 2 - 3v Battery
- Conductive Thread
- Copper Fabric
- Conductive Tape
- Cotton Fabric
- Black or White Cotton Thread
- One needle
Step 1: Sketching and Planning
![5807f64067400cc70700084c.jpeg](/proxy/?url=https://content.instructables.com/FF1/TK2J/IUG0Q3HJ/FF1TK2JIUG0Q3HJ.jpg&filename=5807f64067400cc70700084c.jpeg)
![IMG_5550.JPG](/proxy/?url=https://content.instructables.com/F0Y/L2A2/IUG0Q3CF/F0YL2A2IUG0Q3CF.jpg&filename=IMG_5550.JPG)
![IMG_5549.JPG](/proxy/?url=https://content.instructables.com/F9C/BCOA/IUG0Q3CC/F9CBCOAIUG0Q3CC.jpg&filename=IMG_5549.JPG)
I started this project with two options, one was a pair of mittens with fade in/fade out led lights for bike riders while the other option was to build a hat with a lamp hovering over it to read at night within a personal space. Then, I decided I could make a better circuit with the hat to make a touch sensitive sensor to turn the lights on and off as well as intensifying or dimming the lights with the ATTiny.
Step 2: Change of Plans - Basic Circuit
![IMG_5533.JPG](/proxy/?url=https://content.instructables.com/FWG/VROB/IUG0Q3AM/FWGVROBIUG0Q3AM.jpg&filename=IMG_5533.JPG)
![IMG_5535.JPG](/proxy/?url=https://content.instructables.com/FPG/Z7ZA/IUG0Q3BM/FPGZ7ZAIUG0Q3BM.jpg&filename=IMG_5535.JPG)
![IMG_5534.JPG](/proxy/?url=https://content.instructables.com/F6C/ULNE/IUG0Q3B9/F6CULNEIUG0Q3B9.jpg&filename=IMG_5534.JPG)
I could not program my ATTiny so had to make some changes to be able to create a touch switch on and off. To build my switch I cut two squares of conductive fabric and sewed to a piece of fabric which I would sew onto the inside of hat. I used conductive fabric to sew my two pieces.
Step 3: Battery and Sewing
![IMG_5536.JPG](/proxy/?url=https://content.instructables.com/FY9/Y5PZ/IUG0Q3BN/FY9Y5PZIUG0Q3BN.jpg&filename=IMG_5536.JPG)
![IMG_5537.JPG](/proxy/?url=https://content.instructables.com/FNL/8V9N/IUG0Q3BO/FNL8V9NIUG0Q3BO.jpg&filename=IMG_5537.JPG)
Then, I build a little pocket to hold my 3v battery in which I also put two pieces of copper tape on each side. Right after, I knotted two strings of conductive fabric inside on both the power and ground sides to lead my circuit. I sewed in the battery pocket with black thread to blend in with the hat.
I sewed in the positive side of the battery around the hat through the back and the negative side on the front side.
Step 4: Adding LEDs
![IMG_5539.JPG](/proxy/?url=https://content.instructables.com/F6W/RHG4/IUG0Q3BS/F6WRHG4IUG0Q3BS.jpg&filename=IMG_5539.JPG)
![IMG_5540.JPG](/proxy/?url=https://content.instructables.com/FRO/XOVJ/IUG0Q3C7/FROXOVJIUG0Q3C7.jpg&filename=IMG_5540.JPG)
![Computational Craft Midterm - Headlamp](/proxy/?url=https://content.instructables.com/F7F/F9BV/IUG0Q3BL/F7FF9BVIUG0Q3BL.jpg&filename=Computational Craft Midterm - Headlamp)
Then, placed 4 LED's instead of the neopixels because I purchased nano neopixels which were too small to solder on the hat. I soldered the conductive thread (which was really difficult to not burn, so kept the heat to the minimum) on each ground and positive ends.