hzeller / rpi-rgb-led-matrix

Controlling up to three chains of 64x64, 32x32, 16x32 or similar RGB LED displays using Raspberry Pi GPIO
GNU General Public License v2.0
3.63k stars 1.15k forks source link

Can I split 1 chain into #n rows of Panels ? #819

Open GeorgeFlorian opened 5 years ago

GeorgeFlorian commented 5 years ago

Hello !

I am currently using a Raspberry Pi Zero W V1.1. I am using it just to test things out until I get my hands on a Raspberry Pi 2 or 3.

I am using 64x32 1/8 Outdoor SMD P5 2727 LED Panels.

I am trying to have 60 LED Panels arranged as follows:

_P6_P5_P4_P3_P2_P1_Chain1_RaspBerryPi1
P11_P10_P9_P9_P8_P7_
_P6_P5_P4_P3_P2_P1_Chain2_RaspBerryPi1
_P11_P10_P9_P9_P8_P7
_P6_P5_P4_P3_P2_P1_Chain3_RaspBerryPi1
_P11_P10_P9_P9_P8_P7
_P6_P5_P4_P3_P2_P1_Chain1_RaspBerryPi2
_P11_P10_P9_P9_P8_P7
_P6_P5_P4_P3_P2_P1_Chain2_RaspBerryPi2
_P11_P10_P9_P9_P8_P7

Basically 10 rows with 6 panels each. My question is how can I make 1 chain to be on 2 rows and how can I tell one row to be 6 displays in length ?

Until now I've linked 4 displays in 1 chain on 1 row. How can I tell this chain to be on 2 rows and to be 2 panels in length ?

One last question: is it possible to have the above arrangement run by a single Raspberry Pi ?

This would mean 2 chains with 30 panels each.

_P6_P5_P4_P3_P2_P1_Chain1_RaspBerryPi1
_P11_P10_P9_P9_P8_P7_
_P17_P16_P15_P14_P13_P12_
_P23_P22_P21_P20_P19_P18_
P29_P28_P27_P26_P25_P24_
_P6_P5_P4_P3_P2_P1_Chain2_RaspBerryPi1
_P11_P10_P9_P9_P8_P7_
_P17_P16_P15_P14_P13_P12_
_P23_P22_P21_P20_P19_P18_
P29_P28_P27_P26_P25_P24_
Beersatron commented 5 years ago

I think you will need a Raspberry Pi 3 for this. I created a scoreboard that has 12 64x32 panels in two parallel chains.

My cmd is:

sudo /home/pi/rpi-rgb-led-matrix/examples-api-use/scoreboard -f /home/pi/rpi-rgb-led-matrix/fonts/10x20.bdf --led-pixel-mapper="U-mapper" --led-rows=32 --led-cols=64 --led-chain=6 --led-parallel=2 --led-show-refresh --led-slowdown-gpio=2 --led-pwm-dither-bits=2

This is the part that makes 6 chained panels into "2 rows of 3 panels": --led-pixel-mapper="U-mapper" --led-chain=6

GeorgeFlorian commented 5 years ago

I think you will need a Raspberry Pi 3 for this. I created a scoreboard that has 12 64x32 panels in two parallel chains.

My cmd is:

sudo /home/pi/rpi-rgb-led-matrix/examples-api-use/scoreboard -f /home/pi/rpi-rgb-led-matrix/fonts/10x20.bdf --led-pixel-mapper="U-mapper" --led-rows=32 --led-cols=64 --led-chain=6 --led-parallel=2 --led-show-refresh --led-slowdown-gpio=2 --led-pwm-dither-bits=2

This is the part that makes 6 chained panels into "2 rows of 3 panels": --led-pixel-mapper="U-mapper" --led-chain=6

Thank you for your answer.

For 6 panels on one row I will use the following, correct ?

--led-pixel-mapper="U-mapper" --led-rows=32 --led-cols=64 --led-chain=12 --led-parallel=3

Basically, with this I can split one chain just once, resulting in 3 chains with 12 panels each that will be split just once using the U-map. This means 36 panels.

