Sunday, May 08, 2011

LCD with Arduino

I was able to have my Arduino UNO communicate with a 128x64 LCD
I'm pleased with these initial results but still have a ways to go before I finish my primary programs to control the pumps and use this display to make changes on the fly.



TECHNICAL NOTES
(things I needed to look up before I could get everything up and running)

LCD + Arduino purchased from eBay
http://bit.ly/mat6Vv


Datasheets (from CD) downloaded to:
C:\Users\globalloonan\Desktop\Data\Arduino with 12864 LCD


PINOUTs (from readme.txt)
ATmega168/328  uses configuration file: ks0108_Arduino.h
LCD ARDUINO
CSEL1 14 // CS1 Bit   // swap with CSEL2 if left/right is reversed
CSEL2 15 // CS2 Bit
R_W 16 // R/W Bit
D_I 17 // D/I Bit
EN 18 // EN Bit

LCD data 0-3 8-11
LCD data 4-7 4-7


Arduino LCD playground | KS0108 Graphics LCD library
http://www.arduino.cc/playground/Code/GLCDks0108
I have Pinout B

1. Read Me from CD
UNO Arduino

2. http://www.arduino.cc/playground/Code/GLCDks0108
I have Pinout B

3. Use this schematic but default to text (#2)
http://www.arduino.cc/playground/uploads/Code/KS0108_wiring.jpg

4. REMOVE the RESET (otherwise code wont load).  Just leave it dangle

5. This LCD board is KS0108-type and a GLCD (Graphical LCD) as opposed to textual (Character Mode)
http://www.instructables.com/id/ST7565-LCDs-Graphical-LCDs/#step1

No comments: