Link to this comparison view

Both sides previous revision Previous revision
fabricademy2017:students:anamaria.martinlopez:week5 [2018/08/19 09:50]
anamaria.martinlopez
fabricademy2017:students:anamaria.martinlopez:week5 [2018/08/28 10:18]
anamaria.martinlopez old revision restored (2018/08/19 09:44)
Line 1: Line 1:
-====== ​Sensor de inclinación ​======+====== ​Tilt sensor ​======
  
-Para la asignación de esta semana, decidí hacer un sensor ​de inclinación.+For the Assignment of this week I decided to make a tilt sensor.
  
-Esquema:+Scheme:
  
 {{  :​fabricademy2017:​students:​anamaria.martinlopez:​week5:​captura.jpg?​nolink&​483x551 ​ |captura.jpg}} {{  :​fabricademy2017:​students:​anamaria.martinlopez:​week5:​captura.jpg?​nolink&​483x551 ​ |captura.jpg}}
  
-Comienzo eligiendo la telanecesito una que sea muy conductoraLuegohago una prueba con el multímetro.+I start by choosing the fabricI need one that is very conductiveThenI do a test with the multimeter.
  
 {{  :​fabricademy2017:​students:​anamaria.martinlopez:​week5:​img_0160.jpg?​nolink&​300x400 ​ |img_0160.jpg}} {{  :​fabricademy2017:​students:​anamaria.martinlopez:​week5:​img_0160.jpg?​nolink&​300x400 ​ |img_0160.jpg}}
  
-Una vez que la conductividad está marcada, elijo los materiales que usaré en mi proyecto:+Once the conductivity is checked I choose the materials that I will use in my project:
  
-• Cable conductor+• Conductive wire
  
-• Tejido conductor+• Conductive fabric
  
-Lana+Wool
  
 • LEDs • LEDs
  
-• Tejido no conductivo+• Non-conductive tissue
  
-• Cuentas no conductoras+• Non-conductive beads
  
-Comienzo haciendo un pompón con lana e hilo conductor.+I begin by making a pompom with wool and conductive thread.
  
 {{  :​fabricademy2017:​students:​anamaria.martinlopez:​week5:​dibujo1.png?​nolink&​690x700 ​ }} {{  :​fabricademy2017:​students:​anamaria.martinlopez:​week5:​dibujo1.png?​nolink&​690x700 ​ }}
  
-Luego pongo las cuentas para aislar y así no tengo problemas si el cable toca otro hilo.+Then I put the beads to isolate and so have no problems if the cord touches some other thread.
  
-Comienzo a coser siguiendo el esquema.+I begin to sew following the scheme.
  
 {{  :​fabricademy2017:​students:​anamaria.martinlopez:​week5:​dibujo9.png?​nolink&​700x273 ​ }} {{  :​fabricademy2017:​students:​anamaria.martinlopez:​week5:​dibujo9.png?​nolink&​700x273 ​ }}
  
-Para no confundirme con los pines de los leds, los doblé de forma diferente, doblé el pin negativo con una forma más redondeada y el positivo con una forma más cuadrada.+In order not to be confused with the pins of the leds I bend them differentlyI bent the negative ​pin with a more rounded shape and the positive with a more square shape.
  
-De esta manera puedo coserlos perfectamente y sé que no cometeré ningún error.+This way I can sew them perfectly and I know I will not make any mistakes.
  
 {{  :​fabricademy2017:​students:​anamaria.martinlopez:​week5:​img_0161.jpg?​nolink&​300x225 ​ |img_0161.jpg}} {{  :​fabricademy2017:​students:​anamaria.martinlopez:​week5:​img_0161.jpg?​nolink&​300x225 ​ |img_0161.jpg}}
  
-**Titulares de batería**+**Battery holders**
  
-Siguiendo el diagramala parte del hilo que sale del pompón es positivaasí que termino cosiendo un poco más de puntadas para que cuando inserte la batería toque bien el hilo.+Following the diagramthe part of the thread that comes from the pompom is the positive so I end up sewing on the fabric a few more stitches so that when I insert the batteryit touches the thread well.
  
-{{  :​fabricademy2017:​students:​anamaria.martinlopez:​week5:​img_0146_-_copia_2_.jpg?​nolink&​300x225 ​ |img_0146 _-_ copia_2_.jpg}}+{{  :​fabricademy2017:​students:​anamaria.martinlopez:​week5:​img_0146_-_copia_2_.jpg?​nolink&​300x225 ​ |img_0146_-_copia_2_.jpg}}
  
-Termino cosiendo los siguientes ​leds y el soporte de la batería.+I end up sewing the following ​leds and the battery holder.
  
 {{  :​fabricademy2017:​students:​anamaria.martinlopez:​week5:​img_0168.jpg?​nolink&​800x600 ​ |img_0168.jpg}} {{  :​fabricademy2017:​students:​anamaria.martinlopez:​week5:​img_0168.jpg?​nolink&​800x600 ​ |img_0168.jpg}}
 +
 +{{vimeo>​240297726?​medium}}
  
 ---- ----
  
-====== ​Programación ​ATtiny ======+====== ATtiny ​Programming ​======
  
-Configure ​la placa ATTINY:\\ +Configure ATTINY ​board:\\ 
-1. Preferencias de Arduino: ​administradores adicionales de la tarjeta ​url\\ +1. Arduino ​preferencesAdditional ​url card managers\\ 
-2. Agregue: [[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. 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]]
  
 {{:​fabricademy2017:​students:​anamaria.martinlopez:​week5:​captura_1.jpg?​nolink&​400x337|captura_1.jpg}} {{:​fabricademy2017:​students:​anamaria.martinlopez:​week5:​captura_1.jpg?​nolink&​400x337|captura_1.jpg}}
  
-  - Cerramos el gerente +  - We close the manager 
-  - En herramientas +  - In Tools 
-  - Plato +  - Plate 
-  - Vamos a Card Manager +  - We go to Card Manager 
-  - Buscar ​Attiny+  - Search ​Attiny
  
-====== ​Usando su Arduino ISP para programar un microcontrolador ​ATtiny ======+====== ​Using your Arduino ISP to program an ATtiny ​microcontroller ​======
  
