mrcodetastic / ESP32-HUB75-MatrixPanel-DMA

An Adafruit GFX Compatible Library for the ESP32, ESP32-S2, ESP32-S3 to drive HUB75 LED matrix panels using DMA for high refresh rates. Supports panel chaining.
MIT License
899 stars 201 forks source link

question about sm16208SJ chips #507

Closed burgessa23 closed 6 months ago

burgessa23 commented 10 months ago

I have a 64x64 panel that has sm16208SJ chips. Are these supported? Or same issue as sm1620B?

Thanks

board707 commented 9 months ago

The driver sm16208SJ is supported. However, to confirm that your panel will work, we need to know the type of the second driver as well as such a parameter as the “number of scans”

orrious commented 8 months ago

I can confirm that 64x64 panel with SM16208S work as well

orrious commented 8 months ago

I can confirm that 64x64 panel with SM16208S work as well

I'm going to amend my prior comment. There must be a breaking change or PR that needs to be merged as the current version of ESP32-HUB75-MatrixPanel-DMA libraries do not work with the SM16208S. There is a version of the library that is being distributed in https://www.waveshare.com/wiki/RGB-Matrix-P4-64x32. Specifically in this zip https://files.waveshare.com/upload/6/6d/RGB-Matrix-P4-64x32-Demo.zip that does work with this chip

board707 commented 8 months ago

64x64 panel with SM16208S

Too little information. As I said earlier, in addition to the number of pixels and the driver type, you need to know, at least, the number of scans and the type of multiplexer.

Specifically in this zip ... demo that does work with this chip

The first message talked about 64x64 panel, but the demo is for 64x32. It is a different things. And again, you say nothing about scans and multiplexor. Without this, your message is of little value.

orrious commented 8 months ago

waveshare.com/wiki/RGB-Matrix-P3-64x64

DIMENSIONS  192mm × 192mm
PIXELS  64 × 64=4096 DOTS
PITCH   3mm
PIXEL FORM  1R1G1B
VIEWING ANGLE   ≥160°
CONTROL TYPE    synchronization
DRIVING 1/32 scan
HEADER  HUB75E
POWER SUPPLY    5V / 4A(VH4 header input)
POWER   ≤20W

74HC04D - Hex inverter 74HC245K - Octal 3−State Noninverting Bus Transceiver SM5166PC - PLL synthesizer SM16208S - Display panel driver IC

Waveshare is distributing a modified version of ESP32-HUB75-MatrixPanel-I2S-DMA.h #2.0.7 with a modification to line 262:

Original 2.0.7: enum clk_speed {HZ_10M=10000000, HZ_20M=20000000};

Waveshare: enum clk_speed {HZ_8M=8000000, HZ_10M=10000000, HZ_20M=20000000};

It appears these panels need to run at 8Mhz rather than 10Mhz or 20Mhz

mrcodetastic commented 8 months ago

Can't that library just be used then?

orrious commented 8 months ago

Sure, but it won't receive any of your updates, folks that are attempting to use your library and these panels will continually run into the same issue. Maybe they will find this ticket, but that's a needle in a haystack.

I don't know enough about your library, I haven't dug that deep into it. What is the down side to adding the lower frequency to the clk_speed array?

mrcodetastic commented 8 months ago

If that's the only change to get these panels to run with this library then all you need to do is add the 8mhz option into the enum.

Feel free to raise a pull request.