0

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.


Join 4,000+ makers on Adafruit’s Discord channels and be part of the community! http://adafru.it/discord

Learn “How Computers Work” with Bill Gates, Ladyada and more – From Code.org !

CircuitPython in 2018 – Python on Microcontrollers is here!

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!

Follow Adafruit on Instagram for top secret new products, behinds the scenes and more https://www.instagram.com/adafruit/


Maker Business — Looking back at Electric Objects, a postmortem of a hardware startup #makerbusiness

Wearables — Don’t be wooden

Electronics — Here’s the low-down on inductive loads

Biohacking — Muse EEG Utilities for Capture, Conversion and Visualization of Brain Waves

Python for Microcontrollers — CircuitPython 3.0.0 Alpha 4 Released!

Get the only spam-free daily newsletter about wearables, running a "maker business", electronic tips and more! Subscribe at AdafruitDaily.com !



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.