-Gracias a Kobakant ​por su fantástico ​tutorial: [[http://​www.kobakant.at/​DIY/?​p=3742|http://​www.kobakant.at/​DIY/?​p=3742]]+Thanks to Kobakant ​for his fantastic ​tutorial: [[http://​www.kobakant.at/​DIY/?​p=3742|http://​www.kobakant.at/​DIY/?​p=3742]]
  
 {{  :​fabricademy2017:​students:​anamaria.martinlopez:​week5:​dibujo3.png?​nolink&​690x700 ​ }} {{  :​fabricademy2017:​students:​anamaria.martinlopez:​week5:​dibujo3.png?​nolink&​690x700 ​ }}
Line 75: Line 77:
 Burn Bootloader Burn Bootloader
  
-Para establecer la velocidad del reloj de su ATtiny ​sea más rápida ​(8Mhz) ​que la predeterminada de 1 MHz.+To set the clock speed of your ATtiny ​to be faster ​(8Mhz) ​than the default of 1 MHz.
  
-  - Seleccione ​"​ATtiny45 (8 MHz)" ​en el menú "HerramientasTarjeta+  - Select ​"​ATtiny45 (8 MHz)" ​in the "ToolsCard" ​menu 
-  - Seleccione ​"​Arduino ​como ISP" ​en el menú "HerramientasProgramador+  - Select ​"​Arduino ​as ISP" ​in the "ToolsProgrammer" ​menu 
-  - Seleccione ​"Burn Bootloader" ​en el menú "Herramientas"+  - Select ​"Burn Bootloader" ​in the "Tools" ​menu
  
-====== Arduino ​como ISP ======+====== Arduino ​as ISP ======
  
-Cargando boceto+Loading sketch
  
-  - Abra el boceto que desea cargar en ATtinyATtiny +  - Open the sketch you want to load in ATtiny 
-  - Seleccione ​"​ATtiny45 (8 MHz)" ​en el menú "HerramientasJunta+  - Select ​"​ATtiny45 (8 MHz)" ​from the "ToolsBoard" ​menu 
-  - Seleccione ​"​Arduino ​como ISP" ​en el menú "HerramientasProgramador+  - Select ​"​Arduino ​as ISP" ​from the "ToolsProgrammer" ​menu 
-  - Cargar boceto+  - Load sketch.
  
-Si recibe este mensaje de error, ​está bien \\ avrdude: ​defina las señales ​PAGEL BS2 en el archivo de configuración para la parte \\ AVrdude ATtiny85defina las señales ​PAGEL BS2 en el archivo de configuración para la parte ATtiny8+If you get this error messageit's okay \\ avrdude: ​define the PAGEL and BS2 signals in the configuration file for the ATtiny85 part \\ avrdudedefine the PAGEL and BS2 signals in the configuration file for the ATtiny8 ​part
  
-Retire el condensador cuando cargue el boceto de Arduino ISP en el Arduino Uno y reemplace el condensador para registrar el administrador de arranque y cargar cualquier boceto en su ATtiny.ATtiny.+Remove the capacitor when loading the Arduino ISP sketch to the Arduino Uno and replace the capacitor to record the boot manager and load any sketch on your ATtiny.
  
 ====== ​  ​====== ====== ​  ​======
Line 98: Line 100:
 ---- ----
  
-====== ​ATtinyProgramación ​ATtiny ======+====== ATtiny ​Programming ​======
  
-Configure ​la placa ATTINY: 1. Preferencias de Arduino: ​administradores adicionales de la tarjeta ​url 2. Agregue: [[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]]ATTINY board:+Configure ATTINY ​board\\ 1. Arduino ​preferencesAdditional ​url card managers \\ 2. 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]]
  
 {{:​fabricademy2017:​students:​anamaria.martinlopez:​week5:​captura_1.jpg?​nolink&​400x337|captura_1.jpg}} {{:​fabricademy2017:​students:​anamaria.martinlopez:​week5:​captura_1.jpg?​nolink&​400x337|captura_1.jpg}}
  
-  - Cerramos el gerente +  - We close the manager 
-  - En herramientas +  - In Tools 
-  - Plato +  - Plate 
-  - Vamos a Card Manager +  - We go to Card Manager 
-  - Buscar ​Attiny+  - Search ​Attiny
  
-====== ​Convirtiendo su Arduino ​en un programador de ISPArduino ​en un programador de ISP ======+====== ​Turning your Arduino ​into a programmer of ISPArduino ​into an ISP programmer ​======
  
-Sin condensador!+Without condenser!
  
-Descargue el software ​Arduino ​e instale el softwareArduino e instálelo Descargue la carpeta ATtiny y guárdela en la carpeta "​hardware"​ de la carpeta arduino sketchesATtiny y guárdela en la carpeta "​hardware"​ de la carpeta de bocetos Arduino Reinicie ArduinoArduino Abra "​ArduinoISP"​ "​boceto en la carpeta"​ Ejemplos " Seleccione"​ Arduino "​Uno"​ desde el menú "​Herramientas>​ Tablero"​ Arduino "​Uno"​ desde el menú "​Herramientas>​ Tablero"​ Seleccione en el menú Herramientas>​ Puerto serie Cargue el bocetoArduino ​software and install itArduino software and install it \\ ATtiny folder and save it in the "​hardware"​ folder of the Arduino folder sketchesATtiny folder and save it in the "​hardware"​ folder of the Arduino sketches folder \\  \\  \\ Arduino"​ One "from the menu" Tools> Board "​Arduino"​ One "from the menu" Tools> Board "+Download the Arduino software and install itArduino software and install it\\ 
 +Download the ATtiny folder and save it in the "​hardware"​ folder of the Arduino folder sketchesATtiny folder and save it in the "​hardware"​ folder of the Arduino sketches folder\\ 
 +Restart ArduinoArduino\\ 
 +Open the "​ArduinoISP"​ sketch in the "​Examples"​ folder\\ 
 +Select "Arduino"​ One "from the menu" Tools> Board "​Arduino"​ One "from the menu" Tools> Board "\\ 
 +Select from the Tools menu> Serial Port\\ 
 +Load the sketch
  
