lunes, 22 de mayo de 2017

Proyecto final

Mi idea del proyecto final es algo que va con i trayectoria de trabajo, se trata de un corto video de manos interactuando juntas de manera violenta o muy relajada.

LED

// Pin 13 has an LED connected on most Arduino boards.
// give it a name:
int led = 13;

// the setup routine runs once when you press reset:
void setup() {
  // initialize the digital pin as an output.
  pinMode(led, OUTPUT);
}

// the loop routine runs over and over again forever:
void loop() {
  digitalWrite(led, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);               // wait for a second
  digitalWrite(led, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);               // wait for a second
}


}Chat Conversation End

Circuito HOLA

// declaracion de pines
int led = 13;
int sega = 9;
int segb = 10;
int segc = 13;
int segd = 12;
int sege = 11;
int segf = 8;
int segg = 7;
int sefdf = 6;

// the setup routine runs once when you press reset:
void setup() {
  // inicializar como salida.
  pinMode(led, OUTPUT);
  pinMode(sega, OUTPUT);
  pinMode(segb, OUTPUT);
  pinMode(segc, OUTPUT);
  pinMode(segd, OUTPUT);
  pinMode(sege, OUTPUT);
  pinMode(segf, OUTPUT);
  pinMode(segg, OUTPUT);
}

// the loop routine runs over and over again forever:
void loop() {
 digitalWrite(segf, HIGH);   // turn the LED on (HIGH is the voltage level)
  digitalWrite(sege, HIGH);   // turn the LED on (HIGH is the voltage level
  digitalWrite(segg, HIGH);   // turn the LED on (HIGH is the voltage level
  digitalWrite(segb, HIGH);   // turn the LED on (HIGH is the voltage level
  digitalWrite(segc, HIGH);   // turn the LED on (HIGH is the voltage level
  digitalWrite(sega, HIGH);   // turn the LED on (HIGH is the voltage level
  digitalWrite(segd, HIGH);   // turn the LED on (HIGH is the voltage level
 
 delay(2000);
 
  // H
  digitalWrite(segf, LOW);    // turn the LED off by making the voltage LOW
  digitalWrite(sege, LOW);   // turn the LED on (HIGH is the voltage level
  digitalWrite(segg, LOW);   // turn the LED on (HIGH is the voltage level
  digitalWrite(segb, LOW);
  digitalWrite(segc, LOW);
  delay(1000);               // wait for a second
 
  digitalWrite(segf, HIGH);   // turn the LED on (HIGH is the voltage level)
  digitalWrite(sege, HIGH);   // turn the LED on (HIGH is the voltage level
  digitalWrite(segg, HIGH);   // turn the LED on (HIGH is the voltage level
  digitalWrite(segb, HIGH);   // turn the LED on (HIGH is the voltage level
  digitalWrite(segc, HIGH);   // turn the LED on (HIGH is the voltage level
  digitalWrite(sega, HIGH);   // turn the LED on (HIGH is the voltage level
  digitalWrite(segd, HIGH);   // turn the LED on (HIGH is the voltage level
 
 delay(100);
 
   // 0
  digitalWrite(segf, LOW);    // turn the LED off by making the voltage LOW
  digitalWrite(sege, LOW);   // turn the LED on (HIGH is the voltage level
  digitalWrite(sega, LOW);   // turn the LED on (HIGH is the voltage level
  digitalWrite(segb, LOW);
  digitalWrite(segc, LOW);
  digitalWrite(segd, LOW);
  delay(1000);  
 
  digitalWrite(segf, HIGH);   // turn the LED on (HIGH is the voltage level)
  digitalWrite(sege, HIGH);   // turn the LED on (HIGH is the voltage level
  digitalWrite(segg, HIGH);   // turn the LED on (HIGH is the voltage level
  digitalWrite(segb, HIGH);   // turn the LED on (HIGH is the voltage level
  digitalWrite(segc, HIGH);   // turn the LED on (HIGH is the voltage level
  digitalWrite(sega, HIGH);   // turn the LED on (HIGH is the voltage level
  digitalWrite(segd, HIGH);   // turn the LED on (HIGH is the voltage level
 
 delay(100);
 
   // L
    digitalWrite(segf, LOW);
    digitalWrite(sege, LOW);
    digitalWrite(segd, LOW);
 
  delay(1000);
 
  digitalWrite(segf, HIGH);   // turn the LED on (HIGH is the voltage level)
  digitalWrite(sege, HIGH);   // turn the LED on (HIGH is the voltage level
  digitalWrite(segg, HIGH);   // turn the LED on (HIGH is the voltage level
  digitalWrite(segb, HIGH);   // turn the LED on (HIGH is the voltage level
  digitalWrite(segc, HIGH);   // turn the LED on (HIGH is the voltage level
  digitalWrite(sega, HIGH);   // turn the LED on (HIGH is the voltage level
  digitalWrite(segd, HIGH);   // turn the LED on (HIGH is the voltage level
 
 delay(100);
 
  digitalWrite(segf, LOW);    // turn the LED off by making the voltage LOW
  digitalWrite(sege, LOW);   // turn the LED on (HIGH is the voltage level
  digitalWrite(segg, LOW);   // turn the LED on (HIGH is the voltage level
  digitalWrite(segb, LOW);
  digitalWrite(segc, LOW);
  digitalWrite(sega, LOW);
  delay(1000);               // wait for a second
 
 delay(100);
  digitalWrite(sege, HIGH);   // turn the LED on (HIGH is the voltage level
  digitalWrite(segf, HIGH);   // turn the LED on (HIGH is the voltage level)
  digitalWrite(segg, HIGH);   // turn the LED on (HIGH is the voltage level)
  digitalWrite(sega, HIGH);   // turn the LED on (HIGH is the voltage level)
 
 
 
}

domingo, 21 de mayo de 2017

¿Cómo asumo la tecnología?

En mi trabajo artístico, asumo la tecnología con dibujo y la imprenta. La imprenta es una invención de mediados del siglo XV pero la seguimos asumiendo con tórculos, gubias, madera (en mi caso linóleo) y tinta.

Dibujito- Display de 7 segmentos

// Pin 13 has an LED connected on most Arduino boards.
// give it a name:
int led = 13;
int sega = 2;
int segb = 3;
int segc = 4;
int segd = 5;
int sege = 6;
int segf = 7;
int segg = 8;




// the setup routine runs once when you press reset:
void setup() {
  // initialize the digital pin as an output.
  pinMode(led, OUTPUT);
  pinMode(sega, OUTPUT);
  pinMode(segb, OUTPUT);
  pinMode(segc, OUTPUT);
  pinMode(segd, OUTPUT);
  pinMode(sege, OUTPUT);
  pinMode(segf, OUTPUT);
  pinMode(segg, OUTPUT);
}

// the loop routine runs over and over again forever:
void loop() {
  digitalWrite(sega, LOW);   // turn the LED on (HIGH is the voltage level
  delay(1000);
  digitalWrite(segf, HIGH);   // turn the LED on (HIGH is the voltage level)
  digitalWrite(sege, HIGH);   // turn the LED on (HIGH is the voltage level
  digitalWrite(segg, HIGH);   // turn the LED on (HIGH is the voltage level
  digitalWrite(segb, HIGH);   // turn the LED on (HIGH is the voltage level
  digitalWrite(segc, HIGH);   // turn the LED on (HIGH is the voltage level
  digitalWrite(sega, HIGH);   // turn the LED on (HIGH is the voltage level
  digitalWrite(segd, HIGH);   // turn the LED on (HIGH is the voltage level
 
 delay(100);
 
  digitalWrite(segf, LOW);   // turn the LED on (HIGH is the voltage level
  delay(1000);
  digitalWrite(segf, HIGH);   // turn the LED on (HIGH is the voltage level)
  digitalWrite(sege, HIGH);   // turn the LED on (HIGH is the voltage level
  digitalWrite(segg, HIGH);   // turn the LED on (HIGH is the voltage level
  digitalWrite(segb, HIGH);   // turn the LED on (HIGH is the voltage level
  digitalWrite(segc, HIGH);   // turn the LED on (HIGH is the voltage level
  digitalWrite(sega, HIGH);   // turn the LED on (HIGH is the voltage level
  digitalWrite(segd, HIGH);   // turn the LED on (HIGH is the voltage level
 
 delay(100);
 
  digitalWrite(sege, LOW);   // turn the LED on (HIGH is the voltage level
  delay(1000);
  digitalWrite(segf, HIGH);   // turn the LED on (HIGH is the voltage level)
  digitalWrite(sege, HIGH);   // turn the LED on (HIGH is the voltage level
  digitalWrite(segg, HIGH);   // turn the LED on (HIGH is the voltage level
  digitalWrite(segb, HIGH);   // turn the LED on (HIGH is the voltage level
  digitalWrite(segc, HIGH);   // turn the LED on (HIGH is the voltage level
  digitalWrite(sega, HIGH);   // turn the LED on (HIGH is the voltage level
  digitalWrite(segd, HIGH);   // turn the LED on (HIGH is the voltage level
 
 delay(100);
 
  digitalWrite(segd, LOW);   // turn the LED on (HIGH is the voltage level
  delay(1000);
  digitalWrite(segf, HIGH);   // turn the LED on (HIGH is the voltage level)
  digitalWrite(sege, HIGH);   // turn the LED on (HIGH is the voltage level
  digitalWrite(segg, HIGH);   // turn the LED on (HIGH is the voltage level
  digitalWrite(segb, HIGH);   // turn the LED on (HIGH is the voltage level
  digitalWrite(segc, HIGH);   // turn the LED on (HIGH is the voltage level
  digitalWrite(sega, HIGH);   // turn the LED on (HIGH is the voltage level
  digitalWrite(segd, HIGH);   // turn the LED on (HIGH is the voltage level
 
 delay(100);
 
  digitalWrite(segc, LOW);   // turn the LED on (HIGH is the voltage level
  delay(1000);
  digitalWrite(segf, HIGH);   // turn the LED on (HIGH is the voltage level)
  digitalWrite(sege, HIGH);   // turn the LED on (HIGH is the voltage level
  digitalWrite(segg, HIGH);   // turn the LED on (HIGH is the voltage level
  digitalWrite(segb, HIGH);   // turn the LED on (HIGH is the voltage level
  digitalWrite(segc, HIGH);   // turn the LED on (HIGH is the voltage level
  digitalWrite(sega, HIGH);   // turn the LED on (HIGH is the voltage level
  digitalWrite(segd, HIGH);   // turn the LED on (HIGH is the voltage level
 
 delay(100);
 
  digitalWrite(segb, LOW);   // turn the LED on (HIGH is the voltage level
  delay(1000);
  digitalWrite(segf, HIGH);   // turn the LED on (HIGH is the voltage level)
  digitalWrite(sege, HIGH);   // turn the LED on (HIGH is the voltage level
  digitalWrite(segg, HIGH);   // turn the LED on (HIGH is the voltage level
  digitalWrite(segb, HIGH);   // turn the LED on (HIGH is the voltage level
  digitalWrite(segc, HIGH);   // turn the LED on (HIGH is the voltage level
  digitalWrite(sega, HIGH);   // turn the LED on (HIGH is the voltage level
  digitalWrite(segd, HIGH);   // turn the LED on (HIGH is the voltage level
 
 delay(100);
 
 
}

