lunes, 12 de junio de 2017

Prácticas con Arduino 1 Leo de Torres y César Muñoz

                      Prácticas Arduino 1#

                        Leo de Torres y César Muñoz

 

1: Descripción

  Vamos a hacer un sistema electrónico que encienda un LED simulando el  ritmo cardiaco

2: Diseño

    -Lista de Materiales 

    ⧭ID U1: ARDUINO UNO (X1)

    ⧭ID D1: LED ROJO (X1)

    ⧭ID R1: RESISTENCIA 220 (X1)

  




CODIGO:
// 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 a karpa.
  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(250);               // wait for a second
  digitalWrite(led, LOW);   // turn the LED on (HIGH is the voltage level)
  delay(250);               // wait for a second
  digitalWrite(led, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(250);               // wait for a second
  digitalWrite(led, LOW);   // turn the LED on (HIGH is the voltage level)
  delay(1000);               // wait for a second
}


3:Construcción

 

4:Evaluación

 La practica ha resultado satisfactoria: el LED ha funcionado a la perfección en la representación del ciclo cardíaco.

5:Simulación

No hay comentarios:

Publicar un comentario