Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
fabricademy2017:students:anamaria.martinlopez:week5 [2018/08/19 09:44]
anamaria.martinlopez [Turning your Arduino into a programmer of ISPArduino into an ISP programmer]
fabricademy2017:students:anamaria.martinlopez:week5 [2018/08/19 09:50]
anamaria.martinlopez
Line 1: Line 1:
-====== ​Tilt sensor ​======+====== ​Sensor de inclinación ​======
  
-For the Assignment of this week I decided to make a tilt sensor.+Para la asignación de esta semana, decidí hacer un sensor ​de inclinación.
  
-Scheme:+Esquema:
  
 {{  :​fabricademy2017:​students:​anamaria.martinlopez:​week5:​captura.jpg?​nolink&​483x551 ​ |captura.jpg}} {{  :​fabricademy2017:​students:​anamaria.martinlopez:​week5:​captura.jpg?​nolink&​483x551 ​ |captura.jpg}}
  
-I start by choosing the fabricI need one that is very conductiveThenI do a test with the multimeter.+Comienzo eligiendo la telanecesito una que sea muy conductoraLuegohago una prueba con el multímetro.
  
 {{  :​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}}
  
-Once the conductivity is checked I choose the materials that I will use in my project:+Una vez que la conductividad está marcada, elijo los materiales que usaré en mi proyecto:
  
-• Conductive wire+• Cable conductor
  
-• Conductive fabric+• Tejido conductor
  
-Wool+Lana
  
 • LEDs • LEDs
  
-• Non-conductive tissue+• Tejido no conductivo
  
-• Non-conductive beads+• Cuentas no conductoras
  
-I begin by making a pompom with wool and conductive thread.+Comienzo haciendo un pompón con lana e hilo conductor.
  
 {{  :​fabricademy2017:​students:​anamaria.martinlopez:​week5:​dibujo1.png?​nolink&​690x700 ​ }} {{  :​fabricademy2017:​students:​anamaria.martinlopez:​week5:​dibujo1.png?​nolink&​690x700 ​ }}
  
-Then I put the beads to isolate and so have no problems if the cord touches some other thread.+Luego pongo las cuentas para aislar y así no tengo problemas si el cable toca otro hilo.
  
-I begin to sew following the scheme.+Comienzo a coser siguiendo el esquema.
  
 {{  :​fabricademy2017:​students:​anamaria.martinlopez:​week5:​dibujo9.png?​nolink&​700x273 ​ }} {{  :​fabricademy2017:​students:​anamaria.martinlopez:​week5:​dibujo9.png?​nolink&​700x273 ​ }}
  
-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.+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.
  
-This way I can sew them perfectly and I know I will not make any mistakes.+De esta manera puedo coserlos perfectamente y sé que no cometeré ningún error.
  
 {{  :​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}}
  
-**Battery holders**+**Titulares de batería**
  
-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.+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.
  
-{{  :​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}}
  
-I end up sewing the following ​leds and the battery holder.+Termino cosiendo los siguientes ​leds y el soporte de la batería.
  
 {{  :​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}} 
  
 ---- ----
  
-====== ATtiny ​Programming ​======+====== ​Programación ​ATtiny ======
  
-Configure ATTINY ​board:\\ +Configure ​la placa ATTINY:\\ 
-1. Arduino ​preferencesAdditional ​url card managers\\ +1. Preferencias de Arduino: ​administradores adicionales de la tarjeta ​url\\ 
-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]]+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]]
  
 {{:​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}}
  
-  - We close the manager +  - Cerramos el gerente 
-  - In Tools +  - En herramientas 
-  - Plate +  - Plato 
-  - We go to Card Manager +  - Vamos a Card Manager 
-  - Search ​Attiny+  - Buscar ​Attiny
  
-====== ​Using your Arduino ISP to program an ATtiny ​microcontroller ​======+====== ​Usando su Arduino ISP para programar un microcontrolador ​ATtiny ======
  
