August 17, 2012 AT 7:31 pm

Tutorial: Drive a 16×2 LCD with the Raspberry Pi #piday #raspberrypi @Raspberry_Pi

Img 5694

Adafruit 274

Tutorial: Drive a 16×2 LCD with the Raspberry Pi @ The Adafruit Learning System – Adding a LCD to any project immediately kicks it up a notch. This tutorial explains how to connect a inexpensive HDD44780 compatible LCD to the raspberry pi using 6 GPIOs. While there are other ways to connect using I2C or the UART this is the most direct method that get right down to the bare metal.

This technique:

  • allows for inexpensive LCDs to be used
  • does not require any i2c drivers
  • won’t steal the only serial port on the Pi

The example python code sends date, time and the ip address to the display. If you are running a Pi in headless mode being able to determine the IP address at a glance is really handy.

Then we take the tutorial to the next level, showing you how to have the display code launch when the Pi boots so it’s always on. Finally, we also show how you can update your timezone so that the displayed time is correct for your region.

Learn more!


Each Friday is PiDay here at Adafruit, be sure to check out our posts, tutorials and new Raspberry Pi related products. Have you tried the new “Adafruit Raspberry Pi Educational Linux Distro” ? It’s our tweaked distribution for teaching electronics using the Raspberry Pi.

Related

4 Comments

  1. I’m getting a bit tired of all these posts about the Raspberry Pi (and a bit mad) since the thing is so unobtainium at the moment. The only way to get one right now is to go on Ebay and pay 2-4 times what the thing is worth.

  2. watch this space :)

  3. Don’t tell me. you are going to stock it? grr … just when my parents have returned back from the US.

    I have 3 pis on order from three different countries, no cigar.

  4. Good tutorial, just set it up. I added psutil so I can alternate between IP address and CPU/MEM usage on the bottom. I added another potentiometer to pin 15 also so I can adjust the backlight brightness. May add some other info later, but pretty happy with it for now. Thanks

Sorry, the comment form is closed at this time.