sábado, 13 de mayo de 2017
Arduno 1 R3
CIRCUITO LED
AUTODESK CIRCUITS
<iframe frameborder='0' height='448' marginheight='0' marginwidth='0' scrolling='no' src='https://circuits.io/circuits/4883363-ej-1-secuencia-lets/embed#schematic' width='650'></iframe>
// El pin 8 tiene conectado un LED en la mayoria de tarjetas arduino
// ponle un nombre:
int led1 = 8;
int led2 = 12;
int led3 = 13;
// :la rutina de configuracion corre cuando presionas reset:
void setup() {
// initialize the digital pin as an output.
pinMode(led1, OUTPUT);
pinMode(led2, OUTPUT);
pinMode(led3, OUTPUT);
}
// la rutina de configuracion corre una y otra vez por siempre:
void loop() {
digitalWrite(led1, HIGH); // ensiende el LED (HIGH es el nivel de voltaje)
delay(100); // espera un segundo
digitalWrite(led1, LOW); // apaga el LED volviendo el voltaje LOW
delay(1000); // espera un segundo
digitalWrite(led2, HIGH); // ensiende el LED (HIGH es el nivel de voltaje)
delay(100); // espera un segundo
digitalWrite(led2, LOW); // apaga el LED volviendo el voltaje LOW
delay(1000); // espera un segundo
digitalWrite(led3, HIGH); // ensiende el LED (HIGH es el nivel de voltaje)
delay(100); // espera un segundo
digitalWrite(led3, LOW); // apaga el LED volviendo el voltaje LOW
delay(1000); // espera un segundo
}
PLATAFORMA DE SIMULACIÓN
CIRCUITO DE 7 SEGMENTOS
https://circuits.io
// DECLARACION DE SEGMENTOS
int sege = 13;
int segd = 12;
int segc = 11;
int segb = 10;
int sega = 9;
int segf = 8;
int segg = 7;
// the setup routine runs once when you press reset:
void setup() {
// inicializar los segmentos como SALIDA
pinMode(sege, OUTPUT);
pinMode(segd, OUTPUT);
pinMode(segc, OUTPUT);
pinMode(segb, OUTPUT);
pinMode(sega, 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(80);
// C
digitalWrite(sega, LOW); // turn the LED off by making the voltage LOW
digitalWrite(segf, LOW); // turn the LED on (HIGH is the voltage level
digitalWrite(sege, LOW); // turn the LED on (HIGH is the voltage level
digitalWrite(segd, LOW);
delay(50); // 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(80);
// I
digitalWrite(segf, LOW); // turn the LED off by making the voltage LOW
digitalWrite(sege, LOW); // turn the LED on (HIGH is the voltage level
delay(80);
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(80);
// A
digitalWrite(sege, LOW);
digitalWrite(segf, LOW);
digitalWrite(sega, LOW);
digitalWrite(segb, LOW);
digitalWrite(segc, LOW);
digitalWrite(segg, LOW);
delay(80);
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(80);
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(segd, LOW); // turn the LED on (HIGH is the voltage level
digitalWrite(segb, LOW);
digitalWrite(segc, LOW);
digitalWrite(sega, LOW);
delay(500); // wait for a second
}
domingo, 2 de abril de 2017
sábado, 1 de abril de 2017
miércoles, 8 de marzo de 2017
POR SIEMPRE LUZ
Ejercicio realizado en la plataforma scratch.mit.edu vinculado a un trabajo llamado Ever Ligth basado en un proyecto imposible : Propongo enviar al espacio de forma satelital una estructura cóncava con espejos convexos ovales que distibullan la luz emitida por el sol en todo el planeta.
-Obligando a la naturaleza a una producción global ininterrumpida
-Unificando horarios de actividad económica.
-Acelerando el calentamiento global y llevando a la humanidad a su propio exterminio.
lunes, 27 de febrero de 2017
Suscribirse a:
Comentarios (Atom)








