How to use YL-3 (a 8x7 Segment LED display) with Raspberry Pi

  • Posted on: 6 October 2015
  • By: robin
YL-3 Display with 74HC595

The YL-3 is a 8x7 segment led display modules based on two 3461BS (4x7 segments) and is controlled by two 74HC595. You can buy the YL-3 module online at dx.com. The 74HC595 is a 8-Bit serial shift register which i liked a lot because it was the first time for me to work with it. The principal I learned from this Video by Lewis Loflin and i can pretty much recommend it.

There is sample code for running the YL-3 with Arduino, but I could not find any Raspberry Pi examples. Three hours and a lot of debugging and fighting with the shifting later ... I made up my own example for Raspberry Pi and published it for you on github.

[[{"type":"media","view_mode":"media_large","fid":"16","attributes":{"alt":"","class":"media-image","height":"360","typeof":"foaf:Image","width":"480"}}]]

You simply need to wireup the module with the PI. The GPIO pins I used are are shown in the image below:
 [[{"type":"media","view_mode":"media_large","fid":"18","attributes":{"alt":"","class":"media-image","height":"173","style":"font-size: 13.008px; line-height: 1.538em;","typeof":"foaf:Image","width":"480"}}]]

Hint: If you still using a old Raspberry Pi Rev1, GPIO 27 is called GPIO 21.

Here is how you control a 7 segment:

[[{"type":"media","view_mode":"media_large","fid":"19","attributes":{"alt":"","class":"media-image","height":"360","typeof":"foaf:Image","width":"480"}}]]

topic: 
Raspberry Pi, 74HC595, display
Field: