Arduino: Arduino LCD Tutorial

39
1



This short video looks at the different options available for connecting an LCD character display to an Arduino. It uses a wide set of displays: The nuelectronics display shield, 20×4, 20×2,16×2 and 8×2 display modules. It shows the code that you need to create an example display and describes the use of the POT in the display. The modules used are the nuelectronics display shield, JHD 204, WH1602, CM200200 and a YJ 802A. This experiment is part of an introductory module to Digital and Analogue Electronics at Dublin City University, Ireland:

Please note that the background wallpaper that is used in the logo image is from PJRC Electronic Projects, www.pjrc.com.

Nguồn: https://freecode.com.vn

Xem thêm bài viết khác: https://freecode.com.vn/phan-mem

39 COMMENTS

  1. Currently working on LCD displaying with my 16 hz arduino clone. Got the kit and everything and was happy to see the LCD screen in there! Anyways, I set up my circuit and software exactly like this website https://www.arduino.cc/en/Tutorial/HelloWorld?from=Tutorial.LiquidCrystal. When I plug in my circuit everything seems to work fine except I get the top row of the LCD screen with white boxes that dont seem to go away. I did a little research and apparently the issue is because the LCD isn't initialized properly? Which doesnt make sense since I'm using the example code. I can adjust the contrast of the screen just fine and I'm almost positive everything's connected correctly because I've torn apart the circuit 4 times and redid it and got the same error every single time. I was wondering if you could shed some light on this dilemma I'm having.

  2. Do you mind giving me a hand? I had the lcd working but now it prints a combination of Japanese English and what appear to  alienese symbols. I was having this issue before i had it working it seems i had the lcd wired wrong but this time i i haven't changed anything sense it worked. Anyone? I would greatly appreciate the help.

  3. Can you Help me? i need a code where when the arduino is on it will say Swipe! on the screen. Then when i press a button it will say welcome then will auto reset

  4. Could you please email me the code. I've been trying to crack the secret of the shield for a few days. Thanks, and have a nice day!

  5. Nice Video i try to learn about it. This video is a good example for learning by doing. Ok proberly i would like to see something about 7 segment leds and how to read out Offset-Datas from some Games like Falcon BMS 4.32 or the Microsoft Flight Simulator X because i dry to build some instruments for Radios but don' know how. get all the information to display that radios on a 7 segment display with 4 or more digits seems to be the hartest way on it ? Maybe you find a way how ?
    Thanks and nice day !

  6. HI I LOVE UR VIDS! please answer this for me.ive been learning a bit of arduino and c++ so how come we didn't use printf function? also what happen to namespace and stdio.h how come every thing looks different?

  7. Your code has a bug in it. A 16-character-string requires 17 character space. So, "char outputCount[16];" will give you a memory corruption whenever your program write to the sixteenth character. In your case, the problem would happen at itoa() and printIn().

  8. Looks like you've used (without permission) my 8051 development board schematic as the background image for your "DCU Engineering" intro.

  9. IMO there is too many displays shown, the code posted at 1:45 doesn't work. I have a screen with boxes as iMacPwn mentioned except mine are on the second line. If you had separated the various screens it may had been clearer to newbies such as myself. Seems to be a case of knowing too much to teach the basics. There are a lot of these on youtube. For myself I wanted the counting function of your display to sense a light that is draining a battery charged on my Bedini pulse oscillator.

  10. He says it exactly at 1:45 – 2.01. Everything you need to know, he mentions in the video. Watch it and pay attention.

  11. Fantastic and easy to follow video, many thanks, I feel ready to LCD to my projects. You dont do a video on the 4D OLED displays I have the 160 with connected to my Picaxe would like to use with Arduino?

  12. Can I use other I/O pins to the LCD? Because I want to use PWM also. And can I adjust frequency and duty cycle with PWM using buttons in arduino?

  13. Really nice video, it provides a good, solid foundation for beginners (…that frustrating time when you just can't get anything to work – I remember it!), with enough information to let people actually learn from what they're doing!

  14. The TX/RX pins are only used for serial communications. In the case of this example program, the only time the Arduino is going to be using those pins for that purpose is when uploading the program to the chip (as there is no serial data being sent/received in this program). When this happens, the bootloader firmware inside the Arduino multiplexes the pins for serial comms to let the file be uploaded, then lets the program do whatever with them after burning the it onto the chip.

  15. Double check your code and connections! 99% of the time its the connections that are the issue. Wire it up as per the LiquidCrystal "Hello World" example and run the example sketch to test your display (although it's very unlikely that your display itself has a problem)! The row of white blocks only on top indicates your contrast and all is fine, but the display isn't receiving the right signals. Once you get it up and running, play around with some of the other features of the device 🙂

  16. Double check your code and connections! 99% of the time its the connections that are the issue. Wire it up as per the LiquidCrystal "Hello World" example and run the example sketch to test your display (although it's very unlikely that your display itself has a problem)! Once you get it up and running, play around with some of the other features of the device 🙂

  17. mine suffers from the exact same problem. See the item at hobbyking. Tried lots of things, nothing so far has helped a thing.

  18. Help my lcd is a 16×2 blue and white and it only shows white blocks on the first line nothing else what do i do :/

  19. I bought an LCD like yours (just the lcd on the green board) for about 8 euros… I must try how to make it work someday

  20. @DerekMolloyDCU I really hoped you could give me some ideas on this, i want to make a hacked calculator with the arduino, looking like a normal calculator, but on the inside an Arduino, once pressing a code onto the calculator, you get into a game mode, or maby a notepad mode, so you can.. write secret stuff, or play games on it once your done with lets say, a test.

    Thanks in advance.
    Olaf.

LEAVE A REPLY

Please enter your comment!
Please enter your name here