martes, 22 de noviembre de 2016

Nuestros pasos en Arduino.

Prendimos la placa.



Prendimos un led en la placa.

void setup() {
  pinMode(13, OUTPUT);


}


void loop() {
  digitalWrite(13, HIGH);
  delay(2000);
  digitalWrite(13, LOW);
  delay(2000);

}
________________________

void setup() {
  pinMode(13, OUTPUT);


}


void loop() {
  digitalWrite(13, HIGH);
  delay(3000);
  digitalWrite(13, LOW);
  delay(2000);
  digitalWrite(13, HIGH);
  delay(2000);
  digitalWrite(13, LOW);
  delay(1000);
  digitalWrite(13, HIGH);
  delay(1000);
  digitalWrite(13, LOW);
  delay(500);

}


                          

Prendimos un led en la protoboard.

void setup() {
  pinMode(2, OUTPUT);


}


void loop() {
  digitalWrite(2, HIGH);
  delay(2000);
  digitalWrite(2, LOW);
  delay(2000);


}
____________________________

void setup() {
  pinMode(2, OUTPUT);


}

void loop() {
  digitalWrite(2, HIGH);
  delay(3000);
  digitalWrite(2, LOW);
  delay(1000);
  digitalWrite(2, HIGH);
  delay(2000);
  digitalWrite(2, LOW);
  delay(500);
  digitalWrite(2, HIGH);
  delay(1000);
  digitalWrite(2, LOW);
  delay(250);


}


Prendimos dos leds en la protoboard.

                      

Hicimos un semáforo.

                       

Tres leds titilan.

void setup() {
  pinMode(1, OUTPUT);
  pinMode(2, OUTPUT);
  pinMode(3, OUTPUT);

}

void loop() {
  digitalWrite(1, HIGH);
  delay(3000);
  digitalWrite(1, LOW);
  delay(3000);
  digitalWrite(2, HIGH);
  delay(3000);
  digitalWrite(2, LOW);
  delay(3000);
  digitalWrite(3, HIGH);
  delay(3000);
  digitalWrite(3, LOW);
  delay(3000);
  digitalWrite(1, HIGH);
  digitalWrite(2, HIGH);
  digitalWrite(3, HIGH);
  delay(3000);
  digitalWrite(1, LOW);
  digitalWrite(2, LOW);
  digitalWrite(3, LOW);
  delay(3000);
  digitalWrite(3, HIGH);
  delay(3000);
  digitalWrite(3, LOW);
  delay(3000);
  digitalWrite(2, HIGH);
  delay(3000);
  digitalWrite(2, LOW);
  delay(3000);
  digitalWrite(1, HIGH);
  delay(3000);
  digitalWrite(1, LOW);
  delay(3000);
  digitalWrite(1, HIGH);
  digitalWrite(2, HIGH);
  digitalWrite(3, HIGH);
  delay(3000);
  digitalWrite(1, LOW);
  digitalWrite(2, LOW);
  digitalWrite(3, LOW);
  delay(3000);


}


• Grupo: Celeste Garcia, Valentina Natoli, Julieta Saravia y Keila Talevi.