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 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″}}]]

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.