Skip to main content

Working with Raspberry Pi

Working with Raspberry Pi 4B/5

Required Components

  • RGB-Matrix-P4-80x40 (included in this product)
  • 2 × 8PIN 2.54mm pitch cable (included in this product)
  • Raspberry Pi 4B or Raspberry Pi 5 (must be purchased separately)
  • 5V external power supply (it is recommended to reserve sufficient current based on the number of panels; must be purchased separately)

Hardware Connection

The Raspberry Pi supports up to 3 ways of connecting to LED matrix panels via shared connections. For ease of wiring, this document uses a unified numbering scheme:

  • [1]: Panel 1 wiring group
  • [2]: Panel 2 wiring group
  • [3]: Panel 3 wiring group

Note: [1], [2], and [3] represent three independent panel wiring groups, not three completely different interface standards; some control pins are common signals.

If only one panel is connected, you only need to connect the pins marked [1] and the common pins. The diagram below shows the 16Pin ribbon cable connection:

Signal (Odd Pin)PinPinSignal (Even Pin)
-12-
[3] G134-
[3] B156GND [1][2][3]
LAT/STB [1][2][3]78[3] R1
-910E [1][2][3]
CLK [1][2][3]1112OE [1][2][3]
[1] G11314-
A [1][2][3]1516B [1][2][3]
-1718C [1][2][3]
[1] B21920-
[1] G22122D [1][2][3]
[1] R12324[1] R2
-2526[1] B1
-2728-
[2] G12930-
[2] B13132[2] R1
[2] G23334-
[2] R23536[3] G2
[3] R23738[2] B2
-3940[3] B2

Hardware Connection

  • Install and run the Raspberry Pi OS (Raspbian bullseye)
  • After completing the 16PIN wiring according to the table above, connect the 5V power supply to the screen

Software Settings

Operation Result

Code Description