====== Week 5: E-Textiles and Wearables I ====== ==== Assignment 1: LED Circuit ==== === Playing with Blink === This is my first time using Arduino, so i started testing and playing with a basic example. The code that appears is this: {{:fabricademy2017:students:edgardelarubia:blink_code.jpg?nolink&500x186|blink_code.jpg}} In order to make a modification, I included a second LED and I modified the code: {{:fabricademy2017:students:edgardelarubia:modificacion_blink.jpg?nolink&500x315|modificacion_blink.jpg}} And I tested it on a breadboard: {{:fabricademy2017:students:edgardelarubia:breadboard_blink_ejemplo.jpg?nolink&500x667|breadboard_blink_ejemplo.jpg}} It´s a just an easy modification, when Led A is on, Led B is off and viceversa. === ATtiny Programming === **To get the ATtiny software:** **1. File > preferences > Aditional boards url > add:** **[[https://raw.githubusercontent.com/damellis/attiny/ide-1.6.x-boards-manager/package_damellis_attiny_index.json|https://raw.githubusercontent.com/damellis/attiny/ide-1.6.x-boards-manager/package_damellis_attiny_index.json]]** **2. Tools > Board > Board Manager** Then we look for ATtiny and install it. **{{:fabricademy2017:students:edgardelarubia:busqueda_gestor_tarjetas.jpg?nolink&300x172|busqueda_gestor_tarjetas.jpg}}{{:fabricademy2017:students:edgardelarubia:busqueda_gestor_tarjetas2.jpg?nolink&300x177|busqueda_gestor_tarjetas2.jpg}}** **3. Then in Tools > Boards have to appear the ATtiny.** **{{:fabricademy2017:students:edgardelarubia:busqueda_placa_at.jpg?nolink&415x453|busqueda_placa_at.jpg}}** **Now we have the software to use our arduino as a programmer for our ATtiny. To do that we have to know what are the different pins of the ATtiny, to programm it using ISP.** **{{ :fabricademy2017:students:edgardelarubia:pins_attiny.jpg?nolink&622x183 |pins_attiny.jpg}}** In Kobakant there is a fantastic schematic for conecting Attiny to our arduino. {{ :fabricademy2017:students:edgardelarubia:bradboard_attiny.jpg?nolink&549x474 |bradboard_attiny.jpg}} **Tip: We need to put a 10mF capacitor between reset and GND to avoid the reset procedure.** __**Programming the ATtiny45 or ATtiny85:**__ - Select “ATtiny45 (8 MHz)” from the “Tools > Board” menu - Select “Arduino as ISP“ from the “Tools > Programmer” men - Open the sketch you want to upload to the ATtiny - Upload sketch I use again the blink code to test how th Attiny works. I changed pin 13 for 0: {{:fabricademy2017:students:edgardelarubia:blink_at_code.jpg?nolink&544x261|blink_at_code.jpg}} And using the schematic to see the conection of the led to the AT, I put it in the bread board: {{:fabricademy2017:students:edgardelarubia:led_at_blink.jpg?nolink&400x281|led_at_blink.jpg}}{{:fabricademy2017:students:edgardelarubia:img_30102017_200756_1.jpg?nolink&500x375|img_30102017_200756_1.jpg}} All this process was possible with the help of Kobakant and the tutorial to do it, and the tips of High Low Tech. Here I write the sources: * **[[http://www.kobakant.at/DIY/?p=3742|http://www.kobakant.at/DIY/?p=3742]]** * **[[http://highlowtech.org/?p=1706|http://highlowtech.org/?p=1706]]** ===== Assignment 2: ATtiny Circuit ===== === Making my textile sensor: === Actually this was a fail, because I used wrong materials to make it. My idea was to replicate the Bonded Bend Sensor that Kobakant shows ih their web. Materials: * cotton fabric * Eeontex Stretch Fabric * Silver stretch conductive fabric * Fabric Glue (the key of the fail!) {{:fabricademy2017:students:edgardelarubia:img_30102017_204800.jpg?nolink&350x467|img_30102017_204800.jpg}}{{ :fabricademy2017:students:edgardelarubia:img_30102017_205125.jpg?nolink&350x467|img_30102017_205125.jpg}} {{ :fabricademy2017:students:edgardelarubia:img_30102017_205448.jpg?nolink&400x533 |img_30102017_205448.jpg}} **I don´t know if the fabrics glue just "melts" the fibers to paste them, or it´s simply that it acts as insulation, but when I measured with the multimeter, the sensor had a lot of resistance, and when i strecthed it that only decreases a little bit. I thought the glue could be a good alternative to the heat bond adhesive that appears in Kobakant, but obviously that was a very bad solution.** **Making my textile sensor (Part II)** **In this case I made a simple pressure sensor using:** * **Velostat** * **felt** * **aluminium sheet** * **adhesive copper sheet**