9. E-Textiles and Wearables II#

Inspirations#

Speaker

from Vimeo

IMG_2503 from Al-zahra'a alomari on Vimeo.

Inspiration

Vibrator gloves

Programming Attiny

At first I review the datasheet for the attiny 45, before start programming I download the Tiny AVR Programmer, her you can find tatorial then add it to arduino library, then I chose to program it using Arduino as ISP. The first step is to patch the arduino so to recognize the Atmel Attiny 45 microcontroller.

connecting arduino to Attiny

First step in programming (I neet first program the arduino as a programmer)

steps:

go to arduino :

scound step

Third step:programming the Attiny

Pin connections

Programming

Schematic drawing

Code Example


void setup() {

  pinMode(3, INPUT_PULLUP);
  pinMode(2, OUTPUT);


}

void loop() {
  int sensorVal = digitalRead(3);

  if (sensorVal ==LOW) {
 digitalWrite(2,HIGH);

  } 
if (sensorVal ==HIGH) {
 digitalWrite(2,LOW);
}
}


Board soldering

Sewing The circut and push botton sensor on the wool gloves

47db6cc2e1ac453f9490e3009dbd721b from Al-zahra'a alomari on Vimeo.