-Thanks to Kobakant ​for his fantastic ​tutorial: [[http://​www.kobakant.at/​DIY/?​p=3742|http://​www.kobakant.at/​DIY/?​p=3742]]+Gracias a Kobakant ​por su fantástico ​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 77: Line 75:
 Burn Bootloader Burn Bootloader
  
-To set the clock speed of your ATtiny ​to be faster ​(8Mhz) ​than the default of 1 MHz.+Para establecer la velocidad del reloj de su ATtiny ​sea más rápida ​(8Mhz) ​que la predeterminada de 1 MHz.
  
-  - Select ​"​ATtiny45 (8 MHz)" ​in the "ToolsCard" ​menu +  - Seleccione ​"​ATtiny45 (8 MHz)" ​en el menú "HerramientasTarjeta
-  - Select ​"​Arduino ​as ISP" ​in the "ToolsProgrammer" ​menu +  - Seleccione ​"​Arduino ​como ISP" ​en el menú "HerramientasProgramador
-  - Select ​"Burn Bootloader" ​in the "Tools" ​menu+  - Seleccione ​"Burn Bootloader" ​en el menú "Herramientas"
  
-====== Arduino ​as ISP ======+====== Arduino ​como ISP ======
  
-Loading sketch+Cargando boceto
  
-  - Open the sketch you want to load in ATtiny +  - Abra el boceto que desea cargar en ATtinyATtiny 
-  - Select ​"​ATtiny45 (8 MHz)" ​from the "ToolsBoard" ​menu +  - Seleccione ​"​ATtiny45 (8 MHz)" ​en el menú "HerramientasJunta
-  - Select ​"​Arduino ​as ISP" ​from the "ToolsProgrammer" ​menu +  - Seleccione ​"​Arduino ​como ISP" ​en el menú "HerramientasProgramador
-  - Load sketch.+  - Cargar boceto
  
-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+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
  
-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.+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.
  
 ====== ​  ​====== ====== ​  ​======
Line 100: Line 98:
 ---- ----
  
-====== ATtiny ​Programming ​======+====== ​ATtinyProgramación ​ATtiny ======
  
-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]]+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:
  
 {{:​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}}
  
-  - We close the manager +  - Cerramos el gerente 
-  - In Tools +  - En herramientas 
-  - Plate +  - Plato 
-  - We go to Card Manager +  - Vamos a Card Manager 
-  - Search ​Attiny+  - Buscar ​Attiny
  
-====== ​Turning your Arduino ​into a programmer of ISPArduino ​into an ISP programmer ​======+====== ​Convirtiendo su Arduino ​en un programador de ISPArduino ​en un programador de ISP ======
  
-Without condenser!+Sin condensador!
  
-Download the Arduino software and install itArduino software and install it\\ +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 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+
  
-Using your Arduino ISP to program an ATtiny microcontroller Add capacitors and programming connections! Arduino ISP to program an ATtiny microcontroller+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
  
-With condenser!+Con condensador!
  
-Select ​"​ATtiny45 (8 MHz)" ​in the "ToolsBoard" ​menu\\ +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 ​"​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.+
  
-Scheme:+Esquema:
  
-{{vimeo>​240630034?​medium}}+{{vimeo> 240630034? medium}}
  
-Code:+vimeo>​240630034?​medium}}
  
-/*\\ +Código:
-CODE for the Fabricademy e-textile sensor swatch\\ +
-first built for the Fabricademy 2017\\ +
-Hannah Perner-Wilson and Mika Satomi, KOBAKANT\\ +
-*/+
  
-#define sensorPin 3\\ +/ * \\ 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 speakerPin 2\\ +
-#define ledPin 0+
  
-int sensorValue = 0;\\ +#define sensorPin 3 \\ #define speakerPin 2 \\ #define ledPin ​0
-int noiseFrequency = 0;\\ +
-int ledBrightness = 0;+
  
-void setup()\\ +int sensorValue = 0; \\ int noiseFrequency = 0; \\ int ledBrightness ​0;
-{\\ +
-pinMode(sensorPin,​ INPUT)// use digital pin number here\\ +
-pinMode(speakerPin,​ OUTPUT);\\ +
-pinMode(ledPin,​ OUTPUT);​\\ +
-} void loop()\\ +
-{\\ +
-sensorValue ​analogRead(sensorPin)//use analog pin number here+
  
-//MAKE SOUND:\\ +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í 
-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);​ } //
  
 ---- ----
  
-====== ​Belt ======+====== ​Cinturón ​======
  
-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.+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.
  
-For decoration I vectorized an image to cut it on textile vinyl.+Para la decoración,​ vectoricé una imagen para cortarla en vinilo textil.
  
-{{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}}
  
-I opened with Rhinoceros ​and I rised the design.+Abrí con Rhinoceros ​y rematé el diseño.
  
 {{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 246: Line 219:
  
 Video: Video:
-{{youtube>​--DRFhbo86E?​medium}}+ 
 +{{youtube>​ - DRFhbo86E? medium}}