Arduino LCD Tutorial | How To Control An LCD

Поделиться
HTML-код
  • Опубликовано: 8 июл 2015
  • howtomechatronics.com/tutoria... ► Find more details, circuit schematics and source codes from my official website.
    If you enjoy and find the content that I make useful, please consider supporting me on Patreon: / howtomechatronics
    Parts list (check website article for full list, affiliate links):
    Amazon.com:
    16×2 Character LCD: amzn.to/2M1WUeV
    Arduino Board: amzn.to/2Ccd5kC
    Breadboard and Jump Wires: amzn.to/2LYGILy
    Banggood.com:
    16×2 Character LCD: bit.ly/3o9gHrU
    Arduino Board: bit.ly/2YioMjH
    Breadboard and Jump Wires: bit.ly/3qWnvuX
    In this Arduino LCD Tutorial we will learn how to connect an LCD (Liquid Crystal Display) to the Arduino board. LCDs like these are very popular and broadly used in electronics projects as they are good for displaying information like sensors data from your project, and also they are very cheap.
    Visit HowToMechatronics.com for more Tutorials, Tips, Projects and How It Works videos:
    ► howtomechatronics.com/
    Like my page on Facebook:
    ► / howtomechatronics
    Add me on Google+:
    ►plus.google.com/+Howtomechatr...
    Music used: Aduro by Jens Kiilstofte (machinimasound.com/music)
    Circuit schematics made in: Fritzing

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

  • @HowToMechatronics
    @HowToMechatronics  3 года назад +21

    I hope you enjoyed this video and learned something new! If you'd like to support me making more content like this, please consider supporting me on Patreon: www.patreon.com/howtomechatronics

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

      Dont work

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

      thank you !
      Good tutorial and easy to follow.
      I had trouble initially with putting .ino in wrong folder
      I forgot most of what I learnt before.
      Its nice to revisit Arduino again! 🙂👍

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

      @@mlequuu4723 👇
      byte slash[8] = {
      B000001
      ...
      Under that code add ";" in front of Liquid Crystal "lcd(1, 2, 4, 5, 6, 7); line."
      ; LiquidCrystal
      👍😃

  • @malte-j
    @malte-j 8 лет назад +35

    Thanks Dejan for this tutorial! It is one of the best LCD tutorials out there, really well structured and produced with a high quality!

  • @MikesPikes
    @MikesPikes 6 лет назад +29

    Unlike the other endless videos, you summed it up in a concise manner. Thank you!

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

      very informative

  • @samiranjoseph9793
    @samiranjoseph9793 7 лет назад +12

    This tutorial is brilliant stuff. The LCD was shining too bright, since I used a voltage divider in a 50 : 50 ratio instead of a pot. Made it right changing the ratio to with a 10K : 0.5 K divider.

  • @garykahne1266
    @garykahne1266 5 лет назад +10

    Wonderful. A clear and straight forward explanation with no obfuscation. Very well done.

  • @Obamjur
    @Obamjur 7 лет назад +4

    You made it so simple and easy to do that even I can understand ! Thanks!

  • @northshorepx
    @northshorepx 8 лет назад +2

    Again a brilliantly explained tutorial. Clear step by step explanation. Thank you!

  • @daesoolee1083
    @daesoolee1083 5 лет назад +43

    wow thanks a lot. This tutorial is better than my Arudino textbook haha

    • @jayoli7073
      @jayoli7073 4 года назад +1

      Agreed lol... I tried the LCD project in the book and was unsuccessful... I'm shocked that some of the projects are a bit confusing as far as what instructions are provided...

  • @am8084
    @am8084 5 лет назад +2

    helped me a lot. I understood it clearly. could use it to read my joystick X , Y value.

  • @mohamedtawfeeq8494
    @mohamedtawfeeq8494 6 лет назад

    Thank you for your tutorial.we were working LCD with arduino for a week searching RUclips none of them worked.once again thanks a lottt.. Feeling happy....😍😍😍😍

  • @aonoymousandy7467
    @aonoymousandy7467 6 лет назад

    thanks for getting to the point and showing the cool schematic of the circuits and boards, great video!

  • @am-1387
    @am-1387 5 лет назад +1

    Thank you! mine didn't work for the first time, but then I checked the wiring and it worked.

  • @kosovarepublik5358
    @kosovarepublik5358 7 лет назад +447

    Thank's, you explained it Crystal Clear

    • @sulaimaanchamda4501
      @sulaimaanchamda4501 6 лет назад +23

      Kosova Republik lol CRYSTAL clear badumpisshhh

    • @BlenderGuy1
      @BlenderGuy1 6 лет назад +1

      Kosova Republik
      lol

    • @s7davidj
      @s7davidj 6 лет назад +5

      Looks like someone is feeling 'punny'

    • @KAXSH
      @KAXSH 6 лет назад +4

      fuck you

    • @justicem5919
      @justicem5919 6 лет назад +4

      Oh I see what u did there......

  • @javasyndicate713
    @javasyndicate713 6 лет назад +1

    yayyyyy ...... I made it to nano, worked on 4 days - play video again & again ... thank you so muchhhh

  • @oraviv863
    @oraviv863 6 лет назад +8

    Thx so much, Now I understood how to make a character in LCD screen and use this electronic
    ! device at all

  • @vigneshkamath4888
    @vigneshkamath4888 7 лет назад

    Explanation is really great ,the detailing in coding and all s really helpful

  • @laszlomattern
    @laszlomattern 3 года назад +10

    If your panel produces a random sign instead of clearing the panel try switching the first two pins (currently on 1 and 2) to other pins (I used 8 and )
    It will work :)
    Btw dont forget to also change the pins when you initialize the panel

  • @raygilbers8274
    @raygilbers8274 8 лет назад

    Again nice tutorial Dejan Nedelkovski! keep up the good work

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

    An EXCELLENT TUTORIAL!!! Much better than the LCD Project in the official book!!

  • @alexandernikolov5356
    @alexandernikolov5356 7 лет назад

    Браво! Ясно,точно и най-важното-много достъпно!

  • @tusharbanswal2089
    @tusharbanswal2089 5 лет назад +1

    Thanks man ! got my concept clear about lcd prog..

  • @sparkyp0077
    @sparkyp0077 5 лет назад +12

    You may have just saved my chances of getting a degree! Thank you so much for the perfect explanation!!

  • @andjroo4867
    @andjroo4867 7 лет назад

    You put so much effort into your videos! You should have more subscribers.

  • @tejasmarulkar4432
    @tejasmarulkar4432 8 лет назад +1

    Ok thank you Andrew Brooks that is actually very helpful!

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

    Thanks for such a short helpful video!

  • @michaelmcnaughton1535
    @michaelmcnaughton1535 8 лет назад +25

    You do great work. Great tutorial, beautiful website.

    • @stormragemc4375
      @stormragemc4375 7 лет назад

      HELLO RUSSIAN HAXOR! IT IS PROVEN THAT YOU ARE RUSSIAN. "Nedelkovski" is probably a Soviet Russia name. Please launch an attack on Japan!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  • @photosynthesis_by_pete4006
    @photosynthesis_by_pete4006 6 лет назад

    Thanks from Australia. Very simple. you helped me teach my 8 year boy. Thanks alot

  • @vedantbarje134
    @vedantbarje134 8 лет назад +1

    Great video.... LCD worked PERFECTLY!!!THANKS

  • @isidorovazquez6968
    @isidorovazquez6968 5 лет назад +1

    Love it man, thanks a lot and God bless you!!!

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

    Your LCD program worked well Thank you, I searched for a long time. I used to program with Basic, this is Pseudo Basic. Some commands and functions are known to me and hidden. Thanks again!

  • @sparcnz
    @sparcnz 8 лет назад +2

    Hi Dejan, (In the right video this time)Great videos on Arduino.
    I am just learning Arduinos and find these tutorials a great help.
    Question, could you do one on using the "I2C" connections, I have a 20x4 LCD with the small I2C interface board but I cannot get the display to show anything.
    Saciba.
    Kevin.

  • @LBSiUK
    @LBSiUK 6 лет назад

    What should I do if I want to make the custom character just stay in one part of the screen?

  • @rahmataulia5989
    @rahmataulia5989 6 лет назад +2

    thank you sir, you made my day!

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

    Awesome! I had no idea how to do it but I know now how to do it!

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

    Thanks! It really helped me for my project at the university :)))

  • @100roberthenry
    @100roberthenry 8 лет назад +3

    EXCELLENT...exactly what i needed.....great tutorial, thanks .

  • @rafatyusufi6711
    @rafatyusufi6711 7 лет назад +2

    very very intresting tutorials , Awesome. I am learning.

  • @BriansModelTrains
    @BriansModelTrains 8 лет назад +1

    Yayyyy I got it to work! - thank you!

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

    You help to make this much easier, thanks for this tutorial.

  • @rahmatrad4599
    @rahmatrad4599 7 лет назад

    Thanks your video is very helpful
    is it possible to make a video for FM radio receiver with TEA5767 Module?

  • @jalilurrehman8984
    @jalilurrehman8984 7 лет назад

    dear i am going to make a injection molding machine and want to use ardunio as programming source but problem is that is it possible to controlle time and temperature
    also that is it possible to change time in controller without chaning programme

  • @omar_rrr
    @omar_rrr 7 лет назад

    excellent, but what are the pins behind the lcd? apart from vcc, gnd. The scl and sda pins? are those optional?

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

    Thanks for this tutorial. I'm learning a lot of knowledges from you!!!

  • @drummsnikk5073
    @drummsnikk5073 5 лет назад

    Goodmorning! :)
    I have a question.. In my project I put a 1K Ohm resistor between V0 and Ground to obtain a constant Constrast on the screen, same between A and 5V (via 220 Ohm resistor).
    How could I 'justify' to a teacher my choice? Do you have any suggestion?
    What could be the calculus behind my choices?
    Thanks a lot in advice!! :)

  • @zammykoo
    @zammykoo 8 лет назад +7

    Thanks for breaking it down! I wanted to give a quick comment on something I got stuck on but figured out. I kept getting an error when verifying... "expected ',' or ';' before 'LiquidCrystal'", so I put a semicolon after the closing curly bracket for the array of bytes. Not sure why but that's what worked for me.

    • @ottosboyen
      @ottosboyen 6 лет назад +1

      Thanks. I had the same problem and I googled it and looked for everything but didnt find anything. I saw your comment, tried it and it worked. I dont know why but it would be nice of someone knew why it worked =)

    • @franceababa5915
      @franceababa5915 6 лет назад

      Can you show where the semi colon will be placed? Please

    • @AvikSeth
      @AvikSeth 6 лет назад

      just go to file>examples>liquid crystal>hello world and you will see no errors in compiling and running the code into your arduino board.
      hope this information helps you. :D

    • @sesame8394
      @sesame8394 6 лет назад +1

      in c++ and c you must put semicolons after variables... lol (same for c# too i think)

    • @AvikSeth
      @AvikSeth 6 лет назад

      yup..and this indicates that the declaration is completed

  • @interrobot1
    @interrobot1 7 лет назад

    Thank you Dejan for the helpful video

  • @markviana4960
    @markviana4960 8 лет назад

    Thanks for sharing this tutorial.

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

    Thank you so much! This works and i definetly recommend this if you want to do LCD

  • @fermitsens6234
    @fermitsens6234 6 лет назад

    I just got an Arduino with the lcd screen wanted to know how to use it and u explained it sooo good ..thx 'liked'

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

    wow thanks. this was the best tutorial. thanks now i can do stuff with lcd

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

    Great ability of teaching , really enjoyed

  • @PeterFloyd678
    @PeterFloyd678 7 лет назад

    Great. Short tutorial. If you ever want to update it, you might want to show how the potentiometer and how it works.

  • @aeshi001
    @aeshi001 7 лет назад

    hi my display is working fine at first, my supply is a connected to a resistor to change it to 5V(i have also used 7805 voltage regulator IC and 5V zener diodes), but then when the supply (12V battery) is being charged by a DC generator we noticed that the regulating voltages we use is not working anymore which in turn makes the LCD display random characters. Please help! Thanks

  • @rotorcraft68
    @rotorcraft68 6 лет назад

    Very concise. Thanks!!!

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

    Hello ,
    I want to make waka up light thats why ı want to read time in lcd , how can ı connect rtc module and lcd?

  • @curiosity551
    @curiosity551 6 лет назад

    if the display works with 4 data lines why do we need 8 of them?

  • @OccyDaBoss
    @OccyDaBoss 4 года назад +1

    Brilliant tutorial! Don't know what I'll do with it yet, but time will tell XD.

  • @muhammadusmanmalik1166
    @muhammadusmanmalik1166 5 лет назад

    excellent video u solved my problem love u sir😍❤

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

    Thank you! Wasnt able to see, but was the potentiometer able to turn up / down the brightness of the LCD display?

  • @KurumiZph
    @KurumiZph 6 лет назад

    My display is not working, it remains off, and whenever i insert the pin from power 5v to breadboard, my Arduino becomes fade (yellow led stops and green becomes very weak). After 2 seconds of uploading command it shows error :
    avrdude: ser_drain() : read error : The device does not recognise the command.

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

    Thank you s much for this project , it has worked really well for me .

  • @Martin-vx7pc
    @Martin-vx7pc 7 лет назад

    hey i need help i wrote the code as you did but it said "delay(3000) ;" was wrong.

  • @kittykat-qn6zy
    @kittykat-qn6zy 7 лет назад

    hi, we would like to ask for help. we connected our arduino uno to 2x16 lcd, but there is a problem..it will not turn on

  • @Subagyo-Tepil
    @Subagyo-Tepil 2 года назад

    Thanks for complete and clear explanation

  • @chalos9752
    @chalos9752 8 лет назад

    Very good tutorial, thanks!!

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

    How are you supposed to get 2+ wires to go into the same hole on the bread board as they are shown on the schematic?

  • @jochengerardi
    @jochengerardi 3 года назад +2

    Got strange chars when I started combining it with a joystick for example. As soon as you need serial communication you might need to shift digital pins usage to avoid usage of pin 1. 0 and 1 pins are used for serial communication on this device and trigger strange chars on display. On the Uno start using pins 2,3 instead and all works fine :P

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

    Excellent video! Great thanks!

  • @standishgeezer
    @standishgeezer 6 лет назад

    Excellent. Well explained

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

    Great Tutorial! Thank you so much!

  • @kingsun1381
    @kingsun1381 8 лет назад

    Thanks for tutorial.

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

    How do you draw the circuit diagram? I mean what software do you use to design the circuit?

  • @Warlordfff
    @Warlordfff 8 лет назад +8

    First of all cogratulations, it is one of the best tutorials out there.
    I have a question, can I use an arduino uno or an arduino mini instead?

    • @LBSiUK
      @LBSiUK 6 лет назад +2

      I'm using an Uno for this and it works perfectly.

    • @AvikSeth
      @AvikSeth 6 лет назад +4

      yes surely you can use other versions of arduino development board, they all have same IDE to program
      make sure to select the right communication board while changing the board and for that
      1. go to>start>control panel>device manager>coms port and LPT
      2. now go to>arduino IDE>tools>and select the same port as that appeared in your control panel.
      in order to select the correct board
      1. go to>arduino IDE>tools>select board
      hope this information helps you :D

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

      Omg i was looking for this comment since I need to use Arduino Uno. Thankfully there are these guys replying to you. I'm still in highschool and doesn't know how to do these kind of stuff. Thank you so much.

  • @tobyprotsman2191
    @tobyprotsman2191 7 лет назад

    No matte what I do I can not get this lcd 1602a to work i tried to reflow the board on it what am I doing wrong or is it a bad board

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

    This is a good video. Should one resistor (usually 220 ohm) be placed in series in one of the two terminals ? Tinkercad simulation shows LCD blow with 23 mA current. I haven't yet tried on actual board.

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

      I have the same question too.

  • @tejasmarulkar4432
    @tejasmarulkar4432 7 лет назад

    Could you make a video on how to use the 4 terminal LCD Screen? That would help a lot!

  • @nemethistvan1892
    @nemethistvan1892 8 лет назад

    Nice tutorial, it works!!! ty

  • @norbertmikolasek9041
    @norbertmikolasek9041 7 лет назад

    Great job. Thanks the video.

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

    You made my day

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

    Note that using digital pin 1 on some boards, Arduino Uno to name one, may interfere with the Serial Port. Better use digital pin 3.

  • @LionelTellem
    @LionelTellem 7 лет назад

    Nice video...Really good job

  • @arrshithrg5359
    @arrshithrg5359 7 лет назад +1

    where did you learn all this things bro . you are doing good job

  • @JohnStraussmusic
    @JohnStraussmusic 7 лет назад

    Were is the details of each library located. Seems I can not find the page that describes what function and parameters do with in a library

  • @holyproton8855
    @holyproton8855 5 лет назад

    Trying to do this with a 1k resistor, but the LCD keeps on blinking like its turning on and off. Any suggestions ?

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

    This was the perfect thorough

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

    Do you *need* all the pins? like if I don't want to change the contrast can I leave out pin Vo?

  • @pervysagev2.087
    @pervysagev2.087 2 года назад

    Thanks a lot ❤️ really helped me a lot ❤️

  • @MrMazen918
    @MrMazen918 6 лет назад

    very nice tutorial ,thanks

  • @karimismail3734
    @karimismail3734 8 лет назад +1

    Very fine presentation. Thanks Dejan. Every time you need to display text you need to reprogram the Sketch. Is there an LCD that has buttons to write your messages?. Second question is if you attaching an MP3; can the LCD display the played file info(the track)?. Thanks again....Regards.

    • @karimismail3734
      @karimismail3734 8 лет назад

      After little search I found it,called LCD Keyboard Shield. Just in case people have the need to know. Thank you all.

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

    So useful. Thank you

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

    Hatsup to u sir very very simply understandable

  • @prakhartibrewal9886
    @prakhartibrewal9886 7 лет назад

    Sir,
    My LCD is showing just the bars that also on the top row only pls help me. And my LCD is not soldered and i m using it by connecting some wires and 40 pin. PLS HELP

  • @brickmaster0118
    @brickmaster0118 7 лет назад +1

    Is it possible to do this without a potentiometer

  • @sidb6471
    @sidb6471 5 лет назад

    Great video, this helped me a lot. Thank you!

    • @HowToMechatronics
      @HowToMechatronics  5 лет назад +1

      Thanks!

    • @Yash-qz7nb
      @Yash-qz7nb 3 года назад

      @@HowToMechatronics after sometime instead of written text some other text like "0o

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

    this man is the man thank you man

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

    My arduino was shutting of every time i connected the potentiometer to gnd but when I connected the potentiometer to 3.5v instead of 5v it worked! Thank you so much

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

      Could you have been using a pot with too low a resistance value? If so, you could probably also fix it with a change of pot, or adding an inline resistor.

  • @sudipta_samanta
    @sudipta_samanta 7 лет назад +1

    what is the role of the 7 in createChar(7,slash) ?

  • @singhhimanshu2650
    @singhhimanshu2650 5 лет назад

    Please help me i have done exactly you explain here but i got nothing. Its some time show all below blocks sometime nothing.

  • @user-dp3ch9dd1o
    @user-dp3ch9dd1o 2 года назад

    A huge Thanks from KR!

  • @SalimKhan-lq5hr
    @SalimKhan-lq5hr 7 лет назад

    Hi, i want to show on/off status of 4 devices. How can i do it?