How to Set Up and Program an LCD on the Arduino

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 เม.ย. 2015
  • How to Set Up and Program an LCD on the Arduino
    In this video, I briefly show you how to connect a 16x2 LCD to an Arduino. After that, I go in-depth into which functions are available in the LiquidCrystal library to program it, and show you what they look like on the LCD. I also explain where and how to use each function in your program.
    Get a 16x2 LCD here: www.amazon.com/gp/product/B00...
    Example programs for each function can be found here: www.circuitbasics.com/how-to-...
    Check out the Circuit Basics blog for articles and tutorials on the Raspberry Pi, Arduino and other DIY electronic projects! www.circuitbasics.com
    Facebook: / circuitbasic
    Twitter: / circuitbasics
    Instagram: / circuitbasics
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 439

  • @amtpdb1
    @amtpdb1 8 ปีที่แล้ว +4

    I appreciate the way you took us through this slow enough that we could do it along with you (with the stop button). I think I got more from this then alot of the videos I have seen that did not address WHY this was happening.
    Thanks for the great video.

  • @rexpimplemyer3839
    @rexpimplemyer3839 6 ปีที่แล้ว +6

    These have been the most useful videos and articles I have seen on the Arduino so far. Arranged just like I learned BASIC years ago. Started with clear, concise instructions on assembly, then to simple programming, and then modifying existing builds to incorporate new coding. Very helpful. Thank you very much. I learned so much in the past hour than I have in days from know-it-alls who think I should have known where serial monitor was.

  • @marklaurence8504
    @marklaurence8504 6 ปีที่แล้ว +3

    Clear concise and easy to follow, great video. your expanded label descriptions are very informative

  • @Geeman002
    @Geeman002 3 ปีที่แล้ว +3

    Excellent video! There are lot of them out there, but you explain it so nicely, easy for a newbie like me to understand. I am a programmer, but new to electronics itself.

  • @kennyball3956
    @kennyball3956 7 ปีที่แล้ว +2

    its ppl like u who make this hobby so accessable to the noob (ME) ur adding so much to this community and for that i doff my hat....keep the vids coming PLLLLZZZZZZZZ

  • @anthonyobryan3485
    @anthonyobryan3485 4 ปีที่แล้ว +10

    This was my first attempt at something more complicated than lighting up LED's with a potentiometer. My kids and I were thrilled to see everything working according to the description. I went through the video and made my own notes on how to connect the LCD to the Arduino, then followed my notes for the actual connection. Everything worked perfectly with my Elegoo Arduino Uno.
    My next step is to tear it down and rebuild it over and over again until I can do it by instinct.

  • @OllyGucci
    @OllyGucci 7 ปีที่แล้ว +1

    Thank you very much, this is the most helpful video i have come across so far, worked perfectly. Thumbs up!

  • @grahamevans5304
    @grahamevans5304 6 ปีที่แล้ว +3

    This video saves hours of confusion, it's beautifully created and presented. Thank you for making life easier for me sir.

  • @kristofferd4843
    @kristofferd4843 3 ปีที่แล้ว

    THIS IS LITERALLY THE BEST VIDEO ON TH-cam. I HAVE BEEN TRYING TO FIX MY LCD FOR 2 HOURS, BUT SOMEHOW IT WORKS NOW TANK YOU :D

  • @adrianwilliams763
    @adrianwilliams763 8 ปีที่แล้ว

    Nice clear tutorial. Liked the way you started by demonstrating how the lcd screen was wired to the Arduino.

  • @route-249
    @route-249 5 ปีที่แล้ว +1

    Excellent video! Direct & to the point with a wealth of knowledge. Thanks...

  • @cyberpunk7088
    @cyberpunk7088 5 ปีที่แล้ว +125

    LCD to Arduino
    pin1 to ground
    pin2 to positive
    pin3 to 10k pot midle (other pot pin to -ve and +ve)
    pin4 to A12
    pin5 to ground
    pin6 to a11
    pin16 to ground
    pin15 to 220oh to positive
    pin14 to a2
    pin13 to a3
    pin12 to a4
    pin11 to a5

    • @AritroVlogs
      @AritroVlogs 5 ปีที่แล้ว +4

      correction: plug it into digital slots instead of analog. arduino uno doesn't have that many analog slots

    • @hamzaquresh8930
      @hamzaquresh8930 4 ปีที่แล้ว +1

      bro thank you bro you saved our bro life bro

    • @hamzaquresh8930
      @hamzaquresh8930 4 ปีที่แล้ว +2

      broo you broo rock broo

    • @kishorreddy695
      @kishorreddy695 4 ปีที่แล้ว +1

      Arduino uno has only 6 analog pins that is from a0 through a5
      Then how come a11 and a12

    • @samarthshetty6578
      @samarthshetty6578 4 ปีที่แล้ว

      th-cam.com/video/I3WcMeAYt2w/w-d-xo.html

  • @lilbee7492
    @lilbee7492 9 หลายเดือนก่อน +1

    IT WORKED THANK YOU MAN

  • @petedoxat
    @petedoxat 6 ปีที่แล้ว +1

    This is brilliant, very helpful thanks.

  • @blakecraft3868
    @blakecraft3868 7 ปีที่แล้ว +1

    I FINALLY got my LCD screen to work thanks to this video. You, sir, are one helpful human.

  • @desiv1
    @desiv1 8 ปีที่แล้ว

    Thanx.. Just got my Arduino kit. First program was blink to show an LED going. But I saw that LCD in the kit and wondered if that would be too complicated for a next step. Found your vid and tried it.. Worked first time! (Well, the only POT I had was a 50k, and I didn't see anything at first and had to go up quite a bit before I saw the display, but it worked.) Thanx!

    • @Circuitbasics
      @Circuitbasics  8 ปีที่แล้ว

      +desiv1 no problem, glad you got it working!

  • @elecomdesign7974
    @elecomdesign7974 6 ปีที่แล้ว

    I have never watched a tutorial so clear as this one. Your explanation is just excellent! thank you so much and I have learned a lot today.

  • @vicktells5736
    @vicktells5736 10 หลายเดือนก่อน +1

    love you bro, this helped me a lot. this made me look great in my parents watch of me getting good at arduino ...

  • @subbusubramanyam5292
    @subbusubramanyam5292 7 ปีที่แล้ว

    hey boss superb explanation i totally understood . thanks for uploding.

  • @hubercats
    @hubercats 3 ปีที่แล้ว

    Thanks so much for making this helpful video!

  • @michaelcerkez3895
    @michaelcerkez3895 7 ปีที่แล้ว

    Hi, great videos. You're a good teacher slow and clear when you give your instructions. Keep up the good work, and yes I have subscribed and hit like.

  • @dimjim2365
    @dimjim2365 5 ปีที่แล้ว +1

    Thanks for a very informative video.

  • @brettpenza5149
    @brettpenza5149 6 ปีที่แล้ว +7

    This is great. I was wrestling with this for 4 hours with other videos, some with annoying background music and zero instruction. This is great. No stories, political opinions, ridiculous background music. Just right to it. Excellent work, Thanks very much.

  • @burhannaveed1911
    @burhannaveed1911 5 ปีที่แล้ว +6

    Guess who got a sub??? You!!! Amazing video and very easy to understand.

  • @soniakanjani2587
    @soniakanjani2587 5 ปีที่แล้ว

    Thank you circuit basics you explained arduino very nicely

  • @satyaashokdowluri1129
    @satyaashokdowluri1129 6 ปีที่แล้ว +1

    a very nice explanation sir. thank you

  • @ArunMurugan
    @ArunMurugan 6 ปีที่แล้ว

    Really nice video.. got all the basics about lcd display!

    • @angel_o8472
      @angel_o8472 4 ปีที่แล้ว

      Hi, do you have ideas about using flex sensors that will transfer messages in the LCD screen?

  • @felixalexanderl
    @felixalexanderl 2 ปีที่แล้ว +1

    by the way (i just found this out) but depending on the screen brightness you can put the 5v jumper wire onto 3.3v if you want it to be less bright or just unplay that wire completely and it will still work just less bright.

  • @richardvanraay7055
    @richardvanraay7055 5 ปีที่แล้ว

    Thanks for taking the time to make such an informative teaching video. Thanks for speaking slowly and clearly.

  • @geenuenglishmentorgem6125
    @geenuenglishmentorgem6125 ปีที่แล้ว

    i am very thankful to you this is best explained video love from india

  • @Popsickle950
    @Popsickle950 8 ปีที่แล้ว +1

    fantastic video, i have one issue though ( i'm a first timer ) my lcd comes on and everything but no text appears
    Ive tried using a 220 resistor and a 1k but still nothing, hope you can help!
    Really liked your method of showing how to get it set-up i searched through many videos before i got to this one and it got me really far in such little time!

    • @Popsickle950
      @Popsickle950 8 ปีที่แล้ว

      +Popsickle950 i;m not getting that random gibberish that you had at the start after connecting it all up but hello world still doesnt load after some decent time

  • @timjackson6467
    @timjackson6467 6 ปีที่แล้ว +1

    Thank you for such a great video and all your hard work - much enjoyed.

  • @cemprotecta
    @cemprotecta 5 ปีที่แล้ว +1

    Good video for starting with the basics of LCD in Arduino. Thanks a lot!

  • @TechInspected
    @TechInspected 7 ปีที่แล้ว +1

    The only thing worth complaining about in this video is that you could have increased the volume of your mic. =)
    Thanks for the tutorial!

  • @KJ7JHN
    @KJ7JHN 4 ปีที่แล้ว

    Hi Circuit basics, could you please make a video on connecting the i2c version of the 16x2 lcd you have here to an ATMEGA2561? I've read the data sheet, and searched some FAQ's but have not been able to get a solid foundation for the ATMEGA2561. The problem is in setting the SCL and SDA pins, 25 and 26. This video would be awesome! Please and thank you.

  • @chichicgonzalez1848
    @chichicgonzalez1848 5 ปีที่แล้ว +1

    Gran Video Dude, estuve buscando varios videos pero ninguno iba al grano, y al momento de explicar eres bastante paciente. Gracias, sigue asi!

  • @sailaharikakumani606
    @sailaharikakumani606 4 ปีที่แล้ว

    Worth watching..... nicely explained.

  • @anokhautomation4453
    @anokhautomation4453 2 ปีที่แล้ว

    👌nice tutorial. Very very helpful. 👍

  • @tobiasgamified2146
    @tobiasgamified2146 6 ปีที่แล้ว +4

    I actually detected an error in this setup, in the video he is connecting the end of the resistor to the MINUS current, it should be connected to the PLUS current, connecting it to the minus current will cause the display only to use back lightning, while putting it into the plus will make the lcd screen glow as it should :) hope it helps

  • @dingdongpattiwack
    @dingdongpattiwack 6 ปีที่แล้ว

    @NumberZeroJay that was awhile ago so I kind of forgot how I solve the problems but I'm pretty sure it was after I updated the Arduino IDE with the authentic version from the Arduino website rather than the distro package I was using on Raspberry Pi

  • @lucasskywalker
    @lucasskywalker 6 ปีที่แล้ว +1

    Great tutorial. Ty.

  • @JLCPCB
    @JLCPCB 2 ปีที่แล้ว

    Very nice explanation! 🙂

  • @DDAintJoken
    @DDAintJoken 8 ปีที่แล้ว

    Great instructional video, great blog too thanks

  • @matthewrobotalk6566
    @matthewrobotalk6566 5 ปีที่แล้ว +1

    Thanks for the help all i needed to know is the resister😄😄😄😄😄😄😄

  • @theleerie2959
    @theleerie2959 2 ปีที่แล้ว +1

    I MADE IT! THANK YOU!

  • @flashMXdesigner
    @flashMXdesigner 6 ปีที่แล้ว

    nice intro, was able to get my LCD going and did the exercises. thanks

  • @ridhwaanhusein8274
    @ridhwaanhusein8274 7 ปีที่แล้ว +1

    Awesome very helpful

  • @biohazardsoftworks4961
    @biohazardsoftworks4961 6 ปีที่แล้ว +1

    I did it it worked even with a 330 olm resistor

  • @tsbimbra
    @tsbimbra 3 ปีที่แล้ว +1

    Please except my thanks for sharing this . i learned a lot from this . Thanks again

  • @MADBASS77
    @MADBASS77 6 ปีที่แล้ว

    Thanks u friend. Good work

  • @michellemotta1032
    @michellemotta1032 2 ปีที่แล้ว

    Thx.. handy to know. I am having a bit of trouble running this lcd and max 7219 8x32 dot matrix simultaneously.. wondering if you could help.. they both work perfectly separately but once code is put together.. compiles ok but displays don’t work

  • @tamgaming9861
    @tamgaming9861 6 ปีที่แล้ว

    is there a way - that we build a connector or one big cable to be able to rebuild it one day when we need it without your tutorial? :-)

  • @UKSeejay
    @UKSeejay 7 ปีที่แล้ว

    Fantastic tutorial (very helpful). showed me everything i needed to know and more. strongly advise any other noobs out there to give it a watch to.

  • @ovokalev
    @ovokalev 2 ปีที่แล้ว

    btw, what is the golden-ish thingy that you put on the breadboard at the start?

  • @tonlangenbach4881
    @tonlangenbach4881 6 ปีที่แล้ว +1

    Great video,s Man and now i can make things go ..........;

  • @roy_shuvo
    @roy_shuvo 5 ปีที่แล้ว

    thanks , it's working properly

  • @brianlink391
    @brianlink391 8 ปีที่แล้ว +1

    Nice vid thank!

  • @shaylnandos230
    @shaylnandos230 7 ปีที่แล้ว

    nice tutorial. it is possible to get the degree output on the lcd.For example if you turn the know 20 degree then it show 20 on the lcd.

    • @GeekBoy03
      @GeekBoy03 7 ปีที่แล้ว

      of course it is

  • @JoeYerdon88
    @JoeYerdon88 4 ปีที่แล้ว +1

    Thanks so much for your video it really helped me!

  • @plankalkulcompiler9468
    @plankalkulcompiler9468 8 ปีที่แล้ว +1

    Yay! It works!

  • @yt_show7967
    @yt_show7967 4 ปีที่แล้ว

    I liked it.........it really helped me

  • @iadrogue
    @iadrogue 8 ปีที่แล้ว +1

    Perfect explanation! Thanx

  • @taranagnew436
    @taranagnew436 6 ปีที่แล้ว +1

    can you program a serial enabled lcd screen the same way as a lcd screen?

  • @NehaYadav-qk6eb
    @NehaYadav-qk6eb 6 ปีที่แล้ว +1

    sir please provide some details for switching program

  • @roussov
    @roussov 5 ปีที่แล้ว +1

    Thank you so much!!!!!!!

  • @markuszhmurko2041
    @markuszhmurko2041 2 ปีที่แล้ว

    just a question what is that thing that he plugs into the breadboard at 0:31 is it necesarry for the lcd to work

  • @billywhizz6965
    @billywhizz6965 6 ปีที่แล้ว

    I would double check the connections. Generally not working means you have missed something obvious and then it is time to go have a coffee and come back to it fresh. I have spent hours looking for a fault with a micro controller only to find the ground not connected.
    I would double check that you have connected power from the adruino to the bread board. Of you noticed on the video the display lit but did not have the power rails connected totally

  • @justapineapple8464
    @justapineapple8464 2 ปีที่แล้ว

    I have a furby connect eyes/ LCD screens but I toke them out idk how to work them and I can't find any videos that will help have any recommendations?

  • @Adithiyanvenkat
    @Adithiyanvenkat 8 ปีที่แล้ว +3

    very nicely done ,and i was wondering if u could help with , the LCD because i did everything but it just displayed nothing

    • @Teknotasyon
      @Teknotasyon 7 ปีที่แล้ว

      may be the problem in POT position. you must adjsut the POT until you see your chars in the screen

  • @user-ys5yq5uf8z
    @user-ys5yq5uf8z 8 ปีที่แล้ว

    loved it and it realy helped me... thank you

  • @kalty
    @kalty 8 ปีที่แล้ว

    Hello, I was wondering, is the program the same if we use the Deuligne Library?Thanks in advance

  • @sugampandit
    @sugampandit 3 ปีที่แล้ว

    Will the wrong wiring lead the LCD screen for short circuit??
    If not, plz suggest the possible reasons for my LCD screen not even lit??!
    i checked the wiring too! There are no errors but, I am using 20k potentiometer!!

  • @theflyingdutchman787
    @theflyingdutchman787 5 ปีที่แล้ว

    Thank you!! This worked for me!

  • @TF2Shows
    @TF2Shows 5 ปีที่แล้ว

    Finally, everything works! Its my first ever project with arduino.

  • @hertztmitechnologies7630
    @hertztmitechnologies7630 7 ปีที่แล้ว +1

    Well Explained, Thanks & Regards

  • @felixcharbonneau1964
    @felixcharbonneau1964 6 ปีที่แล้ว +3

    Hello, Great explication but I follow every step of your video and when I put on my arduino, my lcd screen dosen't power up and make a shorts. Did you know why? Thanks

  • @salmsnbaqmi684
    @salmsnbaqmi684 3 ปีที่แล้ว

    Thank you so much I have been trying to make it work for the past 2 days

  • @kajusmakalius296
    @kajusmakalius296 2 ปีที่แล้ว

    can i use a resistor insted of potenciometer? and what ohm should i use?

  • @dgroh
    @dgroh 4 ปีที่แล้ว +3

    Ok, maybe you could explain why the pin connections, how come you know exactly which pin to use from the LCD board?

    • @anthonyobryan3485
      @anthonyobryan3485 4 ปีที่แล้ว

      He probably looked at the LCD data sheet, and then used his knowledge of electronic symbology to translate it to the Arduino pins.

  • @yb6183
    @yb6183 4 ปีที่แล้ว

    It worked. Here is how i did it: I put the red wire on the left side of the potentiometer, and the black wire on the right, and the blue wire on the bottom

  • @CircuitCreator
    @CircuitCreator 2 ปีที่แล้ว +2

    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

  • @rehantariq5849
    @rehantariq5849 5 ปีที่แล้ว +1

    sir how your lcd ON before applying any voltage source .its not working.Thanks for sharing knowledge.

  • @ahmadhafizi2344
    @ahmadhafizi2344 7 ปีที่แล้ว

    What if the LCD lights up when connected to the GND at Arduino board but blinks continuosly?

  • @MoeInL
    @MoeInL 5 ปีที่แล้ว +28

    I did exactly as you said, the LCD lit up and I was able to control the contrast and I did upload the codes, but no characters appeared on my screen

    • @Inertia888
      @Inertia888 4 ปีที่แล้ว +1

      I'm just taking a shot in the dark since I don't have your set up in front me, I have to guess. But a mistake that I made early was not having the correct pins established in my code.
      Good luck to you

    • @irfanmaqboolbari4028
      @irfanmaqboolbari4028 4 ปีที่แล้ว

      Same issue happened with me

    • @abrorbekzukhriddinov6606
      @abrorbekzukhriddinov6606 4 ปีที่แล้ว

      yes it did happen as you said exactly on mine too broo! whay?

    • @uzytkownikgoogle9304
      @uzytkownikgoogle9304 3 ปีที่แล้ว

      @Abrsh Tube thank you, I thought I did something wrong but I saw your comment and it worked

  • @freaker126
    @freaker126 6 ปีที่แล้ว

    thanks buddy. it works for me finally.

  • @k.chriscaldwell4141
    @k.chriscaldwell4141 5 หลายเดือนก่อน

    Thank you.

  • @TECHShikhu
    @TECHShikhu 5 ปีที่แล้ว +7

    Any1, pls help !
    I got the background light, i adjusted the potentiometer for contrast, removed it, and just connected the resisitor, all the wirings are fine, i checked it dozen of times, but still; the text isn't showing ! 😫
    @Circuit Basics - Help ! 😕

    • @mliedtke815
      @mliedtke815 5 ปีที่แล้ว

      My LCD is the same as this video model. I only had 1 potentiometer so I could only control contrast(same thing happened when I used this tutorial), but then I desoldered another pot off a trash circuit board and put it in place of the resistor. 2 pots. Problem solved(for me, anyways).

    • @TractorMonkeywithJL
      @TractorMonkeywithJL 5 ปีที่แล้ว +1

      I do not use a pot because it's all the way to the end of travel anyhow. Just put a 220 ohm resistor from the lcd pin 3 (VO) to ground. It works fine on mine.

    • @SkinnyMidwest
      @SkinnyMidwest 4 ปีที่แล้ว

      @@TractorMonkeywithJL That worked for me! Thanks!

  • @user-fq9hs4xx1v
    @user-fq9hs4xx1v 6 ปีที่แล้ว +1

    Is the lcd soldering really necessary?

  • @loganbaeza3743
    @loganbaeza3743 4 ปีที่แล้ว

    what does the potentiometer do? I don't have one, just seeing if I can go without.

  • @backstreetboy67
    @backstreetboy67 8 ปีที่แล้ว

    im completely new to arduino programming...ive ordered a uno clone programmer and it does not have the IC that is plugged into the socket on your arduino pcb...... also once programmed does that IC on the arduino pcb have to be always connected to the lcd module ????

  • @tamgaming9861
    @tamgaming9861 6 ปีที่แล้ว

    Thanks for the tutorial - it worked :-)

  • @JustFrana
    @JustFrana 7 ปีที่แล้ว +15

    I connected mine identically with this video and double checked everything, but only the back light comes on and when i upload code it will not display the text ,, please please help with any suggestions

    • @boozle4163
      @boozle4163 7 ปีที่แล้ว +3

      Francois Terblanche did you ever figure out cause mine is same exact. Did all exact triple checked and nothing just the light

    • @JustFrana
      @JustFrana 7 ปีที่แล้ว +3

      Never got it right just gave up after a few weeks :(

    • @GeekBoy03
      @GeekBoy03 7 ปีที่แล้ว +1

      Check to make sure the pin headers are properly soldered on.

    • @mog99lie
      @mog99lie 7 ปีที่แล้ว +3

      Never give up. Adjust the pot! Check and check again. This works!

    • @midnightskate
      @midnightskate 7 ปีที่แล้ว +1

      make sure that you remember to connect your potentiometer to the positive and negative rails. I just made that silly mistake and it only powered the backlight

  • @PhilippeNowak
    @PhilippeNowak 4 ปีที่แล้ว

    Thank you very much ! Excellent tutorial for my first Arduino exercice. Since I don't have a potentiometer, I had to 'hard-wire' pin 3 of the LCD to the '-' rail so contrast is set to the max (well I guess). :-) :-) :-)

  • @MrCheaptubes
    @MrCheaptubes 6 ปีที่แล้ว

    I don't have a potentiometer so I left those wires out. I added the LCD sketch to another sketch but tried it by itself as well with no difference. The LCD turns on but I'm not getting any words (Hello world!). I soldered the power & ground wires because it's hooked to a 2nd breadboard but i doubt that's the issue bc it turns on, just doesn't display characters

  • @wkornf
    @wkornf 5 ปีที่แล้ว +2

    how did your LCD backlight turn on before connecting the voltage source?

  • @halahramzi4277
    @halahramzi4277 4 ปีที่แล้ว +1

    THANK YOU TOO MUCH

  • @krsticfranko
    @krsticfranko 3 ปีที่แล้ว

    If you have problem with LCD not lighting on after you plugged all correctly just switch resistor with the ground pin of potentiometer

  • @RaptorRotorHead
    @RaptorRotorHead 6 ปีที่แล้ว +1

    How come you didn't hook up pins D0 D1 D2 D3, I know the display can work in nibble mode but I'm more interesting than just feeding it the entire bite

  • @mog99lie
    @mog99lie 7 ปีที่แล้ว

    Supper video, now I have solved all my problems but 1. How
    can I get line 2 scrolling to the left but keep line 1 static? Any suggestions??

    • @simonmasters3295
      @simonmasters3295 7 ปีที่แล้ว +1

      Familiarise yourself with the library functions

  • @Sound-And-Vision_electronics
    @Sound-And-Vision_electronics 7 ปีที่แล้ว +1

    anubhav bhai meri ek help karoge mujhe kuch knowledge lena hai arduino ka