====== E-textiles & wearables II ====== This week I continue with [[:fabricademy2017:students:elektronik|my slipper project.]] This week I have experienced; - Arduino IDE - Eagle - circuit design - PCB cutting - Vinly cutting with the copper circuit. This was a revolutionary week. I did learn serious electronics. * First ı programed three LED's for with blinking code from arduino. I run with the breadboard {{:fabricademy2017:students:ayseesindurmaz:elektroniks:img_6139.jpg?nolink&667x500|img_6139.jpg}}{{:fabricademy2017:students:ayseesindurmaz:elektroniks:img_6138.jpg?nolink&375x500|img_6138.jpg}} * Then I stitched all the LED's into my slipper. Outside connection is (-) ground and inside is (+) VCC. I used the needles for connection. {{:fabricademy2017:students:ayseesindurmaz:elektroniks:img_5911.jpg?nolink&375x500|img_5911.jpg}}{{:fabricademy2017:students:ayseesindurmaz:elektroniks:img_6142.jpg?nolink&666x500|img_6142.jpg}} * Then ı make a connection between LED's, Hello Board and Arduino {{:fabricademy2017:students:ayseesindurmaz:elektroniks:img_6144.jpg?nolink&500x375|img_6144.jpg}} * Then ı embodied the information into hello board, {{:fabricademy2017:students:ayseesindurmaz:elektroniks:img_6147_1.jpg?nolink&375x500|img_6147_1.jpg}}{{:students:ayseesindurmaz:electronic:img_6141x.jpg?nolink&451x500|img_6141x.jpg}} Watch the video; [[https://youtu.be/5ugnYj_p1lg|https://youtu.be/5ugnYj_p1lg]] {{ youtube>5ugnYj_p1lg?large }} After ı experienced these, I decided make an flexible hello board from copper tape. First ı make an circuit design from eagle. I used lilpad pinholes as an pin entrance. ====== Board design ====== {{:fabricademy2017:students:ayseesindurmaz:elektroniks:img_6147_2.jpg?nolink&964x509|img_6147_2.jpg}} ===== Schematic design ===== İt is not exactly the same schematic with the hello board. I removed reset button in terms that ı need exactly six pin entrance. {{:fabricademy2017:students:ayseesindurmaz:elektroniks:2x.jpg?nolink&1366x768|2x.jpg}} ====== Make a flexible board ====== {{:fabricademy2017:students:ayseesindurmaz:elektroniks:img_6185.jpg?nolink&375x500|img_6185.jpg}}{{:fabricademy2017:students:ayseesindurmaz:elektroniks:img_6187.jpg?nolink&375x500|img_6187.jpg}}{{:fabricademy2017:students:ayseesindurmaz:elektroniks:img_6189.jpg?nolink&375x500|img_6189.jpg}}{{:students:ayseesindurmaz:electronic:img_6188.jpg?nolink&667x500|img_6188.jpg}} **The Problem** After many attempts with copper tape or aluminum tape, I failed because the main problem is the board designs with the eagle is designing for PCB boards. The best way to do a hello board with ATtiny 45 is with manual ways. I lost my motivation and decided to move on another project. ====== Playful Baby Bib ====== I always wanted to make a project with a capacitive touch sensor for my wearable projects. To make music with capacitive touch sensors are really fun. I already make some projects with CapSense. I made a glove and a piano with this [[https://playground.arduino.cc/Main/CapacitiveSensor?from=Main.CapSense|capacitive sensor library]]. **For my Baby bib project:** **For electronics; please download [[http://playground.arduino.cc/Code/ADCTouch|ADC TOUCH Library]]** 1. Arduino Uno 2. Jumper cables 3. Piezo buzzer 4. 9 Volt battery **For materials,** 1.Stretchable fabric 2. Linen 3.Conductive fabric 4. Conductive thread I thought that while babies are eating they do not wanna use baby bib at all! maybe if ı would be funnier that can help babies eat while their playing with their baby food. {{:fabricademy2017:students:ayseesindurmaz:elektroniks:img_0630.jpg?nolink&375x500|img_0630.jpg}} I started with the drawing of my patron and my cubes. For my patron I overlapped a baby bib patron picture. {{:fabricademy2017:students:ayseesindurmaz:elektroniks:4x.jpg?nolink&812x500|4x.jpg}} For a playful touch, I want to create** conductive cubes** which will attach with the linen fabric. For laser cutter; **RED** lines = Light cut **BLUE **Lines = Cut {{:fabricademy2017:students:ayseesindurmaz:elektroniks:3x.jpg?nolink&800x305|3x.jpg}} When you light cut into linen you can follow broken lines for stich you conductive thread. And placed you cubes. Analog points will help you to make your connection are easier. {{:fabricademy2017:students:ayseesindurmaz:elektroniks:5x.jpg?nolink&374x398|5x.jpg}}{{:fabricademy2017:students:ayseesindurmaz:elektroniks:6x.jpg?nolink&417x398|6x.jpg}} These shapes should cut with the conductive fabric and glue into boxes. You can download the files from this [[https://drive.google.com/open?id=1Lu_1gvHGUXRXOdV0RtSTskhKq3raUTYN|link]] {{:students:ayseesindurmaz:electronic:7x.jpg?nolink&805x270|7x.jpg}} {{:students:ayseesindurmaz:electronic:img_0582x.jpg?nolink&375x500|img_0582x.jpg}}{{:students:ayseesindurmaz:electronic:img_0587.jpg?nolink&375x500|img_0587.jpg}} I added red stretchable fabric for a playful touch. {{:students:ayseesindurmaz:electronic:img_0589.jpg?nolink&375x500|img_0589.jpg}}{{:students:ayseesindurmaz:electronic:img_0591.jpg?nolink&375x500|img_0591.jpg}} ====== Programming ====== #include #define NOTE_C 262 \\ #define NOTE_D 294 \\ #define NOTE_E 330 \\ #define NOTE_F 349 \\ #define NOTE_G 392 \\ \\ int ref0, ref1, ref2, ref3, ref4; //reference values to remove offset \\ int speakerPin = 9;//Depends on which pin is used for the speaker \\ \\ void setup() \\ { \\ //No pins to setup, pins can still be used regularly, although it will affect readings \\ \\ Serial.begin(9600); \\ \\ ref0 = ADCTouch.read(A0, 500);//create reference values \\ ref1 = ADCTouch.read(A1, 500); \\ ref2 = ADCTouch.read(A2, 500); \\ ref3 = ADCTouch.read(A3, 500); \\ ref4 = ADCTouch.read(A4, 500); \\ \\ pinMode(speakerPin, OUTPUT); \\ } \\ \\ void loop() \\ { \\ int thumb = ADCTouch.read(A0); \\ int index = ADCTouch.read(A1); \\ int middle = ADCTouch.read(A2); \\ int ring = ADCTouch.read(A3); \\ int pinky = ADCTouch.read(A4); \\ \\ thumb -= ref0; //remove offset \\ index -= ref1; \\ middle -= ref2; \\ ring -= ref3; \\ pinky -= ref4; \\ \\ if (thumb > 50) { \\ if (index > 60) \\ { Serial.print("A");//TI (thumb and index) \\ tone(9, NOTE_C + NOTE_D); \\ } \\ else if (middle > 60) \\ { Serial.print("B"); //TM (thumb and middle) \\ tone(9, NOTE_C + NOTE_E); \\ } \\ else if (ring > 60) \\ { Serial.print("C");//TR (thumb and ring) \\ tone(9, NOTE_C + NOTE_F); \\ } \\ else if (pinky > 50) \\ { Serial.print("D"); //TP (thumb and pinky) \\ tone(9, NOTE_C + NOTE_G); \\ } \\ else \\ { Serial.print("T"); \\ tone(9, NOTE_C); \\ } \\ } \\ else if (index > 60){ \\ if (middle > 60) \\ { Serial.print("E");//IM (index and middle) \\ tone(9, NOTE_D + NOTE_E); \\ } \\ else if (ring > 60) \\ { Serial.print ("F"); //IR (index and ring) \\ tone(9, NOTE_D + NOTE_F); \\ } \\ else if (pinky > 50) \\ { Serial.print("G");//IP (index and pinky) \\ tone(9, NOTE_D + NOTE_G); \\ } \\ else \\ { Serial.print("I"); \\ tone(9, NOTE_D); \\ } \\ } else if (middle> 60){ if (ring> 60) { Serial.print("H"); //MR (middle and ring) tone(9, NOTE_E + NOTE_F); } else if (pinky> 50) { Serial.print("J"); //MP (middle and pinky) tone(9, NOTE_E + NOTE_G); } else { Serial.print("M"); tone(9, NOTE_E); } } else if (ring> 60){ if (pinky> 50) { Serial.print("K"); //RP (ring and pinky) tone(9, NOTE_F + NOTE_G); } else { Serial.print("R"); tone(9, NOTE_F); } } else if (pinky> 50) { Serial.print("P"); tone(9, NOTE_G); } else { Serial.print("N"); noTone(9); } delay(10); } ====== Connections ====== I wanted {{:fabricademy2017:students:ayseesindurmaz:elektroniks:img_0636.jpg?nolink&800x600|img_0636.jpg}} {{:fabricademy2017:students:ayseesindurmaz:elektroniks:img_0625.jpg?nolink&375x500|img_0625.jpg}}{{:students:ayseesindurmaz:electronic:img_0592.jpg?nolink&375x500|img_0592.jpg}} ===== ===== {{ youtube>BeHa3vqd-G4?large }}