

This circuit integrates an ESP32 microcontroller with an I2C LCD 16x2 screen and a 2-channel relay module. The ESP32 is programmed to display messages on the LCD screen and control the relay module. The LCD screen is interfaced with the ESP32 via the I2C protocol, and the relay module is controlled through GPIO pins. The circuit is designed to operate with a common ground and power supply for all components.
/*
* This Arduino Sketch interfaces an ESP32 with an I2C LCD 16x2 screen.
* The ESP32 displays two messages on the LCD screen in a loop with delays.
* Connections:
* - ESP32 GND to LCD GND
* - ESP32 Vin to LCD VCC (5V)
* - ESP32 D22 to LCD SCL
* - ESP32 D21 to LCD SDA
*/
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 16, 2);
void setup() {
Serial.begin(115200);
lcd.init();
lcd.backlight();
lcd.print("Welcome");
delay(2000);
lcd.init();
lcd.backlight();
lcd.print("EV 22CHRG");
delay(2000);
}
void loop() {
delay(1000);
lcd.clear();
lcd.setCursor(0, 0);
lcd.print("SLOT1");
delay(2000);
}
Filename: sketch.ino
Description: The code initializes the I2C LCD screen and prints a welcome message followed by "EV 22CHRG". In the loop, it periodically clears the screen and prints "SLOT1". The ESP32 communicates with the LCD via I2C, using pins D22 for SCL and D21 for SDA. The relay module is not controlled in this code snippet.