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

The YL-3 is a 8×7 segment led display modules based on two 3461BS (4×7 segments) and is controlled by two 74HC595. You can buy the YL-3 module online at 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.


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:


Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert

Diese Website verwendet Akismet, um Spam zu reduzieren. Erfahre mehr darüber, wie deine Kommentardaten verarbeitet werden.