Saturday, May 25, 2019

LCD Interfacing with Arduino

16X2 LCD interface with Arduino in various modes.

LCD Interfacing with Arduino

Liquid Crystal Display Tutorial

In This Post, I will tell How to operate LCD Display With the help Of Arduino.

Pin Configuration of LCD -
16x2 LCD



Collect The Following Components  -
  • Arduino Uno                           Buy on Amazone
  • 16x2 Display                          Buy on Amazone
  • 10 Kohm Potentiometer
  • BreadBoard
  • Jumper Wire


Follow This Steps -

(1) Make Connections According to the circuit diagram which given below.



LCD Without Backlight



(2) If you turn on the LCD Backlight so Connect the Last Pin Of LCD (LED - or K) To Ground And last Second Pin (LED + or A) to 5 Volt Pin Of Arduino.



LCD With backlight

(3) Download LiquidCrystal.h library to Click Here.
         
  After Download open Arduino ide Software. Then follow these steps -

  • Click on Sketch menu
  • Click on Include library option
  • Click on Add. Zip library option
  • Now choose the library. which you have downloaded after.
  • Now Press Open



(4) If the words are not clearly visible on the LCD. Or the LCD does not appear clean. So you can change the value of the potentiometer.


(5) Now we write something on LCD. For this, you copy the code given below and paste it on the Arduino software.
I am writing Eccircuit in If you say something else, write your message in place of the Eccircuit given in the code.

Code -



OUTPUT -


LCD PRINT ECCIRCUIT
You can just write 40 characters in a row. Only 16 of them will appear on LCD. If you type more than 40 letters, the remaining characters will be displayed in the second line of the LCD.

(6) If you want to write something in both lines of LCD, try the code below.
I Ec in the first line of LCD And the second line I am writing circuits. You can write any of your messages instead.

CODE -



OUTPUT -


PRINT ON BOTH LINE
(7) Send Message through Serial Monitor -

Code - 

Video - 


(8) Scrolling text Code Given Below - 

Scrolling Text Right To Left - 
Replace your message with "scrolling text right to left"
CODE -



Video -

Scrolling Text Left To Right -

CODE -




Video - 


(9) Sending a message from the serial monitor to the LCD which moves on the LCD.

Code-



Video -



If You Have any question or suggestion please comment below.


Thank You

Ankit jat

Author & Editor

I am working on new innovations, projects and ideas. which make our life easier and reliable. I like works that can take our current technology a step further.

2 comments:

  1. MNCs (Nairaland) casino and resort merger - DrmCD
    The MNCS (Nairaland) casino 의정부 출장안마 and resort merger is being 포천 출장마사지 considered 순천 출장마사지 by 인천광역 출장마사지 the Indian government as a positive 통영 출장마사지 opportunity.

    ReplyDelete
  2. Bitcoin works in not a dissimilar way to PayPal in that you have a digital wallet with a unique address where people can send you Bitcoins. You can simply install a wallet on your device, or you can download the full Bitcoin wallet and participate in the network as a node. fake bitcoin sender

    ReplyDelete