-Usando su Arduino ​ISP para programar un microcontrolador ATtiny ¡Agregue condensadores y conexiones de programación! Arduino ISP para programar un microcontrolador ATtinyArduino ​ISP to program an ATtiny microcontroller Add capacitors and programming connections! Arduino ISP to program an ATtiny microcontroller+Using your Arduino ISP to program an ATtiny microcontroller Add capacitors and programming connections! Arduino ISP to program an ATtiny microcontroller
  
-Con condensador!+With condenser!
  
-Seleccione ​"​ATtiny45 (8 MHz)" ​en el menú "HerramientasJunta" \\ Seleccione ​"Arduino como ISP" en el menú "​Herramientas>​ Programador"​ Arduino como ISP "en el menú" Herramientas>​ Programador " Seleccione"​ Grabar administrador de arranque "en Menú "​Herramientas"​ (sí condensador) Abra el boceto que desea cargar en el boceto ATtinyATtiny Load (sí condensador) Ahora conecto mi sensor a Attiny agregando un zumbador.Arduino as ISP" in the menu "​Tools>​ Programmer"​ Arduino as ISP "in the" Tools> Programmer "menu \\+Select ​"​ATtiny45 (8 MHz)" ​in the "ToolsBoard" ​menu\\ 
 +Select ​"​Arduino as ISP" in the menu "​Tools>​ Programmer"​ Arduino as ISP "in the" Tools> Programmer "​menu\\ 
 +Select "Burn Boot Manager"​ in the "​Tools"​ menu (yes capacitor)\\ 
 +Open the sketch you want to load in the ATtinyATtiny\\ 
 +Load sketch (yes condenser)\\ 
 +Now I connect my sensor to Attiny by adding a buzzer.
  
-Esquema:+Scheme:
  
-{{vimeo> 240630034? medium}}+{{vimeo>​240630034?​medium}}
  
-vimeo>​240630034?​medium}}+Code:
  
-Código:+/*\\ 
 +CODE for the Fabricademy e-textile sensor swatch\\ 
 +first built for the Fabricademy 2017\\ 
 +Hannah Perner-Wilson and Mika Satomi, KOBAKANT\\ 
 +*/
  
-/ * \\ CÓDIGO para la muestra de sensores de textiles electrónicos de Fabricademy ​\\ creada por primera vez para la Fabricademy 2017 \\ Hannah Perner-Wilson y Mika Satomi, KOBAKANT \\ * /+#define sensorPin 3\\ 
 +#define speakerPin 2\\ 
 +#define ledPin 0
  
-#define sensorPin 3 \\ #define speakerPin 2 \\ #define ledPin ​0+int sensorValue = 0;\\ 
 +int noiseFrequency = 0;\\ 
 +int ledBrightness = 0;
  
-int sensorValue = 0; \\ int noiseFrequency = 0; \\ int ledBrightness ​0;+void setup()\\ 
 +{\\ 
 +pinMode(sensorPin,​ INPUT)// use digital pin number here\\ 
 +pinMode(speakerPin,​ OUTPUT);\\ 
 +pinMode(ledPin,​ OUTPUT);​\\ 
 +} void loop()\\ 
 +{\\ 
 +sensorValue ​analogRead(sensorPin)//use analog pin number here
  
-void setup () \\ { \\ pinMode (sensorPin, INPUT); //use el número de pin digital aquí \\ pinMode (speakerPin,​ OUTPUT); \\ pinMode (ledPin, OUTPUT); \\ } void loop () \\ { \\ sensorValue = analogRead (sensorPin);​ //usa el número de pin analógico aquí +//MAKE SOUND:\\ 
- +if(sensorValue < 900){ noiseFrequency = map(sensorValue,​ 0, 1023, 100, 10000); ​noise (speakerPin,​ noiseFrequency);​ } //​FADE ​LED: ledBrightness = map(sensorValue,​ 0, 1023, 0, 255); analogWrite(ledPin,​ ledBrightness);​ } // MAKE SOUND ON THE ATTINY WITHOUT THE SOUND LIBRARY: void noise (unsigned char noisePin, int frequencyInHertz) { long delayAmount = (long)(1000000 / frequencyInHertz);​ digitalWrite(noisePin,​ HIGH); delayMicroseconds(delayAmount);​ digitalWrite(noisePin,​ LOW); delayMicroseconds(delayAmount);​ } //
-//MAKE SOUND: \\ if (sensorValue <900) {noiseFrequency = map (sensorValue,​ 0, 1023, 100, 10000); ​ruido (speakerPin,​ noiseFrequency);​ }//LED FADE: ledBrightness = map (sensorValue,​ 0, 1023, 0, 255); analogWrite (ledPin, ledBrightness);​ } //HAGA SONIDO EN EL ATTINY SIN LA BIBLIOTECA DE SONIDO: ruido nulo (ruido de char sin signo Pin, int frequencyInHertz) {largo delayAmount = (largo) (1000000 / frequencyInHertz);​ digitalWrite (noisePin, HIGH); delayMicroseconds (delayAmount);​ digitalWrite (noisePin, LOW); delayMicroseconds (delayAmount);​ }ATTINY WITHOUT THE SOUND LIBRARY: void noise (unsigned char noisePin, int frequencyInHertz) { long delayAmount = (long)(1000000 / frequencyInHertz);​ digitalWrite(noisePin,​ HIGH); delayMicroseconds(delayAmount);​ digitalWrite(noisePin,​ LOW); delayMicroseconds(delayAmount);​ } //+
  
 ---- ----
  
-====== ​Cinturón ​======+====== ​Belt ======
  
-Empecé ​cortar un rectángulo de 95 x 22 cm en dos tejidos diferentesElegí cuero sintético para darle cuerpo al cinturón y al tul para decorar y esconder los componentes electrónicos.+I started cutting ​rectangle of 95 x 22 cm in two different tissuesI chose synthetic leather to give body to the belt and tulle to decorate and hide the electronics.
  
-Para la decoración,​ vectoricé una imagen para cortarla en vinilo textil.+For decoration I vectorized an image to cut it on textile vinyl.
  
-{{  http://​wiki.textile-academy.org/​_media/​fabricademy2017/​students/​anamaria.martinlopez/​week_12/​hh_2_.jpg?​nolink&​756x425 ​ |hh_2_.jpg}}+{{http://​wiki.textile-academy.org/​_media/​fabricademy2017/​students/​anamaria.martinlopez/​week_12/​hh_2_.jpg?​nolink&​756x425|hh_2_.jpg}}
  
-Abrí con Rhinoceros ​y rematé el diseño.+I opened with Rhinoceros ​and I rised the design.
  
 {{http://​wiki.textile-academy.org/​_media/​fabricademy2017/​students/​anamaria.martinlopez/​week_12/​dibujo.png?​nolink&​710x230}} {{http://​wiki.textile-academy.org/​_media/​fabricademy2017/​students/​anamaria.martinlopez/​week_12/​dibujo.png?​nolink&​710x230}}
Line 219: Line 246:
  
 Video: Video:
- +{{youtube>​--DRFhbo86E?​medium}}
-{{youtube>​ - DRFhbo86E? medium}}+