9. E-Textiles and Wearables II#
Inspirations#
Speaker
- - First step I sewn spiral shape using Karl grim thread on a linen, It was a small spiral. I test it using small magnet, but it did not work, when I measure the resistance it was too small,
- so I made another design using copper sheet material, CAD software to draw a spiral and vinyl cutter machine to cut it. Second step I measure the resistance; it was 0.4 ohm, very small to make sound, so I decided to add a resistor 5 ohm plus using a very strong magnet. I connect the speaker big amplifier because I did not find a small one. I got a successful result
from Vimeo
IMG_2503 from Al-zahra'a alomari on Vimeo.
Inspiration
Vibrator gloves
- I decided to make a vibrator glove using vibrator motor and a push button sensor. when you touch something or hold anything it start vibrate. I used gloves made of knitted wool to sew the soft sensor and the small board that I made it for programming. The board Includes Attainy and mosfet.
- So in this week I need to learn how to program Attiny and sweng it in garments. I planed to solder all the electronics components in a small board maually because the roland is not workin gin our lab and I still learning how to design boards.
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 :- examples < Arduino as ISP
- tools < board < Uno
- program < AVRISPMKLL
- apload using programmer
- I connected my arduino and uploaded the Arduino Isp program
scound step
- burn bootloader
Third step:programming the Attiny
Pin connections
- ATtiny Pin 2 to Arduino Pin 13 (or SCK of another programmer)
- ATtiny Pin 1 to Arduino Pin 12 (or MISO of another programmer)
- ATtiny Pin 0 to Arduino Pin 11 (or MOSI of another programmer)
- ATtiny Reset Pin to Arduino Pin 10 (or RESET of another programmer)
Programming
- tools < port < Atiny 45
- processor < ATtiny 45
- tools < Clock External 8 MHz
- tools < Programmer < Arduino as ISP
- tools < board < Attiny24/44/84
- apload using programmer
- I chose an example blink to test the ATtiny, and it works great
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
- SMD transistor 100 ohm and 10 k ohm
- ATtiny 45
- N-Channel Logic Level Power MOSFET 50V, 16A, 47 mΩ
- vibrator motor
Sewing The circut and push botton sensor on the wool gloves
47db6cc2e1ac453f9490e3009dbd721b from Al-zahra'a alomari on Vimeo.