rpi-rgb-led-matrix icon indicating copy to clipboard operation
rpi-rgb-led-matrix copied to clipboard

LED display 128x64 RPi4 RGB Matrix Hat problem

Open Tadont opened this issue 2 years ago • 28 comments

Hello! I connect this LED screen using raspberry pi4 and RGB Matrix Hat. using config data. None of the examples run(Python, demo, led-image-viewer). would be grateful for help IMG_20230126_110417 IMG_20230126_113112 IMG_20230126_134718 photo_5373298417566073720_y

https://user-images.githubusercontent.com/123635181/214839035-d818547f-5356-4c44-a274-339f1b7ec16e.mp4

sudo ./led-image-viewer --led-cols=128 --led-rows=64 --led-gpio-mapping=adafruit-hat --led-slowdown-gpio=1

Tadont avatar Jan 26 '23 12:01 Tadont

1st --led-slowdown-gpio=5

2nd led image viewer will take image as an argument

3rd led multiplexing will have to be applied

etc...

put --help in the command line argument and you will get all possible options

anandrajgupta avatar Jan 26 '23 15:01 anandrajgupta

--led-slowdown-gpio=5 produced such a result. led multiplexing doesn't change anything. Maybe some more advice? photo_5373298417566074000_y

Tadont avatar Jan 26 '23 16:01 Tadont

i think it is --led-gpio-mapping issue, you might need to choose something else because the content is not being drawn at all!

moreover, led multiplexing command is --led-multiplexing=x where x = 0 to 17 digit

anandrajgupta avatar Jan 27 '23 02:01 anandrajgupta

@anandrajgupta, Unfortunately, none of the above settings help.

Tadont avatar Jan 27 '23 07:01 Tadont

the chip that my rgb matrix uses: SM16169S

Tadont avatar Jan 27 '23 11:01 Tadont

same chip https://github.com/hzeller/rpi-rgb-led-matrix/issues/1015

anandrajgupta avatar Jan 27 '23 14:01 anandrajgupta

Thank you for letting me know the model number of the driver IC. According to the datasheet, "SM16169SD is a high-brush constant-current drive chip using SM-PWM protocol. It has a built-in 8K SRAM memory, which can store a complete frame of display data, and supports 2~16 scan LED display screens to store and display the entire frame of data." So this library probably does not support SM16169S. I don't know if it's correct, but I tried to find out how to initialize the SM16169. (I'm assuming RT5958 because I'm not sure about the row driver.) I hope someone sees this and responds... 1

wata-net avatar Jan 27 '23 14:01 wata-net

@wata-net DP7268 number of the second chip on the panel

Tadont avatar Jan 27 '23 14:01 Tadont

Judging from the model number DP7268, it is probably a product of "德普微电子". But I couldn't find out the details. The model number is similar to TC7258, so it may be the same product. By the way, TC7258 is a normal 3 to 8-Line Decoder, so no special settings should be required.

wata-net avatar Jan 27 '23 14:01 wata-net

But for some reason it doesn't work

Tadont avatar Jan 27 '23 15:01 Tadont

The DP7268 does not require any special settings, but the SM16169 requires a special initialization procedure. If the DP7268 works fine and the SM16169 does not, the LED panel will light up but the correct image will not be displayed. Both DP7268 and SM16169 need to work properly to display correct image.

wata-net avatar Jan 27 '23 15:01 wata-net

@Tadont or @wata-net, did you ever find out how to initialize the SM16169SH?

I am facing the same problem now. I have translated the datasheet into English, and in general, I understand it. But I'm yet to figure out how this library does the 'initialization sequence' of the panel.

andytheengineerguy avatar Jan 04 '24 04:01 andytheengineerguy

I keep running into this issue too, manufacturers keep updating their modules with SM16169SH chips and I can't use them. I have 4 different modules right now with this chip that I can't use. I will send a monetary reward to whoever comes up with a solution.

bsparacino avatar Jan 10 '24 02:01 bsparacino

@bsparacino I feel you!!! I have a lot invested in this library and the project I am basing it on. I am very willing to compensate whoever solves this too. @hzeller is this cheeky to ask? Could you be this person..?! 😅

andytheengineerguy avatar Jan 10 '24 22:01 andytheengineerguy

And now I just got an order of 400+ modules in with ICND2153AP chips, of course the manufacturer changed the design from our previous order and didn't tell us. Now I have a pile of rocks I can't use.

bsparacino avatar Jan 10 '24 22:01 bsparacino

I don't have an SM16169 panel, so I can't confirm the operation. Has anyone tried the previously posted analysis results?

wata-net avatar Jan 10 '24 23:01 wata-net

@wata-net thank you for posting the analyses results - personally, this is beyond my skill level in terms of firmware development. Do you know anyone who could translate your analyses into a C initialization sequence to integrate into this library?

andytheengineerguy avatar Jan 10 '24 23:01 andytheengineerguy

@andytheengineerguy Sorry, I don't know. If I'm lucky enough to get an SM16169 panel, I'll report back. Since only STM32 can be used, I plan to check the operation with STM32.

wata-net avatar Jan 12 '24 12:01 wata-net

@wata-net I have SM16169 panels, I can mail you a couple to test. I'm in the US.

bsparacino avatar Jan 12 '24 15:01 bsparacino

@bsparacino and @wata-net I also have spare SM16169 panels that I'm willing to ship. Let me know if I can be of any use here 💪

andytheengineerguy avatar Jan 12 '24 22:01 andytheengineerguy

I have uploaded the HUB75 driver project file for NUCLEO-F446RE. https://drive.google.com/file/d/10cotodkM1iLoY0CljS72_RwHh7dI84Kq/view?usp=sharing Please load it into STM32CubeIDE and use it. Compatible driver chips are SM16380, ICND2153, and SM16169. SM16380 and ICND2153 have been confirmed to work. Could someone please confirm the operation of SM16169?

Please specify the number of pixels of the LED panel in lines 230 to 236 of main.c. Also, specify the type of driver chip on line 309.

Everything is written in main.c. Please decipher. However, my coding skills are crap. please forgive me.

If you do not want to convert the level of the output of NUCLEO-F446RE, please set the power supply voltage of the LED panel to 4V. This is very important.

I am in Japan. Thank you for suggesting sending LED panels. However, it costs money, so I would like someone to try the above project file.

ICND2153_test Pin assign

wata-net avatar Jan 13 '24 16:01 wata-net

Hi @wata-net, thank you for sharing this. I have ~intermediate experience with both the Nucleo and STM32CubeIDE. I have used them both at work, but do not own any Nucleos at home. However, with a bit of time and some guidance from you, I'm confident I could test this.

Some questions:

  1. Is there any way you could adapt this code to a fork of the rpi-rgb-led-matrix so that I can test it directly on RPi hardware? If not, no worries, I would be willing to buy a Nucleo to test your code. Let me know.
  2. Just curious - you mention the compatible driver chips as SM16380, ICND2153, and SM16169, SM16380 and ICND2153. Is it because they all share the same initialization sequence?

andytheengineerguy avatar Jan 16 '24 04:01 andytheengineerguy

@andytheengineerguy

  1. I've never used a raspberry pi. I hope someone does it.

  2. These three driver chips are electrically the same, but there are some differences. For example, the control commands to send, the number and contents of configuration registers, the number of GCLK pulses, etc. These three were successfully controlled by analyzing signals from commercially available controllers.

wata-net avatar Jan 16 '24 11:01 wata-net

@wata-net ok, no problem. I just bought a Nucleo. I'll let you know how it goes

andytheengineerguy avatar Jan 16 '24 16:01 andytheengineerguy