Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
EVIDENCIA # 2
HORA: LMV M4
18 / FEBRERO / 2015
SISTEMA DE RIEGO
Se desconocen sus
especificaciones de alimentacin
ya que el empaque no contaba con
tales.
int bomba=7;
void setup ()
{
pinMode(bomba, OUTPUT);
}
void loop()
{
digitalWrite(bomba, HIGH);
}
SENSOR DE LLUVIA
int sensorPin = A0; // select the input pin for the potentiometer
int sensorValue = 0; // variable to store the value coming from the sensor
void setup() {
Serial.begin(9600);
void loop() {
sensorValue = analogRead(sensorPin);
delay(1000);
Serial.print("sensor = " );
Serial.println(sensorValue);
}
En la siguiente captura de pantalla se aprecian los valores arrojados por Arduino: