Winter Headband Lamp – ATTiny (Week 7)

I took a preexisting knit headband and added a capacitive touch sensor to the area that meets the forehead using copper fabric. That way, when someone wears the headband, an LED will turn on, creating a headlamp for running/walking in the park at night during the winter. When the headband is not being worn, a smaller, blue LED will pulse – this is the resting state of my lamp.

The above video shows the Arduino sketch running on a programmed ATTiny. The ATTiny controls two LEDs using a 3V battery and lights these LEDs based on capacitive touch input (the yellow wire that is touched in the video, which then becomes the copper fabric in the headband below). The “resting state” of the circuit/headband is a small, blue LED that pulses over time. When the input is received via the capacitive touch sensor/when the headband is worn, a second LED (10mm bright white) is lit, lighting the headlamp.

Materials:

  • 1x ATtiny45
  • 1x Arduino UNO (for programming the ATTiny)
  • 1x 10uF capacitor
  • 1x 10mm white LED
  • 1x 5mm blue LED
  • 1x 3V / coin cell battery
  • 1x button
  • 1x 330k ohm resistor
  • 1x breadboard
  • soldering iron, solder, conductive thread/wire, perfboard

IMG_9722IMG_9716IMG_9726IMG_9724

IMG_9725IMG_0022IMG_0020

 

The Circuit / Fritzing Diagram:

Attiny-LEDs-capsens_bb

The yellow wire in this diagram connects to a piece of conductive material that – when touched – triggers programmed response (in this case, lights the white LED)

 

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>