Arduino LCD I2C - Tutorial with Arduino Uno

Поделиться
HTML-код
  • Опубликовано: 31 июл 2024
  • SUBSCRIBE: ruclips.net/user/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: ruclips.net/user/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
  • НаукаНаука

Комментарии • 291

  • @aymaanra
    @aymaanra  4 года назад +16

    ♦ PARTS LIST
    Arduino Uno: amzn.to/3bHgqtq
    LCD 16X2 I2C Display: amzn.to/3rN6dRL
    ♦ SUBSCRIBE: ruclips.net/user/aymaanrahman
    ♦ PATREON: patreon.com/aymaanra

    • @Arabic_
      @Arabic_ 2 года назад +1

      good luck, i like your energy keep going and learn more

    • @aymaanra
      @aymaanra  2 года назад +1

      Thanks!

  • @mewcelappleby
    @mewcelappleby Год назад +16

    Thanks man! You were really straight to the point in this tutorial! You have been such a great help :)) Thanks again! ^^

  • @salahtamimy5322
    @salahtamimy5322 Год назад +1

    I am very thankful I was trying many videos but this the best; simple' clear; and direct to the goal; Jazak All Khaira

  • @danialbinharis1953
    @danialbinharis1953 2 года назад +18

    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

    • @aymaanra
      @aymaanra  2 года назад +2

      Thank you!! Glad I could help!

  • @discerningillusions6261
    @discerningillusions6261 2 года назад +1

    the potentiometer advice was the one I was missing thanks a lot

  • @mikemorin3131
    @mikemorin3131 3 года назад +60

    Who says you can't teach a 65 year old new stuff, Thanks

    • @aymaanra
      @aymaanra  3 года назад +7

      Thank you!! Appreciate it a lot!!

  • @talentmabvure6345
    @talentmabvure6345 2 года назад

    Thank you very much this video was awesome and it taught me a great thing which was troubling me. thank you a lot

  • @DhaRRRma
    @DhaRRRma 2 года назад

    thanku very very much bro
    I am searching for this content for 2 days
    that part which you explained that 16,2

  • @FASHIONIZE
    @FASHIONIZE 3 месяца назад

    Straight to the point and quick, thanks alot.

  • @mowtown75
    @mowtown75 Год назад

    Great vid, lots of energy good on you, and thx for showing how to identify the I2C ID in the monitor.

  • @ZothiamaCF
    @ZothiamaCF 2 года назад +7

    Thank you. A great tutorial that is clear and to the point. Again thank you very much sir👍👍✌️

  • @ryze0104
    @ryze0104 Год назад

    my problem was at contrast potentiometer, thanks a lot bro, life savior

  • @arreojnlloydmanzano7138
    @arreojnlloydmanzano7138 2 года назад

    VERY EASY TO UNDERSTAND! That's it! Very good and congratulations

  • @DrSameerKalaniya
    @DrSameerKalaniya 2 года назад

    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 :)

  • @iliesspace
    @iliesspace Год назад

    That was very helpful Thank you so much

  • @hipjazzbone
    @hipjazzbone 2 года назад +10

    At 4:50 you solved my problem that I'd been fighting with for an hour. Thanks!

    • @aymaanra
      @aymaanra  2 года назад +1

      welcome

    • @TronLegion
      @TronLegion Год назад +1

      Thanks Bro. I was literally just doing this a day before my competition. Lol.

    • @declanm2017
      @declanm2017 8 месяцев назад

      My screen has no pins to plugin they came not soldered? Should I solder it

  • @mogomega8825
    @mogomega8825 3 года назад +4

    Thank you sir! That was very useful for me 👍

    • @aymaanra
      @aymaanra  3 года назад +1

      You’re welcome!

  • @danielcarpio4302
    @danielcarpio4302 Год назад

    Good tutorial man! Love the enthusiasm!

  • @jonathonsampson9502
    @jonathonsampson9502 3 года назад +1

    finally got my display to work thanks!

  • @Juliobytehobby
    @Juliobytehobby 3 года назад

    Thanks for the information! Very useful

  • @BenLam00
    @BenLam00 Год назад

    I almost thought my LCD was broken because it was displaying lol. Thanks for the tip on adjusting the potentiometer!

  • @someservantfromfrance9082
    @someservantfromfrance9082 Год назад

    thanks bro, u saved our research

  • @bogdanbratu98
    @bogdanbratu98 3 года назад

    Thank you man, very good video!

  • @vkstockmarket6826
    @vkstockmarket6826 Год назад

    Bhaii opp...
    Love you Bhai last din me lcd chalu ho gaya 😍😘

  • @nepalkoshati6263
    @nepalkoshati6263 5 месяцев назад +1

    ho bro thanks for amzing vedio i like and lov vry mchu u r the bhest enginery or softwar thnx for the vedio

  • @burnsfamily1616
    @burnsfamily1616 11 месяцев назад

    Thanks! Super Helpful! Subscribed!

    • @aymaanra
      @aymaanra  11 месяцев назад

      you're welcome!

  • @Arro814046
    @Arro814046 2 года назад

    thank you, it's very helpful guide !!

  • @daniasuraya9350
    @daniasuraya9350 3 года назад

    tqq for info,,,glad that i found your vid

    • @aymaanra
      @aymaanra  3 года назад

      Glad I could help!

  • @Martin40320
    @Martin40320 Год назад +1

    Very good tutorial thank you

  • @mariuspetcu7482
    @mariuspetcu7482 2 года назад

    I can’t Thank You enough to for this . I was traying so many examples but NO one worked ... Thank You again 🤝

  • @ezekiellopez7746
    @ezekiellopez7746 2 года назад

    do I need to use resistors if i will use breadboard and make an RFID locker?

  • @rafaelbendigo6270
    @rafaelbendigo6270 2 года назад +1

    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.

  • @bassanteid3548
    @bassanteid3548 2 года назад

    really thank you it helps me alot

  • @addaemichael4683
    @addaemichael4683 11 месяцев назад

    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

  • @msunrl8577
    @msunrl8577 Год назад

    thanks dude, helped me :)

  • @omerucansu2569
    @omerucansu2569 Год назад

    Hello, how do we use the LCD screen with on/off switch. Thanks

  • @elgracko
    @elgracko Год назад

    Awesome video man, worked like a charm 🍀, saludos from Ecuador,

    • @aymaanra
      @aymaanra  Год назад +1

      glad it helped you! Saludos!

    • @elgracko
      @elgracko Год назад

      @@aymaanra , yeah man.very concise and to the point, didn't leave anything out!

    • @exploreworldx
      @exploreworldx 12 дней назад

      @@elgracko How? Mine simply not working and everything i tried it hasn't worked

    • @elgracko
      @elgracko 12 дней назад

      @@exploreworldx , did you follow all of his instructions?

    • @exploreworldx
      @exploreworldx 12 дней назад

      @@elgracko Yep but will do and check again

  • @danieledeboni8934
    @danieledeboni8934 12 дней назад

    I've got lost watching your hand gestures, now I'm playing rock paper scissor alone lol. great video though

  • @Crazyboyzz6956
    @Crazyboyzz6956 Год назад +3

    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()'

  • @darkacademia444
    @darkacademia444 Год назад

    بارك الله فيك،Thank you so much brother

  • @weethis830
    @weethis830 Год назад

    thanks for the knowledge 💖💖💖💖

  • @2150dalek
    @2150dalek 3 года назад

    You da man...Your code worked while a major tutorial I found elsewhere was in error.

  • @marvinrebanal3595
    @marvinrebanal3595 Год назад

    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

  • @milk6-
    @milk6- 5 месяцев назад

    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

  • @tanmeowsoon6992
    @tanmeowsoon6992 2 года назад

    Hi i cannot get your link as i want the text on the led need your guide

  • @mohamed_abdelkhalek
    @mohamed_abdelkhalek 8 месяцев назад

    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?

  • @saumitradeo5336
    @saumitradeo5336 Год назад

    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?

  • @Izaak1111
    @Izaak1111 8 месяцев назад

    THANK YOU
    MY LIFE IS SAVED

    • @aymaanra
      @aymaanra  8 месяцев назад

      you're welcome!

  • @laz305
    @laz305 3 месяца назад

    Can a png be used? I have converted it to .h format. What code do I need to add to my ino file?

  • @marcalcantarafernandez5719
    @marcalcantarafernandez5719 Год назад

    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!

  • @B16Dominoes
    @B16Dominoes 2 года назад

    Cool, I subbed

  • @bkcganeshblogs
    @bkcganeshblogs Год назад

    Hello friend thank you. Can you tell me how to run the messages continously

  • @WinloujohnCenawaminal
    @WinloujohnCenawaminal Год назад

    What if the LCD I use is "LCD 1602 Module (with pin header)?

  • @jpeter3683
    @jpeter3683 6 дней назад

    how to code where using 16x2 lcd I2C the text display on the row 1 will move from left to right and same goes to row 2 the text moving from left to right ...

  • @kandee_k
    @kandee_k Год назад

    thank you so much ❤

  • @jay.n6522
    @jay.n6522 16 дней назад

    Good Content keep this up

  • @lusifee330
    @lusifee330 2 года назад

    thanks dude!

  • @nehacs2010
    @nehacs2010 Год назад

    Hi please tell me how connect PCB and jumpers wire

  • @ankitarwal8492
    @ankitarwal8492 Год назад

    awesome video sir

  • @nishanthhudeda7298
    @nishanthhudeda7298 7 месяцев назад

    the library in github is now read only... it has been archived by owner.... Where else can we get it....????

  • @itsumo_chris
    @itsumo_chris Год назад

    what if a5 and a4 is used by another device? lixe adxl345?

  • @Top-notchShorts
    @Top-notchShorts 4 года назад

    Great video

  • @amirmohammed5732
    @amirmohammed5732 2 года назад

    i tried adjusting potentio meter as well its not working

  • @moreolakunri1322
    @moreolakunri1322 3 года назад +1

    great video, thanks

    • @aymaanra
      @aymaanra  3 года назад +1

      You’re welcome!!

  • @pramamukhopadhyay9219
    @pramamukhopadhyay9219 Месяц назад

    it says this how to fix the code Compilation error: no matching function for call to 'LiquidCrystal_I2C::begin()'

  • @0124akash
    @0124akash Год назад

    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 ?

  • @xsimplybeny4095
    @xsimplybeny4095 4 месяца назад

    Who knows. It is possivle to leave this lcd on with text what we wrote on script without connect with pc?

  • @CircuitCreator
    @CircuitCreator 2 года назад +1

    PIN 1 》GROUND
    PIN 2 》POSITIVE
    PIN 3 》10K POT
    PIN 4 》A12
    PIN 5 》GROUND
    PIN 6 》A11
    PIN 11 》A5
    PIN 12 》A4
    PIN 13 》A3
    PIN 14 》A2
    PIN 15 》220Ω
    PIN 16 》GROUND

  • @wanjohimuthoni
    @wanjohimuthoni 10 месяцев назад

    Mine just display white square dots, what is wrong

  • @kanhaiyalalrajput3215
    @kanhaiyalalrajput3215 11 месяцев назад

    Thank you bro. It works.

    • @aymaanra
      @aymaanra  11 месяцев назад

      You're welcome

  • @robyray5644
    @robyray5644 2 месяца назад

    Hi i'm not an expert so i would like to ask you if you can add some lines on the sketch to add the reading of microSievert/h as well as the CPM? The conversion index is equal to 151, which means that: 151 CPM = 1 μSv/h
    1 CPM = 1/151 μSv/h = 0,00662252 μSv/h.
    Thank you

  • @satalaj
    @satalaj Год назад

    Nice video, Keep it up

  • @avinashmayank4995
    @avinashmayank4995 Год назад

    Thank you so much

  • @wanjohimuthoni
    @wanjohimuthoni 10 месяцев назад

    Only getting white printed boxes, that is, pixels displayed but not message

  • @shalinisareen4910
    @shalinisareen4910 Год назад

    really helpfull

  • @rahulshendre7089
    @rahulshendre7089 9 месяцев назад

    thanks man

    • @aymaanra
      @aymaanra  9 месяцев назад

      You're welcome

  • @ireshafernando1029
    @ireshafernando1029 Год назад

    no matching function for call to 'LiquidCrystal_I2C::begin()' what is this bro

  • @fatmaabualhassan9505
    @fatmaabualhassan9505 22 дня назад

    I did everything but nothing is working, no readings in the LCD even if i switch the LCD

  • @whattt403
    @whattt403 3 месяца назад

    thank you very muuuchh!!!!

    • @aymaanra
      @aymaanra  3 месяца назад

      You're welcome!

  • @harsimrankaur8055
    @harsimrankaur8055 8 месяцев назад

    Whenever I interface, i2c heats up. Can I know the reason behind it???

  • @anthonydwyer3307
    @anthonydwyer3307 3 года назад

    no matching function for call to 'LiquidCrystal_I2C::begin()'
    thats the error im getting when i upload the code to display hello world

    • @aymaanra
      @aymaanra  3 года назад

      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.

  • @steverpcb
    @steverpcb 4 года назад +2

    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 :)

    • @aymaanra
      @aymaanra  4 года назад

      I'm glad it worked! Cool! Any projects you are planning to implement the LCD Display into?

    • @steverpcb
      @steverpcb 4 года назад

      @@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 ruclips.net/video/mC9z6QMkgFo/видео.html

    • @steverpcb
      @steverpcb 4 года назад

      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 :(

    • @aymaanra
      @aymaanra  4 года назад

      @@steverpcb wow, very cool!!!

    • @aymaanra
      @aymaanra  4 года назад

      @@steverpcb oh so are you planning to use atmega then or an arduino nano or something similar?

  • @tayyabahashmi1584
    @tayyabahashmi1584 2 года назад +1

    Sir what are the functions of SDA and SCL pins and why we connect them to A4 and A5?????

    • @mowtown75
      @mowtown75 Год назад +1

      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.

  • @Safu2668
    @Safu2668 Год назад

    My lcd shows first character only .. ie "h" of the hello world

  • @kritijain9619
    @kritijain9619 Год назад +1

    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

  • @hussain7md166
    @hussain7md166 Год назад

    Can I connect SCA and SCL with other than A4 and A5, because they are already used.

    • @redstonegod296
      @redstonegod296 11 месяцев назад

      Connect to the 2 digital pins closest to the USB port labeled SDA and SCL

  • @bilmusic1768
    @bilmusic1768 2 года назад +9

    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()'

    • @ourabig
      @ourabig Год назад

      did you find the solution

    • @Kyana04
      @Kyana04 Год назад

      ​@@ourabigidk

    • @scienceboyakshansh5378
      @scienceboyakshansh5378 Год назад

      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.

  • @Staticzx
    @Staticzx 2 года назад

    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

    • @aymaanra
      @aymaanra  2 года назад

      hey, try changing your COM port in the Arduino IDE

  • @kalyanyadav_
    @kalyanyadav_ Год назад

    how to print a,b,c,,,,? what is the code?

  • @otownhogan1420
    @otownhogan1420 Год назад

    That's pretty simple 😗

  • @AbhiAbhi-nc7lv
    @AbhiAbhi-nc7lv Год назад +1

    NOT SHOWING AS WELL AS SERIAL MONITOR NOT GET ANY THING ITS EMPTY

  • @TIKHONLOMTEV_SLO
    @TIKHONLOMTEV_SLO 3 месяца назад

    They say, lcd.begin(); is wrong why?

  • @tanvitajayana4326
    @tanvitajayana4326 3 года назад

    hey can you tell me why it is showing nothing to me in my serial monitor

    • @aymaanra
      @aymaanra  2 года назад

      try adjusting the potentiometer on the back of the display with a screwdriver!

  • @jamesgreen2480
    @jamesgreen2480 Год назад

    I upload the code but when i hit the serial monitor it is not giving me an address only a bunch of squares.

    • @zix2841
      @zix2841 Год назад

      Try adjusting the potentiometer on the I2C board, the one with the screw driver print

  • @farcasmarius2240
    @farcasmarius2240 Год назад

    thank you

  • @chetanjadhav6379
    @chetanjadhav6379 4 месяца назад

    didn't work for me unable to see any msg on the display

  • @dane7205
    @dane7205 3 года назад

    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

    • @dane7205
      @dane7205 3 года назад

      Your thoughts or suggestions?

    • @aymaanra
      @aymaanra  3 года назад

      Hello!! Just found this, hope it helps!: forum.arduino.cc/index.php?topic=516838.0

    • @aymaanra
      @aymaanra  3 года назад

      @@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!

  • @bangucedrick-ig7qw
    @bangucedrick-ig7qw 11 месяцев назад

    Thanks bro .

    • @aymaanra
      @aymaanra  10 месяцев назад

      You're welcome

  • @PoonamSharma-xc9fb
    @PoonamSharma-xc9fb 7 месяцев назад +1

    Bro circuit diagram plzz

  • @rikdota
    @rikdota 2 года назад

    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

    • @aymaanra
      @aymaanra  2 года назад

      Did you install any other LCD library before?

    • @rikdota
      @rikdota 2 года назад

      I didn't install any library. All I did was your instructions.

    • @aymaanra
      @aymaanra  2 года назад

      Is the correct arduino board selected in the IDE?