This document provides instructions for building an incubator circuit using an Arduino module. It lists the required materials which include a 50W light bulb, DHT22 temperature and humidity sensor, LCD display, relay module, cardboard box, and other basic electronics components. It also includes the code to program the Arduino to read the sensor values, display them on the LCD, and control the light bulb using a relay based on the measured temperature.
Original Description:
Sensor Dht22 ( temperatura y humedad relativa) y apagado y prendido de foco con modulo relay.
This document provides instructions for building an incubator circuit using an Arduino module. It lists the required materials which include a 50W light bulb, DHT22 temperature and humidity sensor, LCD display, relay module, cardboard box, and other basic electronics components. It also includes the code to program the Arduino to read the sensor values, display them on the LCD, and control the light bulb using a relay based on the measured temperature.
This document provides instructions for building an incubator circuit using an Arduino module. It lists the required materials which include a 50W light bulb, DHT22 temperature and humidity sensor, LCD display, relay module, cardboard box, and other basic electronics components. It also includes the code to program the Arduino to read the sensor values, display them on the LCD, and control the light bulb using a relay based on the measured temperature.
─ 0I FOCO DE 50 WATTS ─ UN SENSOR DE TEMPERATURA HUMEDAD RELATIVA DHT22
─ U MODULO RELAY PARA ARDUINO ─ UNA CAJA DE CARTON ─ UNA PANTALLA LCD 16X2 ─ TECNOPOR ─ UN MOCULO I2C ─ SILICONA ─ UN POWER BANK ─ TIJERA ─ CABLE CODIGO DE PROGRAMACION:
#include <Wire.h> #define DHTPIN 12
#define DHTTYPE DHT22 //DHT22 #include <LiquidCrystal_I2C.h> DHT dht(DHTPIN, DHTTYPE); int rele=13; LiquidCrystal_I2C lcd(0x3F,16,2); //0X27F - 0X20F int vcc= 11; //crear pines de 5v
#include "DHT.h" void setup() {
lcd.init(); if(t>20) lcd.backlight(); { lcd.clear(); digitalWrite(rele,HIGH); pinMode(rele,OUTPUT); lcd.clear(); pinMode(vcc,OUTPUT); lcd.setCursor(0,0); dht.begin(); lcd.print(" LAMPARA OFF"); } void loop() { lcd.setCursor(0,1); lcd.print("Cel.985187974"); digitalWrite(vcc,HIGH); int h = dht.readHumidity(); // Lee la humedad delay(2000); int t= dht.readTemperature(); } else lcd.clear();//Elimina todos los simbolos del LCD { lcd.setCursor(0,0);//Posiciona la primera letra despues del segmento digitalWrite(rele,LOW); 5 en linea 1 } lcd.print("Humedad: "); } lcd.setCursor(8,0); lcd.print(h);//Escribe la humedad lcd.print("%");
lcd.setCursor(0,1); lcd.print("Temperatura: "); lcd.setCursor(12,1); lcd.print(t);//Escribe la temperatura lcd.print(" C"); delay (2500);