№ 4835 В разделах: Electronics
Programming
от February 10th, 2013,
В подшивках: Displays, Raspberry Pi
Intro
On the Internet a huge number of questions and not absolutely clear articles on connection of this display to Raspberry Pi through the shift register 74HC595. And if you find something, it will be written in rare Python or Ruby language which in real life practically aren’t used. My program is written on simple C. Fast and clear to any programmer. You can use it as you want. For example, to accept а line from stdin and send it to the display. To build project you’ll need to install WiringPi library.
Wiring
74HC595 | HD44780 |
---|---|
Q0 | DB7 |
Q1 | DB6 |
Q2 | DB5 |
Q3 | DB4 |
Q4 | RS |
Q5 | E |
VDD | A |
GND | K |
GND | VSS |
74HC595 | RPi |
---|---|
DS | GPIO17 |
ST | GPIO21 |
SH | GPIO22 |
VDD | 3.3V |
GND | GND |
On display: put RW to GROUND, put VDD to Raspberry Pi 5V, connect variable resistor (10-20 kOm) like in datasheet.
On 74HC595: put OE to GND, put MR to VDD.
Do not try to read 44780! Raspberry Pi is not 5V tolerant!
Download
https://git.blindage.org/21h/raspberry-pi-hd44780-via-74hc595
Video
Fortune cookie: I don't know why women get so upset, they have half the money and all the pussy. -- Gary Bussy, "DC Cab"
The download link is unfortunately offline!
thanks for bugreport. link corrected.