Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LED display 128x64 RPi4 RGB Matrix Hat problem #1504

Open
Tadont opened this issue Jan 26, 2023 · 24 comments
Open

LED display 128x64 RPi4 RGB Matrix Hat problem #1504

Tadont opened this issue Jan 26, 2023 · 24 comments

Comments

@Tadont
Copy link

Tadont commented Jan 26, 2023

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

VID_20230126_154303.mp4

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

@anandrajgupta
Copy link

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

@Tadont
Copy link
Author

Tadont commented Jan 26, 2023

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

@anandrajgupta
Copy link

anandrajgupta commented Jan 27, 2023

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

@Tadont
Copy link
Author

Tadont commented Jan 27, 2023

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

@Tadont
Copy link
Author

Tadont commented Jan 27, 2023

the chip that my rgb matrix uses: SM16169S

@anandrajgupta
Copy link

same chip #1015

@wata-net
Copy link

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

@Tadont
Copy link
Author

Tadont commented Jan 27, 2023

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

@wata-net
Copy link

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.

@Tadont
Copy link
Author

Tadont commented Jan 27, 2023

But for some reason it doesn't work

@wata-net
Copy link

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.

@andytheengineerguy
Copy link

@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.

@bsparacino
Copy link

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.

@andytheengineerguy
Copy link

@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..?! 😅

@bsparacino
Copy link

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.

@wata-net
Copy link

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

@andytheengineerguy
Copy link

@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?

@wata-net
Copy link

@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.

@bsparacino
Copy link

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

@andytheengineerguy
Copy link

@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 💪

@wata-net
Copy link

wata-net commented Jan 13, 2024

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

@andytheengineerguy
Copy link

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?

@wata-net
Copy link

@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.

@andytheengineerguy
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants