Raspberry Pi LCD 16x2 Display

Needed

1. Raspberry Pi
2. 16x2 LCD display 202A-D REV.A
3. Cables
4. Recommend install Raspbian

 

Schematic

 

 

 

Pictures on Display

 

 

 

 

 

 

 

 

 
 
 
 
Upgrade distribute (required for RPi.GPIO 0.3.1a) 
 
$ sudo apt-get install python-dev
 
$ sudo apt-get install python-setuptools
 
$ sudo apt-get install unzip
 
Download and test display
 
 
$ unzip KMTronic_CharLCD.zip
$ chmod +x KMTronic_CharLCD.py
$ sudo KMTronic_CharLCD.py
 
 
 
 
You can test the wiring from the previous step by simply running the KMTronic_CharLCD.py
python code, as it has a little code it in that will simply display a test message when wired
correctly
 
If you're using a Version 2 Raspberry Pi, pin #21 has been replaced with pin #27 so edit
KMTronic_CharLCD.py and change:
 
def __init__(self, pin_rs=25, pin_e=24, pins_db=[23, 17, 21, 22], GPIO = None):
 
to 
 
def __init__(self, pin_rs=25, pin_e=24, pins_db=[23, 17, 27, 22], GPIO = None):

 

Read 7799 times