In the following section we are going to see how to use the lcd display with a microcontroller and also see the basic of the lcd over here by making a simple shield for the arduino or by making the simple breakout board for the lcd to the arduino

Step 1: Watch the Video

Step 2: Basics of the LCD

The basic data of the 16x2 lcd are given by

• 5 x 8 dots with cursor

• Built-in controller (KS 0066 or Equivalent)

• + 5V power supply (Also available for + 3V)

• 1/16 duty cycle

• B/L to be driven by pin 1, pin 2 or pin 15, pin 16 or A.K (LED)

• N.V. optional for + 3V power supply

And the pin diagram of the lcd is given in the pitcures above and the functions of the pins are also given above with each pin defination

Step 3: Creating the Basic Shield for the LCD to Work

by using the following circuit diagram of the shield making for LCD and as you have already watched the video you will get some basic idea about the circuit diagram of the lcd and their connections

The pins which we are going to use to connect it to any external microcontroller or microprocessor







Step 4: Connecting to Arduino

To make the LCD to work with there is one missing component that is microcontroller that could be any like the 8086 or pic microcontroller in my case i have used a arduino uno

The pins which are being used in the following session are

Arduino pins LCD pins

12 RS

11 E

5 DB4

4 DB5

3 DB6

2 DB7

connect all the following wires to the arduino and the LCD

Step 5: Uploading the Code to Arduino

To fetch the sketch to the arduino you need to open the arduino ide and then you can follow the example code as

file-example-liquid_crystal-hello world

from the liquid crystal library to test the module the hello world example will be the best one

there are certain commands for the lcd and the arduino which are given in the arduino website

the link to the liquid crystal refrences


Step 6: Thanks for Watching



thanks for the support

<p>This looks like what I've done this morning in my Instrumentation laboratory!<br>Nice</p>
<p>thanks and yes it was done in the morning only XD</p>
I used this code:<br><br>#include <br><br>LiquidCrystal screen(12,11,5,4,3,2);<br>byte acento[7] = {B00001, B00010, B00000, B01110, B10001, B10001, B01110};<br>int x=0, y=-5;<br><br>void setup() {<br> // put your setup code here, to run once:<br> screen.begin (16,4);<br> screen.createChar(0,acento);<br><br>}<br><br>void loop() {<br> // put your main code here, to run repeatedly:<br> screen.setCursor(x,0);<br> screen.print(&quot;Universidad Aut&quot;);<br> screen.write(byte(0));<br> screen.print(&quot;noma &quot;);<br> screen.setCursor(y,1);<br> screen.print(&quot; de Baja California&quot;);<br><br> x--;<br> y++;<br><br> if(x==-20){<br> x=0;<br> }<br> if(y==15){<br> y=-5;<br> }<br><br> delay(500);<br> screen.clear();<br><br>}
<p>great work and thanks for posting it back as feedback</p>
<p>I don't think you used a single period...</p>
<p>not really but it took 6-7 hours of work </p>

About This Instructable




More by KJ ELECTRONICS: SOLDERING FUME !! EXTRACTOR !! DIY!! USB Led Flash Stick   VU METER (Part-2) Using LM-3914 & LM-3915 
Add instructable to: