Advertisement

Quick Links

Adafruit 16x2 Character LCD + Keypad for Raspberry Pi
Created by lady ada
Last updated on 2014-07-24 04:15:09 AM EDT

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the i2c 16x2 RGB Pi Plate and is the answer not in the manual?

Questions and answers

Summary of Contents for Adafruit Industries i2c 16x2 RGB Pi Plate

  • Page 1 Adafruit 16x2 Character LCD + Keypad for Raspberry Pi Created by lady ada Last updated on 2014-07-24 04:15:09 AM EDT...
  • Page 2: Table Of Contents

    7) Raspberry Pi Plate Header 8) Bumper Additional Assembly Model B+ Protection Usage Setting up your Pi for I2C Using the example Python code Testing the Library Adjusting Contrast Using the library code Download https://learn.adafruit.com/adafruit-16x2-character-lcd-plus-keypad-for- © Adafruit Industries Page 2 of 32 raspberry-pi...
  • Page 3: Overview

    Unfortunately, these LCDs do require quite a few digital pins, 6 to control the LCD and then perhaps another 3 to control the RGB backlight for a total of 9 pins. That's nearly all the GPIO available on a Raspberry Pi! https://learn.adafruit.com/adafruit-16x2-character-lcd-plus-keypad-for- © Adafruit Industries Page 3 of 32 raspberry-pi...
  • Page 4 RTCs, etc and have them share the I2C bus. This is a super slick way to add a display without all the wiring hassle. https://learn.adafruit.com/adafruit-16x2-character-lcd-plus-keypad-for- © Adafruit Industries Page 4 of 32 raspberry-pi...
  • Page 5 If you want plug in a Cobbler or Gertboard at the same time, check out our Stacking Header, you can fit an IDC cable over it if the Plate is assembled with this part. (http://adafru.it/1112) https://learn.adafruit.com/adafruit-16x2-character-lcd-plus-keypad-for- © Adafruit Industries Page 5 of 32 raspberry-pi...
  • Page 6: Parts List

    PCB, it is a 1/4W 5% 330 ohm resistor (Orange Orange Brown Gold). 2) Potentiometer There is one 10k trim potentiometer. This part will go in the spot labeled Contrast 3) Pushbuttons https://learn.adafruit.com/adafruit-16x2-character-lcd-plus-keypad-for- © Adafruit Industries Page 6 of 32 raspberry-pi...
  • Page 7: I2C Port Expander Chip

    Yo ur LCD may have 16 pins (Mo no chro me) o r 18 pins (RGB) and may have 2 ro ws o f co nnecto rs o r o ne. This is no rmal and do es no t affect the display https://learn.adafruit.com/adafruit-16x2-character-lcd-plus-keypad-for- © Adafruit Industries Page 7 of 32 raspberry-pi...
  • Page 8 Yo u can also use 16x2 LCDs that are the same size that do no t have an RGB backlight, o r have no backlight at all. We carry Negative type (http://adafru.it/399) Positive type (http://adafru.it/398) LCDs as well as Blue and White LCDs (http://adafru.it/181) https://learn.adafruit.com/adafruit-16x2-character-lcd-plus-keypad-for- © Adafruit Industries Page 8 of 32 raspberry-pi...
  • Page 9: Assembly

    Bend the resistor into a 'staple' and slide it into the slot marked GREEN on the PCB. Resistors do not have a direction so you can put it in 'either way' and it'll work find. https://learn.adafruit.com/adafruit-16x2-character-lcd-plus-keypad-for- © Adafruit Industries Page 9 of 32 raspberry-pi...
  • Page 10 2 or 3 seconds, then dip the end of the solder into the heated joint to melt it Then remove the solder and the soldering iron. https://learn.adafruit.com/adafruit-16x2-character-lcd-plus-keypad-for- © Adafruit Industries Page 10 of 32 raspberry-pi...
  • Page 11 This keeps them from shorting to something else. Use diagonal or flush cutters to clip the wires right above where the solder joint ends. https://learn.adafruit.com/adafruit-16x2-character-lcd-plus-keypad-for- © Adafruit Industries Page 11 of 32 raspberry-pi...
  • Page 12 The two 220 ohm resistors RED and BLUE - named because they are the backlight series resistors for the RGB backlights on the LCDs. These resistors are colored Red Red Bro wn Go ld. https://learn.adafruit.com/adafruit-16x2-character-lcd-plus-keypad-for- © Adafruit Industries Page 12 of 32 raspberry-pi...
  • Page 13 Solder the resistors just like you did with the first one. https://learn.adafruit.com/adafruit-16x2-character-lcd-plus-keypad-for- © Adafruit Industries Page 13 of 32 raspberry-pi...
  • Page 14 All the buttons are the same, and they should snap nicely into place. Press down onto each button until it snaps in and sits flat against the PCB. https://learn.adafruit.com/adafruit-16x2-character-lcd-plus-keypad-for- © Adafruit Industries Page 14 of 32 raspberry-pi...
  • Page 15 We recently adjusted the kit so the butto ns are o n the RIGHT side instead o f the left. The butto ns snap in the same but they're o n the right https://learn.adafruit.com/adafruit-16x2-character-lcd-plus-keypad-for- © Adafruit Industries Page 15 of 32 raspberry-pi...
  • Page 16 Flip over the PCB and check that all the legs for the buttons are sticking out. Solder each leg, taking care not to accidentally 'short' two button legs together. The ones for the directional pads are very close! https://learn.adafruit.com/adafruit-16x2-character-lcd-plus-keypad-for- © Adafruit Industries Page 16 of 32 raspberry-pi...
  • Page 17 First, use a flat table to carefully bend the legs of the chip so they are parallel. Then slip it into https://learn.adafruit.com/adafruit-16x2-character-lcd-plus-keypad-for- © Adafruit Industries Page 17 of 32 raspberry-pi...
  • Page 18 Once you are sure, press the chip into place We recently adjusted the kit so the chip is more to the left, its the same alignment, just shifted over https://learn.adafruit.com/adafruit-16x2-character-lcd-plus-keypad-for- © Adafruit Industries Page 18 of 32 raspberry-pi...
  • Page 19 Flip over the PCB and solder in the 28 pins of the port expander. https://learn.adafruit.com/adafruit-16x2-character-lcd-plus-keypad-for- © Adafruit Industries Page 19 of 32 raspberry-pi...
  • Page 20 Ethernet jack. On kits where the buttons are on the right, put it right next to the buttons (it shouldnt overlap any button legs) sitting flat https://learn.adafruit.com/adafruit-16x2-character-lcd-plus-keypad-for- © Adafruit Industries Page 20 of 32 raspberry-pi...
  • Page 21 Place the 2x13 header onto your Pi, and slide the plate on top, it should fit perfectly. https://learn.adafruit.com/adafruit-16x2-character-lcd-plus-keypad-for- © Adafruit Industries Page 21 of 32 raspberry-pi...
  • Page 22 If not, heat up the joint with one hand while stabilizing with the other until its right. Then solder the other 25 pins https://learn.adafruit.com/adafruit-16x2-character-lcd-plus-keypad-for- © Adafruit Industries Page 22 of 32 raspberry-pi...
  • Page 23 18, fo r a blue&white yo u'll need 16 Place the header into the remaining slot with the long ends of the pins sticking UP. If you have only 16 pins, leave the two rightmost pads empty https://learn.adafruit.com/adafruit-16x2-character-lcd-plus-keypad-for- © Adafruit Industries Page 23 of 32 raspberry-pi...
  • Page 24 LCD we do no t use the bo tto m ro w, just co ntinue using the LCD as it will fit just fine! The LCD should 'snap' in against the buttons Solder all the pins! https://learn.adafruit.com/adafruit-16x2-character-lcd-plus-keypad-for- © Adafruit Industries Page 24 of 32 raspberry-pi...
  • Page 25: Model B+ Protection

    USB ports and short out. See the steps below for more details. Model B+ Protection https://learn.adafruit.com/adafruit-16x2-character-lcd-plus-keypad-for- © Adafruit Industries Page 25 of 32 raspberry-pi...
  • Page 26 2 USB po rts) yo u can skip this step and mo ve o n. Yo u o nly need to add this tape if yo u're using a Raspberry Pi mo del B+, the Pi with 4 USB po rts. https://learn.adafruit.com/adafruit-16x2-character-lcd-plus-keypad-for- © Adafruit Industries Page 26 of 32 raspberry-pi...
  • Page 27 That's it! You're done soldering, now you just have to run the code in the Usage section next. https://learn.adafruit.com/adafruit-16x2-character-lcd-plus-keypad-for- © Adafruit Industries Page 27 of 32 raspberry-pi...
  • Page 28: Usage

    7-bit I2C address, this library has a great little tool to help you find it: sudo i2cdetect -y you are using a version Raspberry sudo i2cdetect -y you are using a version Raspberry https://learn.adafruit.com/adafruit-16x2-character-lcd-plus-keypad-for- © Adafruit Industries Page 28 of 32 raspberry-pi...
  • Page 29: Using The Example Python Code

    (ex. "/home/pi"): sudo apt-get update sudo apt-get install build-essential python-dev python-smbus python-pip git sudo pip install RPi.GPIO git clone https://github.com/adafruit/Adafruit_Python_CharLCD.git Adafruit_Python_CharLCD sudo python setup.py install Testing the Library https://learn.adafruit.com/adafruit-16x2-character-lcd-plus-keypad-for- © Adafruit Industries Page 29 of 32 raspberry-pi...
  • Page 30: Adjusting Contrast

    You can find a more detailed write-up of the library in this character LCD guide (http://adafru.it/dKa) (see the Usage and Raspberry Pi Char LCD Plate pages). https://learn.adafruit.com/adafruit-16x2-character-lcd-plus-keypad-for- © Adafruit Industries Page 30 of 32 raspberry-pi...
  • Page 31 © Adafruit Industries Page 31 of 32 raspberry-pi...
  • Page 32: Download

    Download Adafruit's Pi Python codebase (http://adafru.it/aOg) Check the Usage page for how to install the example python code directly from your Pi using git. © Adafruit Industries Last Updated: 2014-07-24 04:15:24 AM EDT Page 32 of 32...

Table of Contents

Save PDF