How to Use 16x2 i2C LCD Display With ESP32 | With Program Explanation
ฝัง
- เผยแพร่เมื่อ 4 มิ.ย. 2023
- ESP32 Additional Boards URL
dl.espressif.com/dl/package_e...
Code, Circuit Diagram and Library:
github.com/harshkzz/ESP32-16x...
For any business queries contact us at inovatrixhelp@gmail.com - วิทยาศาสตร์และเทคโนโลยี
Greetings from Indonesia, I am very happy to be successful always, hopefully the knowledge is a blessing. We are waiting for the next project and program code.
can i use pins 22 and 23 ? instead of 21 and 23 ? if i can, i will change anything in the code ?
I already use pin21 for my TFT screen touch function. I'm using SPI library.
Can I still use pin21 for I2C? Any conflict for this?
Thanks very much
thank you!!
hello and thanks for the video, where is the library o wich is the one tha you are using to install??
drive.google.com/drive/folders/1ugiVgwHI1Acst_C2zxr8cmDkIpVEWnIu
It wasn't added to the GitHub library 😬😬, you can get it from here.
Fantastic tutorial. However, I ran into a problem where the LCD is blank. I tried testing the I2C pins but I get a message "No I2C device found". Please, how do I resolve this?
Check connection between the Arduino and the i2c board.
My connection is SDA>>D21
SCL>>D23
Try using different wire, sometimes the wires are not good.
Add in setup function Wire.setPins ( 21, 22 ); or whatever. Without this line it will never work.
You can damage the pins of the ESP32 by sending data with signal levels between 0V and 5V, as shown in this video. The ESP32 can only support up to 3.3V. Use a level shifter between the LCD display and the ESP32 to avoid damaging your board.
Wrong, the power in the LCD is not related to the digital signal, they are separate.
i have error for this which is error: 'class LiquidCrystal_I2C' has no member named 'init'
lcd.init(); // Initialize the LCD
^~~~
Multiple libraries were found for "LiquidCrystal_I2C.h"
exit status 1
Compilation error: 'class LiquidCrystal_I2C' has no member named 'init'
Did you already found how to repair this error ?
Use lcd.begin();
did you find the solution?
Creo que todos tenemos el mismo problema
In the Arduino > library folder, look for the LiquidCrystal_I2C library and delete it. Then, go to the library manager and search for LiquidCrystal_I2C.h, install Frank de Brabander's version and click install. It will work.