FAFA- display de 7 segmentos

// Pin 13 has an LED connected on most Arduino boards.
// give it a name:
int led = 13;
int sega = 2;
int segb = 3;
int segc = 4;
int segd = 5;
int sege = 6;
int segf = 7;
int segg = 8;

// the setup routine runs once when you press reset:
void setup() {
  // initialize the digital pin as an output.
  pinMode(led, OUTPUT);
  pinMode(sega, OUTPUT);
  pinMode(segb, OUTPUT);
  pinMode(segc, OUTPUT);
  pinMode(segd, OUTPUT);
  pinMode(sege, OUTPUT);
  pinMode(segf, OUTPUT);
  pinMode(segg, OUTPUT);
}

// the loop routine runs over and over again forever:
void loop() {
  digitalWrite(segf, HIGH);   // turn the LED on (HIGH is the voltage level)
  digitalWrite(sege, HIGH);   // turn the LED on (HIGH is the voltage level
  digitalWrite(segg, HIGH);   // turn the LED on (HIGH is the voltage level
  digitalWrite(sega, HIGH);   // turn the LED on (HIGH is the voltage level
  digitalWrite(segb, HIGH);   // turn the LED on (HIGH is the voltage level
  digitalWrite(segc, HIGH);   // turn the LED on (HIGH is the voltage level
  digitalWrite(segd, HIGH);   // turn the LED on (HIGH is the voltage level
 
  delay(2000);
 
//F
   digitalWrite(segf, LOW);    // turn the LED off by making the voltage LOW
   digitalWrite(sege, LOW);   // turn the LED on (HIGH is the voltage level
   digitalWrite(segg, LOW);   // turn the LED on (HIGH is the voltage level
   digitalWrite(sega, LOW);   // turn the LED on (HIGH is the voltage level
   delay(1000);               // wait for a second
 
  digitalWrite(segf, HIGH);   // turn the LED on (HIGH is the voltage level)
  digitalWrite(sege, HIGH);   // turn the LED on (HIGH is the voltage level
  digitalWrite(segg, HIGH);   // turn the LED on (HIGH is the voltage level
  digitalWrite(sega, HIGH);   // turn the LED on (HIGH is the voltage level
  digitalWrite(segb, HIGH);   // turn the LED on (HIGH is the voltage level
  digitalWrite(segc, HIGH);   // turn the LED on (HIGH is the voltage level
  digitalWrite(segd, HIGH);   // turn the LED on (HIGH is the voltage level
 
  delay(100);
 
//A
  digitalWrite(segf, LOW);    // turn the LED off by making the voltage LOW
  digitalWrite(sege, LOW);   // turn the LED on (HIGH is the voltage level
  digitalWrite(segg, LOW);   // turn the LED on (HIGH is the voltage level
  digitalWrite(segb, LOW);
  digitalWrite(segc, LOW);
  digitalWrite(sega, LOW);
  delay(1000);               // wait for a second
 
 delay(100);
  digitalWrite(sege, HIGH);   // turn the LED on (HIGH is the voltage level
  digitalWrite(segf, HIGH);   // turn the LED on (HIGH is the voltage level)
  digitalWrite(segg, HIGH);   // turn the LED on (HIGH is the voltage level)
  digitalWrite(sega, HIGH);   // turn the LED on (HIGH is the voltage level)
 

}

martes, 25 de abril de 2017

Circuito

// El pin 13 tiene conectado un LED en la mayoría de tarjetas Arduino
// ponle un nombre:
int led = 7;
int led2 = 8;
int led3 = 9;

// la rutina de configuración corre sólo una vez
void setup() {
  // initialize the digital pin as an output.
  pinMode(led, OUTPUT);
  pinMode(led2, OUTPUT);
  pinMode(led3, OUTPUT);
}

// la rutina loop se repite una y otra vez
void loop() {
  digitalWrite(led, HIGH);   // enciende el LED (HIGH es el nivel del voltaje)
  delay(100);               // espera un segundo
  digitalWrite(led, LOW);    // turn the LED off by making the voltage LOW
  delay(100);               // wait for a second
  digitalWrite(led2, HIGH);   // enciende el LED (HIGH es el nivel del voltaje)
  delay(100);               // espera un segundo
  digitalWrite(led2, LOW);    // turn the LED off by making the voltage LOW
  delay(100);               // wait for a second
  digitalWrite(led3, HIGH);   // enciende el LED (HIGH es el nivel del voltaje)
  delay(100);               // espera un segundo
  digitalWrite(led3, LOW);    // turn the LED off by making the voltage LOW
  delay(100);               // wait for a second
}

martes, 7 de febrero de 2017

Dibujo libre en blockly

https://blockly-games.appspot.com/turtle?lang=es&level=10#5w55mg

Algoritmo para fumarse un cigarro

1. Tener un cigarro
2. Tener un encendedor
3. Tomar cigarro y colocarlo entre índice y mayor derechos.
4. Poner cigarro en la boca, entre los labios.
5. Tomar encendedor y encender la flama.
6. Llevar flama a la punta del cigarro libre.
7. Inhalar cuando la flama está bajo el cigarro.
8. Exhalar humo y apagar flama del encendedor.
9. Dejar encendedor.
10. Retirar cigarro de la boca.
11. Introducir cigarro entre los labios.
12. Inhalar.
13. Exhalar y retirar cigarro de la boca.
     (Repetir pasos del 10 al 13 en este orden: 11, 12, 13, 10)
14. Apagar cuando sea consumido.

Animación de scratch