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

Papirrruqui
Posts: 2
Joined: Wed Feb 01, 2023 9:18 pm

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

Postby Papirrruqui » Wed Feb 01, 2023 9:46 pm

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?

ESP_Minatel
Posts: 361
Joined: Mon Jan 04, 2021 2:06 pm

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

Postby ESP_Minatel » Thu Feb 02, 2023 5:29 pm

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.

Papirrruqui
Posts: 2
Joined: Wed Feb 01, 2023 9:18 pm

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

Postby Papirrruqui » Fri Feb 03, 2023 6:43 am

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.

Who is online

Users browsing this forum: No registered users and 27 guests