LCD I2C ----------------------
SCL : D 22
SDA : D 21
Vcc : 5V 1st time i try using VIN in Dec Kit its failed, 2nd time i try using adaptor 5V and still fail i mean no word in it.
GND: 1st im using Dev kit Gnd, 2nd using adaptor Gnd.
DHT22--------
Vcc : 3,3V
GND : Dev Kit Gnd
Data : D 4
2.I had try just monitoring DHT22 + LCD I2C and its work.
Code :
#include <LiquidCrystal_I2C.h>
#include <Wire.h>
#include <DHT.h>
LiquidCrystal_I2C lcd(0x27, 16, 2);
#define DHTPIN 4 // What digital pin we're connected to
#define DHTTYPE DHT22 // DHT 22, AM2302, AM2321
DHT dht(DHTPIN, DHTTYPE);
void setup() {
Serial.begin(9600);
dht.begin();
lcd.begin();
}
void loop(){
float h = dht.readHumidity();
float t = dht.readTemperature(); // or dht.readTemperature(true) for Fahrenheit
lcd.setCursor(0, 0);
lcd.print("H : ");
lcd.print(h);
lcd.print("%");
lcd.setCursor(0, 1);
lcd.print("T : ");
lcd.print(t);
lcd.print("C");
}
3.The sketch i reply, it doesnt display data in Blynk, but its stable in connection.
I have try move it to first lines but its end up my lcd dont show data, but i have edit calling the sendsensor() function to 1000L. I think i keep the LCD lib be 1st line
So I’m confused about where the Adafruit library you mentioned earlier fits-in to the equation.
When you compile the code and it lists the libraries used, does it mention the Adafruit library, and does it say that version 1.0.7 of this library was used?
I need to see more of that message for it to be meaningful, and at the end of the compilation - before the upload - it should list the libraries used. I’d like you to copy that in full.
Do mean that you’re currently nit using a separate power supply for the LCD?
If that’s the case you may already have damaged your ESP32.