Issue connecting ESP32-S3 to LCD Display Screen.

Jim_Stuart
Posts: 9
Joined: Wed Aug 14, 2024 12:10 am

Issue connecting ESP32-S3 to LCD Display Screen.

Postby Jim_Stuart » Fri Aug 30, 2024 9:49 pm

Code: Select all


#include <hd44780.h>
#include <Wire.h>

// Define the GPIO pins connected to the LCD
const int rs = 10;
const int en = 9;
const int d4 = 7;
const int d5 = 6;
const int d6 = 5;
const int d7 = 4;

// Initialize the library with the numbers of the interface pins
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);

// include the library code:

void setup() {
  // set up the LCD's number of columns and rows:
   lcd.begin(16, 2);  // 16 columns, 2 rows

  // Print "Hello World!" to the LCD
  lcd.setCursor(0, 0);  // Set cursor to the first column of the first row
  lcd.print("Hello World!");
}
 
void loop() {
  
}
I ran this code onto my esp32-s3 https://docs.espressif.com/projects/esp ... itc-1.html, which is connected to an LCD screen without the I2C module for it, but the screen just shows a bunch of random signs like question marks and stuff.

I used this configuration to connect to my esp32-s3, although I changed some of the pins since the example here uses a wroom:
https://www.circuitschools.com/interfac ... thout-i2c/

How should I connect the LCD such that the esp32-s3 can properly display text?

Who is online

Users browsing this forum: No registered users and 166 guests