DIY 8x2 LCD Shield: Created by Lady Ada
DIY 8x2 LCD Shield: Created by Lady Ada
DIY 8x2 LCD Shield: Created by Lady Ada
Guide Contents 2
Overview & Parts 3
Parts 3
Check Out the Pins 4
Headers and Wiring 6
Wiring the LCD 7
Using the LCD Shield 10
Arduino Sketch 10
Parts
Aside from the parts offered available from Adafruit, you will need to source the LCD yourself. Parallel LCDs come in a
couple different sizes, from 16 characters, 1 line (16x1) to 24 characters, 4 lines (24x4).
In this tutorial I use the 16x2 Picvue from Jameco (https://adafru.it/aIJ) because thats what was I had in my box of stuff,
but you can easily adapt it for any other LCD. The wiring may differ a little bit but that will be covered.
Look closely at the header for the numbers that show which pins are which. In this model, the first pin is at the top
right, the second pin is top left, etc till pin 14 in the bottom left.
When the LCD is flipped over, the pinout will be mirrored, to help me keep track of it, I made a diagram:
1 2
3 4
Whatever your pinout is, make sure you have a diagram written out since you will need to refer to it many times!
OK now that we are diagrammed out, I took the protoshield and soldered 2 7-pin headers at one end of the pcb. Note
that they are not all the way to the edge, I left one row of holes so I could easily solder some wires. I also soldered a
short piece of header (that comes with the shield kit) at the left so that the LCD will be propped up.
1 (D7) 2 (D6)
3 (D5) 4 (D4)
5 6
7 8
9 (ENABLE) 10 (R/W)
11 (RS) 12 (CONTRAST)
13 (GND/VSS) 14 (+5V/VDD)
There's a lot of wiring to be done but we're going to go thru it very slowly so it shouldn't be too bad.
Next are the two power wires. Parallel LCDs run off of
+5V so you can just solder the Vcc wire to 5V and the
ground wire to GND.
Theres another control line called R/W that you can use
to control whether you're reading or writing to the LCD.
Since we'll just be writing, that pin can be connected to
ground, saving another arduino pin.
Make sure you finish up the rest of the shield so you can plug it into an arduino. At least solder in the male headers.
Make sure you tweak the contrast potentiometer, if the contrast is all the way down you may not see anything.
Arduino Sketch
Now we must upload some sketch to the Arduino to talk to the LCD. Luckily the LiquidCrystal library is already built in.
So we just need to load one of the examples and modify it for the pins we used.
If you've changed the pins, you'll want to make a handy table so you can update the sketch properly.
Now we'll need to update the pins. Look for this line:
Now you can compile and upload the sketch, adjusting the contrast if necessary. (The image below is from a different
fruity sketch but it will look similar).