Hat for the Party

by Magesh Jayakumar in Circuits > Wearables

1361 Views, 7 Favorites, 0 Comments

Hat for the Party

DSC00101.JPG
DSC00111.JPG
DSC00102.JPG
DSC00112.JPG

Here's our second wearable ible which uses the same program and same materials from our first one, just a concept on making our hat to glow when someone greet us.

A picture will say you everything about this ible, where you look so different from others by making this ible which is really simple and easy to do with no prior experience in electronics, all the things are plug and play stuff just with few steps its possible to complete this ible without facing any trouble.

Check the video below to get to know about how this works in real time.

Components Needed to Complete This Project.

DSC00114.JPG

Arduino or Lotus Kit here is the link for the kit I used for this project

http://www.seeedstudio.com/depot/Seeeduino-Lotus-A...

PIR Sensor

http://www.seeedstudio.com/depot/Grove-PIR-Motion-...

String LED

http://www.seeedstudio.com/depot/Grove-LED-String-...

any kind of Hat that you love to wear it.

Placing the Components Around.

DSC00079.JPG
DSC00082.JPG
DSC00084.JPG
DSC00085.JPG
DSC00091.JPG

1) Paste the string LED around the cap and paste it with a cello tape, don't use glue to stick to the cap permanently if you are planning to use the hat without lights.

2) connect the PIR sensor to your shirt or any other place that is convenient for you.

3) Connect the PIR sensor and String LED to the Microcontroller.

Fritzing to Explain Where to Fit the Sensors

string led.jpg
DSC00098.JPG
DSC00099.JPG
DSC00100.JPG

connect the PIR sensor output to the 4th pin of Arduino ( other two pins need to connect to the Vcc and GND).

connect the LED string to the 5th pin of Arduino.

Program your arduino from the Arduino IDE. using the below program.

#define PIR_Sensor 4
#define String_light 5


void setup() {
  // put your setup code here, to run once:
Serial.begin(9600);


pinMode(PIR_Sensor, INPUT);
pinMode(String_light, OUTPUT);


}


void loop() {
analogWrite(String_light,0); 
bool status = digitalRead(PIR_Sensor);
    if(status == true)
      {
        while(digitalRead(PIR_Sensor))
        {       
          
          for(int i = 0; i<255; i++)
          {
            analogWrite(String_light, i);
            delay(5);
            Serial.println(i);
          }
          Serial.println("SWITCH");
          for(int i = 255; i>0; i--)
          {
            Serial.println(i);
            analogWrite(String_light, i);
            delay(5);
            }
          }
          
        }
      }



Downloads