Page 1 of 1

ESP32-S3_DevKitC-1 V1.0 and I2C IIC Two Wire

Posted: Wed Feb 01, 2023 9:46 pm
by Papirrruqui
For the last 12 hours, I've been trying to communicate with an I2C device with no success.
The noise gathered by the ADC of the pins with a LRD was unrealistic. For this reason, I ordered a few different I2C sensors to solve the noise problem. I then tried to make a simple sketch in the Arduino IDE to display some text on an LCD1602, just to communicate via I2C, but I couldn't.

Did I make a mistake by purchasing the Tosh ESP32-S3_DevKitC-1 V1.0? Do I have to start over with another microcontroller?

Can someone provide or point to a sample code for the ESP32-S3_DevKitC-1 V1.0 using I2C communication with an LCD1602 or a similar I2C sensor?

Re: ESP32-S3_DevKitC-1 V1.0 and I2C IIC Two Wire

Posted: Thu Feb 02, 2023 5:29 pm
by ESP_Minatel
Hi,

Have you tried to scan the I2C devices on the bus? This will help you to see if the devices are connected correctly.

If you are using the Arduino IDE, you can try this one: WireScan.

There are some LCD1602 libs, but the most used is this one: LiquidCrystal_I2C.

Re: ESP32-S3_DevKitC-1 V1.0 and I2C IIC Two Wire

Posted: Fri Feb 03, 2023 6:43 am
by Papirrruqui
Yes. I have tried to scan for the port where the LCD is located, but if the LCD is not connected to the correct pins, or the pins where the SDA and SCL of the display are connected are not configured for this purpose, the scan does not find the display.
Apparently the esp32s3 does not have defined i2c pins and any pin can be configured for this function. That's why I am looking for an example that can offer me some light in this dark cave.