Arduino LCD Tutorial | How To Control An LCD

  Рет қаралды 1,400,726

How To Mechatronics

How To Mechatronics

Күн бұрын

howtomechatron... ► 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:
► howtomechatron...
Like my page on Facebook:
► / howtomechatronics
Add me on Google+:
►plus.google.co...
Music used: Aduro by Jens Kiilstofte (machinimasound.com/music)
Circuit schematics made in: Fritzing

Пікірлер: 427
@HowToMechatronics
@HowToMechatronics 3 жыл бұрын
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 жыл бұрын
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 👍😃
@MikesPikes
@MikesPikes 6 жыл бұрын
Unlike the other endless videos, you summed it up in a concise manner. Thank you!
@husam4327
@husam4327 3 жыл бұрын
very informative
@samiranjoseph9793
@samiranjoseph9793 7 жыл бұрын
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.
@malte-j
@malte-j 9 жыл бұрын
Thanks Dejan for this tutorial! It is one of the best LCD tutorials out there, really well structured and produced with a high quality!
@garykahne1266
@garykahne1266 5 жыл бұрын
Wonderful. A clear and straight forward explanation with no obfuscation. Very well done.
@HowToMechatronics
@HowToMechatronics 5 жыл бұрын
Thank you!
@daesoolee1083
@daesoolee1083 5 жыл бұрын
wow thanks a lot. This tutorial is better than my Arudino textbook haha
@jayoli7073
@jayoli7073 4 жыл бұрын
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...
@laszlomattern
@laszlomattern 3 жыл бұрын
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
@kosovarepublik5358
@kosovarepublik5358 7 жыл бұрын
Thank's, you explained it Crystal Clear
@sulaimaanchamda4501
@sulaimaanchamda4501 7 жыл бұрын
Kosova Republik lol CRYSTAL clear badumpisshhh
@BlenderGuy1
@BlenderGuy1 6 жыл бұрын
Kosova Republik lol
@s7davidj
@s7davidj 6 жыл бұрын
Looks like someone is feeling 'punny'
@KAXSH
@KAXSH 6 жыл бұрын
fuck you
@justicem5919
@justicem5919 6 жыл бұрын
Oh I see what u did there......
@jochengerardi
@jochengerardi 3 жыл бұрын
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
@sparkyp0077
@sparkyp0077 5 жыл бұрын
You may have just saved my chances of getting a degree! Thank you so much for the perfect explanation!!
@antsmartti
@antsmartti 5 жыл бұрын
same
@mohamedtawfeeq8494
@mohamedtawfeeq8494 6 жыл бұрын
Thank you for your tutorial.we were working LCD with arduino for a week searching KZbin none of them worked.once again thanks a lottt.. Feeling happy....😍😍😍😍
@javasyndicate713
@javasyndicate713 6 жыл бұрын
yayyyyy ...... I made it to nano, worked on 4 days - play video again & again ... thank you so muchhhh
@am8084
@am8084 5 жыл бұрын
helped me a lot. I understood it clearly. could use it to read my joystick X , Y value.
@joachimkessler3339
@joachimkessler3339 3 жыл бұрын
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!
@blkr4363
@blkr4363 4 жыл бұрын
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.
@am-1387
@am-1387 5 жыл бұрын
Thank you! mine didn't work for the first time, but then I checked the wiring and it worked.
@Obamjur
@Obamjur 7 жыл бұрын
You made it so simple and easy to do that even I can understand ! Thanks!
@zammykoo
@zammykoo 8 жыл бұрын
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 7 жыл бұрын
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 жыл бұрын
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
@northshorepx
@northshorepx 8 жыл бұрын
Again a brilliantly explained tutorial. Clear step by step explanation. Thank you!
@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'
@HowToMechatronics
@HowToMechatronics 6 жыл бұрын
Thanks!
@jayoli7073
@jayoli7073 4 жыл бұрын
An EXCELLENT TUTORIAL!!! Much better than the LCD Project in the official book!!
@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.
@khushidhingra6524
@khushidhingra6524 3 жыл бұрын
You made my day
@michaelmcnaughton1535
@michaelmcnaughton1535 8 жыл бұрын
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!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@Strixzy
@Strixzy 8 ай бұрын
Thank you so much! This works and i definetly recommend this if you want to do LCD
@photosynthesis_by_pete4006
@photosynthesis_by_pete4006 6 жыл бұрын
Thanks from Australia. Very simple. you helped me teach my 8 year boy. Thanks alot
@brockobama257
@brockobama257 2 жыл бұрын
This was the perfect thorough
@ananyorangan9608
@ananyorangan9608 4 жыл бұрын
Thanks for such a short helpful video!
@vedantbarje134
@vedantbarje134 8 жыл бұрын
Great video.... LCD worked PERFECTLY!!!THANKS
@OccyDaBoss
@OccyDaBoss 4 жыл бұрын
Brilliant tutorial! Don't know what I'll do with it yet, but time will tell XD.
@HowToMechatronics
@HowToMechatronics 4 жыл бұрын
Have fun!
@cainanlove8432
@cainanlove8432 2 жыл бұрын
You help to make this much easier, thanks for this tutorial.
@tusharbanswal2089
@tusharbanswal2089 5 жыл бұрын
Thanks man ! got my concept clear about lcd prog..
@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.
@oraviv863
@oraviv863 6 жыл бұрын
Thx so much, Now I understood how to make a character in LCD screen and use this electronic ! device at all
@andjroo4867
@andjroo4867 7 жыл бұрын
You put so much effort into your videos! You should have more subscribers.
@Warlordfff
@Warlordfff 9 жыл бұрын
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 жыл бұрын
I'm using an Uno for this and it works perfectly.
@AvikSeth
@AvikSeth 6 жыл бұрын
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.
@aonoymousandy7467
@aonoymousandy7467 6 жыл бұрын
thanks for getting to the point and showing the cool schematic of the circuits and boards, great video!
@ruelagnes4277
@ruelagnes4277 Жыл бұрын
this man is the man thank you man
@robototexnikavamen2912
@robototexnikavamen2912 2 жыл бұрын
Thanks for this tutorial. I'm learning a lot of knowledges from you!!!
@user-dp3ch9dd1o
@user-dp3ch9dd1o 2 жыл бұрын
A huge Thanks from KR!
@alexandernikolov5356
@alexandernikolov5356 7 жыл бұрын
Браво! Ясно,точно и най-важното-много достъпно!
@marit903
@marit903 3 жыл бұрын
Thanks! It really helped me for my project at the university :)))
@Laqota
@Laqota 2 ай бұрын
it is very important to use a resistor for the LED backlight so it doesn't burn out.
@shahidbangash9831
@shahidbangash9831 2 жыл бұрын
Great ability of teaching , really enjoyed
@DinkinDallin
@DinkinDallin Ай бұрын
Can you please explain the reason why you used a potentiometer in the hardware setup?
@vigneshkamath4888
@vigneshkamath4888 7 жыл бұрын
Explanation is really great ,the detailing in coding and all s really helpful
@murrrr8288
@murrrr8288 3 жыл бұрын
Excellent video! Great thanks!
@Otto_Heiskanen
@Otto_Heiskanen 4 жыл бұрын
wow thanks. this was the best tutorial. thanks now i can do stuff with lcd
@Subagyo-Tepil
@Subagyo-Tepil 3 жыл бұрын
Thanks for complete and clear explanation
@brockobama257
@brockobama257 2 жыл бұрын
Your pace is perfect. Most KZbinrs either: A) type slow and speak fast B) type fast and speak fast C) type fast and speak slow I speed up on slow typers and I can’t understand fast speakers. So both A and B are annoying. C is doable but rare and too relaxing. But you’re D) type slow and speak slow D let’s me go at my own pace. I can speed it up or slow it down on your D.
@tejasmarulkar4432
@tejasmarulkar4432 8 жыл бұрын
Ok thank you Andrew Brooks that is actually very helpful!
@arrshithrg5359
@arrshithrg5359 7 жыл бұрын
where did you learn all this things bro . you are doing good job
@rafatyusufi6711
@rafatyusufi6711 7 жыл бұрын
very very intresting tutorials , Awesome. I am learning.
@tejasmarulkar4432
@tejasmarulkar4432 8 жыл бұрын
I have 4 pins coming out. GND, VCC, SDA, and SCL. Could you do something to help me out? I really hope so. You are pretty much the only arduino you-tuber that has helpful videos. PLZ help and thanks for everything. :)
@SkullHunt369
@SkullHunt369 5 жыл бұрын
Awesome! I had no idea how to do it but I know now how to do it!
@DiAngeloTheSecond
@DiAngeloTheSecond 4 жыл бұрын
very nice explanation
@bolibardo1514
@bolibardo1514 3 жыл бұрын
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.
@raygilbers8274
@raygilbers8274 8 жыл бұрын
Again nice tutorial Dejan Nedelkovski! keep up the good work
@andreschavez8811
@andreschavez8811 2 жыл бұрын
Thank you! Wasnt able to see, but was the potentiometer able to turn up / down the brightness of the LCD display?
@indobotacademy
@indobotacademy 5 жыл бұрын
thank's for reference, i like this . now I know how to control an LCD. and don't forget to stop by our channel
@bonfaceosuka
@bonfaceosuka 2 жыл бұрын
Thank you s much for this project , it has worked really well for me .
@CircuitCreator
@CircuitCreator 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
@qsdrfghgujfddyffguff
@qsdrfghgujfddyffguff 4 жыл бұрын
Hatsup to u sir very very simply understandable
@rahmataulia5989
@rahmataulia5989 6 жыл бұрын
thank you sir, you made my day!
@karimismail3734
@karimismail3734 8 жыл бұрын
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
@sparcnz
@sparcnz 9 жыл бұрын
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.
@stefvecko6661
@stefvecko6661 7 жыл бұрын
Can you please make video about how to make police lights with button switch
@RixtronixLAB
@RixtronixLAB 2 жыл бұрын
Vote up, nice clip, thanks for sharing :)
@tejasmarulkar4432
@tejasmarulkar4432 7 жыл бұрын
Could you make a video on how to use the 4 terminal LCD Screen? That would help a lot!
@kristofsw
@kristofsw 3 жыл бұрын
you are incredible! tysm!
@rahmatrad4599
@rahmatrad4599 7 жыл бұрын
Thanks your video is very helpful is it possible to make a video for FM radio receiver with TEA5767 Module?
@rakhibamboli7032
@rakhibamboli7032 7 жыл бұрын
best lcd tutorial
@Drxxx
@Drxxx 5 жыл бұрын
sure
@gzcwnk
@gzcwnk 3 жыл бұрын
My only suggestion on this great video is use the Mega's other numerous pins as everyone uses the same pins which is just annoying for a beginner!
@isidorovazquez6968
@isidorovazquez6968 6 жыл бұрын
Love it man, thanks a lot and God bless you!!!
@Peter_A1466
@Peter_A1466 2 жыл бұрын
Would be nice if you mention what type of lcd you are using...
@monuvarshney2809
@monuvarshney2809 3 жыл бұрын
But before LCD tutorial the cursor is set to (2,1) but it display at other position
@Oratazana
@Oratazana 3 жыл бұрын
Very good video, explained
@HowToMechatronics
@HowToMechatronics 3 жыл бұрын
Glad it was helpful!
@100roberthenry
@100roberthenry 8 жыл бұрын
EXCELLENT...exactly what i needed.....great tutorial, thanks .
@pervysagev2.087
@pervysagev2.087 2 жыл бұрын
Thanks a lot ❤️ really helped me a lot ❤️
@interrobot1
@interrobot1 7 жыл бұрын
Thank you Dejan for the helpful video
@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?
@standishgeezer
@standishgeezer 6 жыл бұрын
Excellent. Well explained
@photography4life
@photography4life Жыл бұрын
Thanks for the tutorial :)
@HowToMechatronics
@HowToMechatronics Жыл бұрын
Happy to help!
@BriansModelTrains
@BriansModelTrains 8 жыл бұрын
Yayyyy I got it to work! - thank you!
@adilabusafa
@adilabusafa 3 жыл бұрын
أهلا وسهلا بك مشكور يا محترم .
@muhammadusmanmalik1166
@muhammadusmanmalik1166 5 жыл бұрын
excellent video u solved my problem love u sir😍❤
@rotorcraft68
@rotorcraft68 6 жыл бұрын
Very concise. Thanks!!!
@norbertmikolasek9041
@norbertmikolasek9041 7 жыл бұрын
Great job. Thanks the video.
@markviana4960
@markviana4960 8 жыл бұрын
Thanks for sharing this tutorial.
@MrMazen918
@MrMazen918 7 жыл бұрын
very nice tutorial ,thanks
@samschroeder2053
@samschroeder2053 4 жыл бұрын
does it matter which side of the potentiometer goes into positive and negative rails?
@oh_yeah_
@oh_yeah_ 11 ай бұрын
Why do we need the potentiometer?
@sudipta_samanta
@sudipta_samanta 8 жыл бұрын
what is the role of the 7 in createChar(7,slash) ?
@kadenmoore1677
@kadenmoore1677 3 жыл бұрын
Thank you
@rishabjadhav7915
@rishabjadhav7915 6 жыл бұрын
it works great! the only problem is that the lcd screen is very dim, almost unseeable. adjusting contrast doesn't work either. please help!
@HowToMechatronics
@HowToMechatronics 6 жыл бұрын
Well its either LCD fault or your brightness voltage divider is not set up properly.
@sidb6471
@sidb6471 5 жыл бұрын
Great video, this helped me a lot. Thank you!
@HowToMechatronics
@HowToMechatronics 5 жыл бұрын
Thanks!
@Yash-qz7nb
@Yash-qz7nb 3 жыл бұрын
@@HowToMechatronics after sometime instead of written text some other text like "0o
@MrMaco2007
@MrMaco2007 2 жыл бұрын
When I tried my code it worked and when I changed it up a little I just got boxes in my upper part of the LCD. I have been looking online but nothing worked
@nemethistvan1892
@nemethistvan1892 8 жыл бұрын
Nice tutorial, it works!!! ty
@rohanmishra141
@rohanmishra141 Жыл бұрын
Thanku!!!😇
Get Started in Electronics #11 - Use the LCD Screen with an Uno
12:13
BV3D: Bryan Vines
Рет қаралды 36 М.
You can learn Arduino in 15 minutes.
16:34
Afrotechmods
Рет қаралды 10 МЛН
So Cute 🥰
00:17
dednahype
Рет қаралды 45 МЛН
王子原来是假正经#艾莎
00:39
在逃的公主
Рет қаралды 26 МЛН
Datasheets: 16x2 LCD By Hand (No microcontroller)
26:35
Mitch Davis
Рет қаралды 99 М.
Display examples - which one to use?
12:41
Electronoobs
Рет қаралды 255 М.
How to use  LCD LCD1602  with I2C module for Arduino - Robojax
13:12
Using Keypads with Arduino - Build an Electronic Lock
28:17
DroneBot Workshop
Рет қаралды 229 М.
Fun with Transistors
24:33
HackMakeMod
Рет қаралды 264 М.
OLED Displays with Arduino - I2C & SPI OLEDs
41:41
DroneBot Workshop
Рет қаралды 1,1 МЛН
So Cute 🥰
00:17
dednahype
Рет қаралды 45 МЛН