I need 10 rows with 6 panels each, so 60 panels. This would mean that I will need a second Raspberry Pi 3 with another 2 chains with 12 panels each, for a total of 10 rows.

But can I compose the final image using two separate Raspberries ?

Also, is there any way I can use just one Raspberry ?

_P6_P5_P4_P3_P2_P1_Chain1_RaspBerryPi1
_P11_P10_P9_P9_P8_P7_
_P17_P16_P15_P14_P13_P12_
_P23_P22_P21_P20_P19_P18_
P29_P28_P27_P26_P25_P24_
_P6_P5_P4_P3_P2_P1_Chain2_RaspBerryPi1
_P11_P10_P9_P9_P8_P7_
_P17_P16_P15_P14_P13_P12_
_P23_P22_P21_P20_P19_P18_
P29_P28_P27_P26_P25_P24_
[<][<][<][<][<][<]-Chain1_RaspBerryPi1
[>][>][>][>][>][>]
[<][<][<][<][<][<]
[>][>][>][>][>][>]
[<][<][<][<][<][<]
[>][>][>][>][>][>]-Chain2_RaspBerryPi1
[<][<][<][<][<][<]
[>][>][>][>][>][>]
[<][<][<][<][<][<]
[>][>][>][>][>][>]

I would need to split 1 chain 4 times to make it into 5 rows of panels. How can I translate that into a cmd ?

--led-rows=32 --led-cols=64 --led-chain=30 --led-parallel=2 --led-pixel-mapper="S-shape"

Or maybe 3 chains:

_P6_P5_P4_P3_P2_P1_Chain1_RaspBerryPi1
_P11_P10_P9_P9_P8_P7_
_P17_P16_P15_P14_P13_P12_
P23_P22_P21_P20_P19_P18_
_P6_P5_P4_P3_P2_P1_Chain2_RaspBerryPi1
_P11_P10_P9_P9_P8_P7_
_P17_P16_P15_P14_P13_P12_
P23_P22_P21_P20_P19_P18_
_P6_P5_P4_P3_P2_P1_Chain3_RaspBerryPi1
_P11_P10_P9_P9_P8_P7_

How would the cmd look like ? I would be Chain 1 in an S-mapping, Chain 2 also in an S-mapping and Chain 3 in U-mapping

[<][<][<][<][<][<]-Chain1_RaspberryPi1
[>][>][>][>][>][>]
[<][<][<][<][<][<]
[>][>][>][>][>][>]
[<][<][<][<][<][<]-Chain2_RaspberryPi2
[>][>][>][>][>][>]
[<][<][<][<][<][<]
[>][>][>][>][>][>]
[<][<][<][<][<][<]-Chain3_RaspberryPi2
[>][>][>][>][>][>]

In this case I would need a way of choosing the mapping for each chain separately.

angelogoncalve commented 5 years ago

see this link and the issue: https://github.com/hzeller/rpi-rgb-led-matrix/pull/611

https://github.com/t413/rpi-rgb-led-matrix/tree/s-mapper

flag:

--led-pixel-mapper="S-mapper"

other way see this issue:

https://github.com/hzeller/rpi-rgb-led-matrix/issues/341

shanerooni commented 4 years ago

I think you will need a Raspberry Pi 3 for this. I created a scoreboard that has 12 64x32 panels in two parallel chains.

My cmd is:

sudo /home/pi/rpi-rgb-led-matrix/examples-api-use/scoreboard -f /home/pi/rpi-rgb-led-matrix/fonts/10x20.bdf --led-pixel-mapper="U-mapper" --led-rows=32 --led-cols=64 --led-chain=6 --led-parallel=2 --led-show-refresh --led-slowdown-gpio=2 --led-pwm-dither-bits=2

This is the part that makes 6 chained panels into "2 rows of 3 panels": --led-pixel-mapper="U-mapper" --led-chain=6

@Beersatron , I'm trying to also create a 12 panel 64x32 display. would you be able to walk me through some pointers? if possible, you can email me using the email on my profile. thanks!