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.


Make a robot friend with Adafruit’s CRICKIT – A Creative Robotics & Interactive Construction Kit. It’s an add-on to our popular Circuit Playground Express, FEATHER and other platforms to make and program robots with CircuitPython, MakeCode, and Arduino. Start controlling motors, servos, solenoids. You also get signal pins, capacitive touch sensors, a NeoPixel driver and amplified speaker output. It complements & extends your boards so you can still use all the goodies on the microcontroller, now you have a robotics playground as well.

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

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 — Fewer startups, and other collateral damage from the 2018 tariffs

Wearables — Light as a Worbla feather

Electronics — How to make your own magnetic field probe!

Biohacking — The State of DNA Analysis in Three Mindmaps

Python for Microcontrollers — One year of CircuitPython weeklies!

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.