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.7k stars 1.17k forks source link

New Adafruit 32x64 4mm Panel not working on Raspberry PI #1452

Open resmithn opened 2 years ago

resmithn commented 2 years ago

I just purchased an Adafruit 32x64 4mm matrix panel. I have an existing setup: RaspberryPI 3B+ running Scrolling Sign [BigjBehr]. That works fine, been running for couple of years. When I tried the new panel on the existing setup all I get is scrambled lines. [Picture attached]. I tried the panel on an Arduino 2560 running simple scrolling script, works okay. Same with Adafruit Matrix Portal running OpenWeather, works okay. Contacted Adafruit support and they had no solutions and suggested this site. Also tried another Raspberry PI 3B+, downloaded RGB Matrix Master and Scrolling Sign programs, works okay with an existing 32x64 panel but not the new one. Adafruit support mentioned about Chips FM6126A and FM6127. The chips on the new panel have RUC7258D. Appreciate thoughts on how to resolve this issue. Thank You. 20220811_143757 20220729_114906 (2)

Elleo commented 2 years ago

Are you using an adafruit RGB matrix hat/bonnet? I had a similar issue because I wasn't selecting the adafruit-hat gpio mapping (e.g. with the demo: sudo ./demo --led-cols=64 --led-gpio-mapping=adafruit-hat -D 0

ZoyshM commented 2 years ago

Try changing the --led-row-addr-type. My panel was flickering and displaying complete gibberish but when I changed the addr type to 4 it worked perfectly.

resmithn commented 2 years ago

I am running the BigJBehr Scrolling Sign, in the samplebase.py only options are 0, 1 & 2. Thanks for your reply! self.parser.add_argument("--led-row-addr-type", action="store", help="0 = default; 1=AB-addressed panels;2=row direct", default=0, type=int, choices=[0,1,2])

On Wed, Aug 24, 2022 at 1:40 PM ZoyshM @.***> wrote:

Try changing the --led-row-addr-type. My panel was flickering and displaying complete gibberish but when I changed the addr type to 4 it worked perfectly.

— Reply to this email directly, view it on GitHub https://github.com/hzeller/rpi-rgb-led-matrix/issues/1452#issuecomment-1226038668, or unsubscribe https://github.com/notifications/unsubscribe-auth/AK4MZVW36QSA6WAIYBRKXDDV2ZNBRANCNFSM56MHO2ZQ . You are receiving this because you authored the thread.Message ID: @.***>

ZoyshM commented 2 years ago

I didn't realize the Python bindings supported one fewer choice for addr type. Try using addr type 4 for one of the C++ example demos and see if that works.

hzeller commented 2 years ago

The current code does contain the led-row-addr-type 4

https://github.com/hzeller/rpi-rgb-led-matrix/blob/5e3fb5f9fdc3d1f41e21dd4f46fa6bff0218d13a/bindings/python/samples/samplebase.py#L28

If you don't have this flag with that version, your repo is about 2 years old @resmithn (it was added in Feb 2020). If you git pull, you should have that option available.

ZoyshM commented 2 years ago

This makes a lot more sense, it is still not guaranteed to fix the issue but it is at least worth a shot.

resmithn commented 2 years ago

I upgraded the samplebase.py, changed the "--led-row-addr-type" to "4", still scrambled lines. I just purchased an Adafruit 32x64 5MM panel, that works okay on same RaspberryPI setup. Also got a couple off-brand 32x64 4mm panels from Amazon, e.g., "Waveshare" and "Azerone" and those work okay on same RPI setup. Adafruit sent a replacement 32x64 4mm panel and that one also has the same scrambled lines. Can only conclude there is something unique about the Adafruit 4mm panels that is causing the issue. Thanks to everyone for their replies and help.

resmithn commented 2 years ago

I have RPI's set up with both Hat and Bonnet. I can get the ./demo to run okay with a two year old Adafruit 32x64 panel, but plugging in the one I just purchased, I get scrambled lines as described. Same with Scrolling Sign [BigjBehr https://www.instructables.com/member/BigjBehr/], the old panel works okay, the new one has the scramble lines. Thanks for your reply.

On Thu, Aug 18, 2022 at 11:12 AM Mike Sheldon @.***> wrote:

Are you using an adafruit RGB matrix hat/bonnet? I had a similar issue because I wasn't selecting the adafruit-hat gpio mapping (e.g. with the demo: sudo ./demo --led-cols=64 --led-gpio-mapping=adafruit-hat -D 0

— Reply to this email directly, view it on GitHub https://github.com/hzeller/rpi-rgb-led-matrix/issues/1452#issuecomment-1219614697, or unsubscribe https://github.com/notifications/unsubscribe-auth/AK4MZVSOZOVJXKR4U5ZCFZ3VZZHFHANCNFSM56MHO2ZQ . You are receiving this because you authored the thread.Message ID: @.***>