Using LCD1602 or LCD2004 with ESP32

  Рет қаралды 75,406

Robojax

Robojax

Күн бұрын

Пікірлер: 101
@johnbastin722
@johnbastin722 Жыл бұрын
One of the best explanations of the 1602/esp32 I have seen. Well done 👍
@robojax
@robojax Жыл бұрын
Wow, thanks!
@johnbastin722
@johnbastin722 Жыл бұрын
You mentioned the voltage in, I’d not using the usb connector. I have seen no one use this.
@EngineerNotFound
@EngineerNotFound 24 күн бұрын
Answered just the question I had about the data and clock pins (SDA and SCL). I'm already using pin 21 on the ESP32 for the data pin on my PCA9685 servo driver board and wondered if there was another pin I could use for the LCD data. Glad you pointed out that the pin can be shared by several devices. Thank you.
@robojax
@robojax 21 күн бұрын
you can connect up to 128 devices on I2C bus. Just connect them in parallel.
@INGCANASO
@INGCANASO Жыл бұрын
¡Gracias!
@robojax
@robojax Жыл бұрын
Thank you very much.
@lobbers66
@lobbers66 4 жыл бұрын
Thanks for this video. Solved my problem and learnt a lot. Your format is the best, lots of close ups and explanation. Thanks again.
@robojax
@robojax 4 жыл бұрын
You are welcome. I am glad it helped.
@muhammadadnanahmed8324
@muhammadadnanahmed8324 Жыл бұрын
Really it is best explanation of this video.
@manjifera
@manjifera 4 жыл бұрын
Thank you so much for your solution for dim display on esp 3.3v
@robojax
@robojax 4 жыл бұрын
you are welcome.
@michaeldupreez8319
@michaeldupreez8319 Ай бұрын
Shame on me for skipping though the video, only because i feel like i have seen it all before haha, this comment, lead me to the solution to my problem
@kerimcelenka
@kerimcelenka Жыл бұрын
Thank you! It's very helpful!!!
@chronobot2001
@chronobot2001 Жыл бұрын
Great video. It pretty much is just like the Arduino, you just need to know where the SCL and SDA pins are on this board.
@phoenixset6401
@phoenixset6401 4 жыл бұрын
I just cant imagine better explaination than this, quick, clear and you are ready to go with LCDs right after this video, no more needs. Thank you.
@robojax
@robojax 4 жыл бұрын
Thank you for not skipping the ads and keep watching it. This will help me a lot.
@mafketeltje1988
@mafketeltje1988 3 жыл бұрын
this is "Monkey style" honestly, it works until you need to think yourself about how to innitialize, count etc. But you're right, just getting something on the screen (which most want) is this perfect...
@mick_hyde
@mick_hyde 5 жыл бұрын
Very clear explanation, thanks.
@robojax
@robojax 5 жыл бұрын
You are welcome.
@kshitizsharma4581
@kshitizsharma4581 4 жыл бұрын
Thanku sir this video helped me alot
@robojax
@robojax 4 жыл бұрын
Most welcome
@TaylenIsInsane
@TaylenIsInsane 10 ай бұрын
Thanks for the very helpful video. I have a question, and that is, My ESP32 does not seem to have a 5v pin. I have read some articles that say you can use the VIN pin as a 5V pin, however some comments have some mixed reviews about that, and others say it has worked. Is it safe to do so? I do not want to fry my ESP32 😁
@kystuart1413
@kystuart1413 2 жыл бұрын
hi sorry how do you count down from a certain number that u can set?
@robojax
@robojax 2 жыл бұрын
Hi, you can learn it from this counter video kzbin.info/www/bejne/a3Kcm4N6atOIedk but instead of 0 at start, set your number like 100 and then instead of ++ which increments, use -- to decrements the value.
@soulstice555
@soulstice555 3 жыл бұрын
Hi I have a question! When you say if you bring the wire in the breadboard you can connect to up to 128 devices, you mean with one esp32 i can connect many lcd?
@robojax
@robojax 3 жыл бұрын
Hi, Yes exactly you can control that many devices .
@noedger
@noedger Жыл бұрын
Hi. I know this is old but I need some advice. Got my screen working with your tutorial but adding a rotary encoder button seems to be a problem. As soon as I declare the encoderbutto pins the screen does not work. It only displays all blocks of pixels lit up. Can you assist.
@robojax
@robojax Жыл бұрын
Hi, you can learn it from this video kzbin.info/www/bejne/bKm5fZWEodJ-Y8k
@hagory85
@hagory85 Жыл бұрын
Buenas , en primer lugar excelente trabajo… podrías pasarme el enlace de la librería?
@robojax
@robojax Жыл бұрын
Hi, the link is in the description well the video.
@yasin_akar
@yasin_akar Жыл бұрын
Aleykum selam tesekkür ederim
@koshan12
@koshan12 5 жыл бұрын
nice video as always. btw at 1:10 you already have a video for the last one or will you have a video ?
@robojax
@robojax 5 жыл бұрын
Thanks. Yes the video for that is coming soon.
@y32code16
@y32code16 5 ай бұрын
just to clarify, powering a electrical component with 5v will make its logic at 5v. if your lcd is 5v powered and since the esp32 logic is 3.3v that means the sda and scl pins and all gpio pins on the esp32 can only handle 3.3v and CANNOT handle 5v you can degrade your esp32 this way or even fry it or damage it. consider using a logic level shifter (compatible with i2c) with the i2c pins from the lcd to the esp32.
@elektron2kim666
@elektron2kim666 3 ай бұрын
Not always. It's a display in this case and is using some. All of mine are powering stuff at 5 volts (outbound), but it's not stressing the logic. I made an adapter to test those lines, if I have any doubts, but you are also right, of course.
@studiomaquette8146
@studiomaquette8146 Жыл бұрын
Hi guys I don't have the libairi by Franck do you have an alternative.Thanks
@robojax
@robojax Жыл бұрын
The library is provided. you just download and install it. There is a link under the video or shown in the video.
@qzorn4440
@qzorn4440 2 жыл бұрын
hi, my new lcd2004-i2c display project is with a Lilygo ESP32 CAN RS485 Modbus SD-card with limited pins IO_05,12,18,25,32,33,34,35... wish me luck and thank you.
@robojax
@robojax 2 жыл бұрын
Good luck.
@J-s0n
@J-s0n 5 жыл бұрын
Where is the library for the lcd?
@robojax
@robojax 5 жыл бұрын
when video starts it says "You can get the code for this video by clicking on the link under the video in the description which will take you to robojax.com slash learn slash arduino". Perhaps you escaped the video.
@j.n.5523
@j.n.5523 4 жыл бұрын
@@robojax I think, it is unclear that the "ESP32 Github repository" is the library link.
@rtufino
@rtufino 4 жыл бұрын
@@j.n.5523 @Robojax In your links doesn't show the link to library
@melissaitzelcruzantonio4269
@melissaitzelcruzantonio4269 3 жыл бұрын
puedo conectar Vin de mi esp32 al VCC del lcd? no causa problemas? Mi esp32 no tiene 5V, solo tiene 3.3V y Vin
@robojax
@robojax 3 жыл бұрын
La pantalla LCD necesita 5V. no funcionará con 3.3V
@ezem90
@ezem90 4 жыл бұрын
Hi ! great tutorial, but i have a question... If you put Vdd to 5V; the output logic in SCL and SDA pins (0 to 3.3V) will not cause troubles ?? im asking this because I've seen the PCF8574T datasheet and the minimum HIGH level input voltage is 0.7Vdd (3.5V for Vdd = 5V) .
@robojax
@robojax 4 жыл бұрын
the supply voltage and logic voltage are different. so don't worry. the display will work without issue.
@citakis1277
@citakis1277 2 жыл бұрын
@@robojax This information was exactly what I was looking for.
@MrPaulw517
@MrPaulw517 3 жыл бұрын
Hi Robojax, I have successfully driven an I2C I Ii I have driven a non I2C 16x2 LCD with an ESP DEV board. However, I have not been successful driving it with a ESP Mini board???? Any suggestions would be appreciated.
@robojax
@robojax 3 жыл бұрын
Hello, this is very simple . I am not sure about board you are trying to use but just find the SDA and SCL pins and it will work.
@Microsoft-programmiererDe
@Microsoft-programmiererDe 4 жыл бұрын
thank you, a really great tutorial.
@robojax
@robojax 4 жыл бұрын
You are welcome. Thank you for not skipping the ads and keep watching them. This will help me a lot.
@AngelPufahl
@AngelPufahl Жыл бұрын
invalid conversion from 'int' to 't_backlightPol' [-fpermissive] im having this problem
@robojax
@robojax Жыл бұрын
You must be doing something wrong or have not installed library or modified the code.
@2020gaurav
@2020gaurav 3 жыл бұрын
Is it possible to take 5 volt for LCD from external source rather then ESP32 VIN pin ?
@robojax
@robojax 3 жыл бұрын
5v is just voltage , sure possible
@AndrewMurphy1
@AndrewMurphy1 3 жыл бұрын
I just purchased the longer esp32 boards and when I connect up the LCD to the required pins the board appears to not get enough power to light the LCD backlight and the red light on the esp32 just keeps flashing. Is this a known issue or is there something I'm doing wrong here? Thanks
@robojax
@robojax 3 жыл бұрын
Hell, I am not sure where you have connected the 5V of LCD, make sure it is connected to 5V and it will work. Use multimeter to measure the voltage.
@AndrewMurphy1
@AndrewMurphy1 3 жыл бұрын
@@robojax Solved it. Changed the ground pin. I was using the ground pin directly next to the 5V originally, switched to the one the opposite side of the board.
@florent9555
@florent9555 4 жыл бұрын
Does the SDA and SCL have to be connected with G21 and G22? Could I use G25 and G26 instead?
@robojax
@robojax 4 жыл бұрын
you haven't watch the video fully. please watch it. I can't watch it to answer your question.
@florent9555
@florent9555 4 жыл бұрын
@@robojax I have watched the video. You do not explain if it is possible to use other pins than G21 and G22. Or what impact it has when choosing different pins. Edit: randomnerdtutorials.com/esp32-i2c-communication-arduino-ide/ The ESP takes quite some space if you only use one normal breadboard. Without using 2 Breadboards you have to rely on just on side of the esp thats why I asked you this question but it is answered now
@robojax
@robojax 4 жыл бұрын
I am glad you found the the answer. good luck.
@samanedu
@samanedu 4 жыл бұрын
Greetings, thanks for the tutorial. Is there a way to tell the lcd.init () function that the display is connected to the alternate I2C GPIO 18 and 19? Because I am using a TTGO T-CALL ESP32 SIM800L module and the default I2C port (GPIO 21 and 22) is compromised
@robojax
@robojax 4 жыл бұрын
You are welcome. I have not tried it, but first include "Wire.h" and then inside setup if you use Wire.begin(I2C_SDA, I2C_SCL); Wire.begin(15, 16); it should work.
@samanedu
@samanedu 4 жыл бұрын
@@robojaxThanks for the prompt response. I solved it by starting a second I2C bus with the instruction Wire1.begin (18,19) and I edited the LiquidCrystal.cpp library replacing everything (Wire) said by (Wire1). It is an extreme solution but I could not do otherwise.
@samanedu
@samanedu 4 жыл бұрын
I meant LiquidCrystal_I2C.cpp (new version running for ESP32)
@robojax
@robojax 4 жыл бұрын
good to know you resolved. 😊
@rtufino
@rtufino 4 жыл бұрын
Hi @@samanedu! Can you send to me the link to LiquidCrystal_I2C library? I'm trying with different examples but my circuit doesn't work.
@dariosouza8956
@dariosouza8956 3 жыл бұрын
Ola meu querido, acompanho seu videos, estou tentando compilar o codigo com LCD 20x4 I2C com esp 32 e da a seguinte mensagem: invalid conversion from 'int' to 't_backlighPol' [-fpermissive] estou usando a biblioteca: #include poderia dar uma dica onde esta o erro?
@robojax
@robojax 3 жыл бұрын
please use the library I provided. it should work.
@cocoon-bike
@cocoon-bike Жыл бұрын
Hi Robojax, very well explained. Nevertheless I am not yet successful. What I miss (maybe because I am still a beginner at MicroPython), is the reference in the code to the SCL and SDC connections to the ESP32 Pins (21 and 22). Furthermore, the lcd.begin() command is not accepted by the IDE compiler. Any hint?
@robojax
@robojax Жыл бұрын
I mentioned that you need to install the library.
@ricadostephane9529
@ricadostephane9529 2 жыл бұрын
thank you Sir for this video. please can i have the circuit diagram for this?
@robojax
@robojax 2 жыл бұрын
I have explained the pins and then mentioned them one by one. you can draw them using Fritzing a free software here fritzing.org/
@altitude1039
@altitude1039 2 жыл бұрын
Thanks for sharing! Where did you get that little LED voltmeter? I could use a few of those for my projects.
@robojax
@robojax 2 жыл бұрын
Hello, sorry for late reply. I just got the links from another video and put them in the description for voltameters.
@zeamers3108
@zeamers3108 5 жыл бұрын
Hi, can you do a countdown timer tutorial on a lcd 16x2 please
@robojax
@robojax 5 жыл бұрын
Hi, In the provided code, we have int count =0; change it to int count =1000; and change the line count++; change it to count--; and it will count down from 1000
@LumingMotionAquatics
@LumingMotionAquatics 3 жыл бұрын
Is it possible to use micropython instead of liquidcrystal? And if it is, could you possibly do a video on it?
@robojax
@robojax 3 жыл бұрын
The library sends specific command to display. If you can re arrange it for other purposes, you can do . Modify the library.
@LumingMotionAquatics
@LumingMotionAquatics 3 жыл бұрын
@@robojax Thanks for the tip!
@MXx222
@MXx222 3 жыл бұрын
Hi, I am receiving this error while uploading code to my esp32. kindly if anyone can guide "invalid conversion from 'int' to 't_backlightPol' [-fpermissive]"
@robojax
@robojax 3 жыл бұрын
Hi, you must have changed the code, try the provided code. once it worked, then customize it.
@RTOHIO
@RTOHIO 4 жыл бұрын
When I tried compiling this sketch it gave me an "Exit status 1 'LiquidCrystal_I2C' does not name a type. Same message I got when I tried t compile another sketch that was written and proven right in front of me. Do you know why I get this message? I would be very happy if you could help me. Likewise if one of your subscribers knows and could answer my post. Really like your approach and video style.
@robojax
@robojax 4 жыл бұрын
Hi, you are getting the error because you are skipping the video and not watching it fully. It has been explained it. Just watch skipping, and follow the instruction. it will be resolved. I have also updated the page with more details to help you better.
@RTOHIO
@RTOHIO 4 жыл бұрын
I have solved this problem. Please tell me the source of your LiquidCrystal_I2C.h so I can obtain a copy to compare it with the library that would not work for me. This community of ARDUINO/esP32 sharing knowledge is wonderful. Thanks for all the time you put into making these videos.
@robojax
@robojax 4 жыл бұрын
I have included all resources and related video and contents in in the same page. Please visit the page where the code is provided. you will see anything that is related to this including the LCd library. I do this for all my videos.
@DirtNerds
@DirtNerds 5 жыл бұрын
I can never get your videos to load would love to see what you are doing.
@robojax
@robojax 5 жыл бұрын
Sorry. What is the problem?
@nagarava
@nagarava 5 жыл бұрын
I want projects on esp8266-01
@robojax
@robojax 5 жыл бұрын
It is coming in the next few days. Subscribe so you know.
@kiran12n
@kiran12n 4 жыл бұрын
Compressed 3072 bytes to 128... Writing at 0x00008000... (100 %) Wrote 3072 bytes (128 compressed) at 0x00008000 in 0.0 seconds (effective 501.6 kbit/s)... Hash of data verified. Leaving... Hard resetting via RTS pin... It says Done Uploading. I have made all the connections as described in the Video but in RG1602A it's not displaying. Please help me
@robojax
@robojax 4 жыл бұрын
what is this? Error? it should have been clarified. what is RG1602A? is it something different? LCD1602 is how I know it. Please upload this I2C canner robojax.com/learn/arduino/?vid=robojax-I2C-scanner into the ESP32 and if your wiring is good, you should see the I2C address.
@AnarchyCookie
@AnarchyCookie 4 жыл бұрын
You might have the same problem as I had. There is different libraries for the LiquidCrystal_I2C. I used a lot of different ones and it would not show any text. The library that worked for me is this one here: github.com/fdebrabander/Arduino-LiquidCrystal-I2C-library The difference is that in this library the bits get moved 4 places to the left. Try it and see if this works for you.
@dijuathomas5955
@dijuathomas5955 5 жыл бұрын
LiquidCrystal_I2C liberary link
@robojax
@robojax 5 жыл бұрын
It you watch the video, in the first 30 seconds it will tell you where the code is or see this instruction snipboard.io/EG4O2l.jpg
@mgabiel
@mgabiel 3 жыл бұрын
no funciona
@robojax
@robojax 3 жыл бұрын
Please watch this first kzbin.info/www/bejne/Y16pm2uHedF6q7M and then this video kzbin.info/www/bejne/p2q8dJJ9i62sa6M
Introduction to ESP32 - Getting Started
47:57
DroneBot Workshop
Рет қаралды 1,7 МЛН
Sensors - which one to use
17:06
Electronoobs
Рет қаралды 1,4 МЛН
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН
ESP32 Web page creating and updating
32:11
Kris Kasprzak
Рет қаралды 176 М.
ESP32 Project - Digital Clock with LCD Display At Home
12:04
Enjoy Mechatronics
Рет қаралды 39 М.
Using LCD Displays with Arduino
46:23
DroneBot Workshop
Рет қаралды 1,7 МЛН
ESP32 (04) | كيفية استعمال خاصية البلوتوث
12:27
How to use  LCD LCD1602  with I2C module for Arduino - Robojax
13:12
How to use I2C in ESP32 || Interface LCD 1602 || Espressif IDE
16:18
ControllersTech
Рет қаралды 39 М.
How to use and why to use Sprites  (TFT_espi Programing tutorial)
13:30
ESP32: Temperature & Humidity Sensor with LCD Display
10:37
BaldGuyDIY
Рет қаралды 23 М.
Cheap and Easy to Use ESP32 Screen!
8:21
Brian Lough
Рет қаралды 170 М.
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН