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

“D is for Diode” – Circuit Playground Episode 4 is out now! CLICK HERE TO WATCH!

Have an amazing project to share? Join the SHOW-AND-TELL every Wednesday night at 7:30pm ET on Google+ Hangouts.

Join us every Wednesday night at 8pm ET for Ask an Engineer!

Learn resistor values with Mho’s Resistance or get the best electronics calculator for engineers “Circuit Playground”Adafruit’s Apps!



3 Comments

  1. watch this space :)

  2. 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.

  3. 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.