Using a 16x2 LCD Display with a Raspberry Pi

rdagger68 · 417K views · 2014 · 12:19

Open on YouTube

Embedded systems & DIY electronicsElectronics & circuit designtutorial

Why Raspberry Pi Stack Exchange recommends it

Raspberry Pi Stack Exchange askers cite it as the wiring and code tutorial they followed when building or debugging 16x2 and 20x4 LCD projects.

Recommended by 0 people across 0 different months, 2015 to 2017.

What it is

A 12-minute tutorial by rdagger68 showing how to wire a 16x2 character LCD to a Raspberry Pi's GPIO pins and drive it from Python. Written notes and the full code are hosted on the author's website.

What people said

Cites Pas · 2015-06 · Raspberry Pi Stack Exchange · on “LCD(20x4) module with 2 sensors”

I'm using DHT22 and BMP180 to mesure temperature, pressure and humidity. I connected DHT22 to pin1(3.3V), pin7(GPIO4) and pin9(GND); and BMP108 to pin3(GPIO2), pin5(GPIO3), pin6(GND), pin17(3.3V). I want to connect 20x4 LCD display, but I've already used both 3.3V pins, I'm following this [this video] tutorial. So if I put resistor to 5V pin and convert it to 3.3V would that work? Thanks!

Cites Shiladitya Bose · 2015-09 · Raspberry Pi Stack Exchange · on “Problem with LCD display programming”

I am working on a simplest project of driving LCD display with raw GPIO pins without the use of any I2C interface. The Tutorial I followed is given in the link below. [this video] I have a Rpi model B+ and a 16x2 LCD module. The pin connections are exactly the same as described in the video. The code is given here : [LINK] I am accessing Rpi with ssh. Whenever I try to run the program it gives these strings of warning messages. pi@raspberrypi ~/lcd $ sudo python lcd.py lcd.py:98: RuntimeWarning: This channel is already in use, continuing anyway. Use GPIO.setwarnings(False) to disable warnings. GPIO.setup(LCD_E, GPIO.OUT) # E lcd.py:99: RuntimeWarning: This channel is already in use, continuing an

Cites NEO · 2017-02 · Raspberry Pi Stack Exchange · on “Smokes from potentiometer when trying the LCD project pi-3”

The smoke comes out of the potentiometer after I run a python program to display something and adjust the knob of potentiometer to change the contrast. It seems that the smoke comes even if there is not dht11. I followed this tutorial to wire it up: [this video]