Arduino LCD I2C - Tutorial with Arduino Uno
ฝัง
- เผยแพร่เมื่อ 1 พ.ค. 2024
- SUBSCRIBE: th-cam.com/users/aymaanrahman?...
In this video, I show you how to use a I2C LCD Display with an Arduino Uno!
♦ PARTS LIST
Arduino Uno: amzn.to/32HLuUw
Jumper Wires: amzn.to/3nmeElC
LCD 16X2 I2C Display: amzn.to/32EvWRt
♦ CODE & LIBRARY
Code: drive.google.com/open?id=1jYC...
Liquid Crystal I2C Library: github.com/fdebrabander/Ardui...
I2C Scanner Code: playground.arduino.cc/Main/I2...
♦ SUBSCRIBE: th-cam.com/users/aymaanrahman?...
♦ PATREON(To further support me): / aymaanra
♦ MY SOCIAL
PODCAST: anchor.fm/aymaanra
WEBSITE: aymaanrahman.com
TWITTER: / aymaanra
INSTAGRAM: / aymaanra
FACEBOOK: / aymaanra
LINKEDIN: / aymaanra
♦ BUSINESS INQUIRIES - aymaanrahman05@gmail.com
DISCLAIMER: This video description contains affiliate links. If you click on one of them, I'll receive a commission.
#arduino #electronics #arduinotutorial
_
Timestamps:
0:12 Wiring
1:10 Arduino Library
1:40 I2C Scanner Sketch to know the I2C Address of the LCD Display
2:13 Programming the Arduino to print "Hello World" on the LCD Display
3:35 The LCD Display showing the message "Hello World"
3:44 Uploading a different code to the Arduino to display multiple messages showing up one after another
4:35 The LCD Display showing multiple messages one after another
4:47 If the LCD Display is not working, adjusting the contrast potentiometer on the back of the display - วิทยาศาสตร์และเทคโนโลยี
♦ PARTS LIST
Arduino Uno: amzn.to/3bHgqtq
LCD 16X2 I2C Display: amzn.to/3rN6dRL
♦ SUBSCRIBE: th-cam.com/users/aymaanrahman
♦ PATREON: patreon.com/aymaanra
good luck, i like your energy keep going and learn more
Thanks!
I can’t thank you enough for this video, I was troubled with bunch of wiring on another lcd connections which require many wires and hard to troubleshoot it but this is soo useful.TQ
Thank you!! Glad I could help!
Thanks man! You were really straight to the point in this tutorial! You have been such a great help :)) Thanks again! ^^
Who says you can't teach a 65 year old new stuff, Thanks
Thank you!! Appreciate it a lot!!
the potentiometer advice was the one I was missing thanks a lot
I am very thankful I was trying many videos but this the best; simple' clear; and direct to the goal; Jazak All Khaira
my problem was at contrast potentiometer, thanks a lot bro, life savior
thanku very very much bro
I am searching for this content for 2 days
that part which you explained that 16,2
Straight to the point and quick, thanks alot.
thanks for your video,i want to know if there is a way to connects SDA and SCL t odigital pins not A4 and A5
is that the exact form of putting the i2c or for as long as you solder the i2c to the 16 pins ?
please enlighten me.
At 4:50 you solved my problem that I'd been fighting with for an hour. Thanks!
welcome
Thanks Bro. I was literally just doing this a day before my competition. Lol.
My screen has no pins to plugin they came not soldered? Should I solder it
Thank you very much this video was awesome and it taught me a great thing which was troubling me. thank you a lot
do I need to use resistors if i will use breadboard and make an RFID locker?
Great vid, lots of energy good on you, and thx for showing how to identify the I2C ID in the monitor.
thanks
Thank you. A great tutorial that is clear and to the point. Again thank you very much sir👍👍✌️
welcome!
thank you so much I wanted to know how to control an lcd display and it works I had difficulty but I am glad it work thanks you :)
Glad it helped!
I almost thought my LCD was broken because it was displaying lol. Thanks for the tip on adjusting the potentiometer!
You're welcome !
Thank you sir! That was very useful for me 👍
You’re welcome!
Heya , it was nice explained!!
Can u tell me why we attached the ir sensor to back of lcd display?
What is that's use ?
Can we add lcd to aurdino without that sensor
Can a png be used? I have converted it to .h format. What code do I need to add to my ino file?
finally got my display to work thanks!
You're welcome!
Hola buenas. No sé si podrías poner las librerías para descargar. Estoy buscando las librerías por internet pero no encuentro las buenas. Gracias!
thanks bro, u saved our research
Hello, how do we use the LCD screen with on/off switch. Thanks
That was very helpful Thank you so much
I'm unable to open the example file. The library is downloaded, but whenever I go to open the HelloWorld example, nothing happens upon clicking it. Do you know any way to tackle this issue?
Please help me, it does not display text, but an empty boxes. And when i upload the code you gave it says no matching function for call to LiquidCrystal_2C::begin()'
did you solve it?
thank you so much ❤
Hi i cannot get your link as i want the text on the led need your guide
Hi, i had adjusted the potentiometer for the lcd.. bur why still it doesn't appear any text ? I did upload the exactly code you share and no error at all
VERY EASY TO UNDERSTAND! That's it! Very good and congratulations
thanks
Thanks! Super Helpful! Subscribed!
you're welcome!
you cant get the library anymore
ho bro thanks for amzing vedio i like and lov vry mchu u r the bhest enginery or softwar thnx for the vedio
How can scroll the second line without moving the 1 line.like 1st line, print hello. It static. While the 2nd line is scrolling to right to left. Hope you help me
What if the LCD I use is "LCD 1602 Module (with pin header)?
I2C module me 4 wire as input use hote hain 16wire as output. Kya koi aisa module aata hai 16wire as input ho aur 4 wire as output ?
i have a problem, i used 5 pins of 6 analog pins, and i need to connect lcd with i2c also. where can i put sda, scl pins on arduino?
Good tutorial man! Love the enthusiasm!
Thanks a lot bro!!
what if a5 and a4 is used by another device? lixe adxl345?
Hi please tell me how connect PCB and jumpers wire
Bhaii opp...
Love you Bhai last din me lcd chalu ho gaya 😍😘
You're welcome!
Mine just display white square dots, what is wrong
Hello friend thank you. Can you tell me how to run the messages continously
i tried adjusting potentio meter as well its not working
the library in github is now read only... it has been archived by owner.... Where else can we get it....????
Awesome video man, worked like a charm 🍀, saludos from Ecuador,
glad it helped you! Saludos!
@@aymaanra , yeah man.very concise and to the point, didn't leave anything out!
tqq for info,,,glad that i found your vid
Glad I could help!
Who knows. It is possivle to leave this lcd on with text what we wrote on script without connect with pc?
thanks for the knowledge 💖💖💖💖
Only getting white printed boxes, that is, pixels displayed but not message
Thanks for the information! Very useful
thank you!
thank you, it's very helpful guide !!
welcome!
Very good tutorial thank you
Aymaan - I'm looking for a scketch using this display, for lap timing, for my slot car track. Can't find any, any suggestions? Thanks
Your thoughts or suggestions?
Hello!! Just found this, hope it helps!: forum.arduino.cc/index.php?topic=516838.0
@@dane7205 There are some people in that forum post who have some code and projects, you can check it out, I haven't worked with lap timing or slot car track circuits before so I don't know about them in detail. thanks!
Thanks bro .
You're welcome
بارك الله فيك،Thank you so much brother
welcome!
THANK YOU
MY LIFE IS SAVED
you're welcome!
really thank you it helps me alot
You're welcome!
Whenever I interface, i2c heats up. Can I know the reason behind it???
thanks dude!
Thank you man, very good video!
thank you!
konse desh se hai bhai?
I can’t Thank You enough to for this . I was traying so many examples but NO one worked ... Thank You again 🤝
Can I connect SCA and SCL with other than A4 and A5, because they are already used.
Connect to the 2 digital pins closest to the USB port labeled SDA and SCL
how to print a,b,c,,,,? what is the code?
My lcd shows first character only .. ie "h" of the hello world
Sir what are the functions of SDA and SCL pins and why we connect them to A4 and A5?????
I thought same, note that some Ards have dedicated pins labelled as such on the digital side north of pins 12, 13. Mine Ard Uno does.
They say, lcd.begin(); is wrong why?
no matching function for call to 'LiquidCrystal_I2C::begin()' what is this bro
There are far to many LCD I2C library's out there that are out of date and do not work :(
The one in this video does work as of 26/6/20, I spent a whole day trying to fix the LCD only displaying one character and compile errors caused by the published fix's for it :(
This worked straight out of the box, although I downloaded the zip and extracted it to C:/Program Files/Arduino/libraries instead of using the include method.
Thank you :)
I'm glad it worked! Cool! Any projects you are planning to implement the LCD Display into?
@@aymaanra I am initially going to use it to display values to help debugging code, the current project is temperature controlled cooling for a large radio control aircraft to automatically open and close the vents. This will eventually be on a custom PCB using an atmega328p-pu with the option of connecting the LCD to show the sensor temperature.
While not from my project this gives an example of what it will operate th-cam.com/video/mC9z6QMkgFo/w-d-xo.html
Interestingly all the DIY arduino tutorials that I have seen appear to be wrong, they either do not mention the load capacitance of the 16mhz crystal or they use the wrong value load capacitors e.g. using 20pf capacitors with a 20pf crystal instead of the correct value of 36pf. Indeed many sellers of 16mhz crystals on ebay, amazon, etc. do not give the load capacitance :(
@@steverpcb wow, very cool!!!
@@steverpcb oh so are you planning to use atmega then or an arduino nano or something similar?
Thank you so much
Hey bro can i power this board to my car battery or can i run this on 12v
Hey, its rated for 5v, you will need a converter or some else that converts the power to 5v for the board and lcd
I saw a video in which that guy run arduino board to the charging socket in the car or in other video it run with 9v battery/power bank.
Thank you bro. It works.
You're welcome
thanks dude, helped me :)
welcome
You da man...Your code worked while a major tutorial I found elsewhere was in error.
thank you!
bro help me pls
i get a error showing
avrdude: ser_open(): can't open device "\\.\COM6": The system cannot find the file specified.
pls help asap! im working on a project
hey, try changing your COM port in the Arduino IDE
Bro circuit diagram plzz
how do download
really helpfull
no matching function for call to 'LiquidCrystal_I2C::begin()'
thats the error im getting when i upload the code to display hello world
did you install any other LCD i2c library before this? if so then try deleting that one and install the library linked in the description of this video.
Hello man! I have an issue, when i uploaded the HelloWorld code it doesn't appera on the display, (the display is powered and i see the little rectangles) i don't know what to do.
Have you tried adjusting the potentiometer on the back of the display with a screwdriver?
@@aymaanra I’ll try thank you
@@eternitysf3413 hey did it work
hi sir, i hope you can help me, when i upload the hello world code, there is no display. just backlight only..
same here
@@patkaybence just found out that when you tighten the screw at the back, i think the red ones, it will show the display. Hope this helps :)
@@patkaybence try adjusting the potentiometer on the back of the display with a screwdriver!
didn't work for me unable to see any msg on the display
Mine is showing in the LCD but in the compiler it says that
"An error occurred while uploading the sketch
avrdude: verification error, first mismatch at byte 0x046c
0x51 != 0xd1
avrdude: verification error; content mismatch"
How can I fix this problem? Thank you
Did you install any other LCD library before?
I didn't install any library. All I did was your instructions.
Is the correct arduino board selected in the IDE?
hey can you tell me why it is showing nothing to me in my serial monitor
try adjusting the potentiometer on the back of the display with a screwdriver!
awesome video sir
Good day sir! Please help me, it does not display text, but an empty boxes. And when i upload the code you gave it says no matching function for call to LiquidCrystal_2C::begin()'
did you find the solution
@@ourabigidk
Same is happend with me, try typing "lcd.begin(16, 2);" if you have lcd 16 x 2, and then upload the code, for me it disabled the backlight, then I typed the previous statement lcd.begin() and it worked.
Hello, your video is very nice. But I have some problems.After I uploading, it appeared "In function 'void setup()':
HelloWorld:10:12: error: no matching function for call to 'LiquidCrystal_I2C::begin()'
lcd.begin();
What is this?How can I fix it?
thanks!
hey! did you try any lcd i2c library or any lcd library before installing the one in the video? if so, try deleting that library and try the one I linked,
That's pretty simple 😗
great video, thanks
You’re welcome!!
thanks man
You're welcome
Thank you Ayman very much,
Did all the procedures,
Still not printing on the LCD,
How can I get the address of the LCD?
@@user-ze1ej3kd8baddress of the LCD from the code here playground.arduino.cc/Main/I2cScanner/
address of the LCD from the code here playground.arduino.cc/Main/I2cScanner/
@@aymaanra Wow it worked,
Do you know what the reason was?
The contrast potentiometer,
Adjusted and that's it.
Wow, cool!
Great video
thankyou bro
You're welcome!
I am have tried as per your video.. But only blue light is coming ... I am the example program is not showing in the display
try adjusting the contrast potentiometer on the back of the display
@@aymaanra i tried adjusting it its not displaying anything
Lcd display does not glow
I upload the code but when i hit the serial monitor it is not giving me an address only a bunch of squares.
Try adjusting the potentiometer on the I2C board, the one with the screw driver print
Cool, I subbed