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
929 stars 205 forks source link

80x40 1/20 SM5166P #453

Open sherlockedBBC opened 1 year ago

sherlockedBBC commented 1 year ago

Hey you all. I am trying to drive a 80x40 P4 Panel with a 1/20 Scanmode. The IC has SM5166P written on it, which looks similar to the SM5266P to me (but i might be wrong). Is there the possibility to drive a 80x40 panel? I only found one past issue to this topic.

Best

board707 commented 1 year ago

Every LED panel contains at least two types IC - LED driver itself and a line decoder (or multiplexor) - to switch the input data between lines of leds. SM5166 is not a driver, it is a multiplexor with 138 type decoding ( compatible with the library). However in order to understand if your panel will work, it is more important to know the type of LED driver chip

sherlockedBBC commented 1 year ago

The LED driver chip are of the type ICN2037.

sherlockedBBC commented 1 year ago

Currently i am getting these patterns when running the "PIO_TestPatterns" example.

photo_2023-05-11 23 40 36

board707 commented 1 year ago

The LED driver chip are of the type ICN2037.

It should be supported by the library. Are you edited panel configuration in the code ?

// Configure for your panel(s) as appropriate!
#define PIN_E 32
#define PANEL_WIDTH 64
#define PANEL_HEIGHT 64    
sherlockedBBC commented 1 year ago

As the panel is 80x40 I changed the panel width to 80 and the panel height to 40, yes.

board707 commented 1 year ago

Do you define and connect pin E ?

sherlockedBBC commented 1 year ago

Yes. Defined E as 32 and connected it to IO32

sherlockedBBC commented 1 year ago

I should have changed the driver ... With this line it works now:

mxconfig.driver = HUB75_I2S_CFG::ICN2038S;

Thanks for the help!

board707 commented 1 year ago

It is a very strange, since 2037 and 2038 drivers requires a completely different initialisation

sherlockedBBC commented 1 year ago

What should i be using idealy? As far as i can see this library offers these options:

FM6124, FM6126A, ICN2038S, MBI5124, SM5266P

board707 commented 1 year ago

If your panel works with ICN2038S setting - so use it. I'm just surprised it works...

mohsin-rauma commented 1 month ago

What type of controller you used for this 80*40 display, it is work with ### esp8266 or esp32 .........? here are some picture of panel what I have IMG-20240701-WA0004 IMG-20240701-WA0006 IMG-20240701-WA0007

board707 commented 1 month ago

@mohsin-rauma Your panel is 80x40 s20 with standard drivers, it should work with the library without any specific settings.

mohsin-rauma commented 1 month ago

which library is available for this for ESP32....? and tnx for faster reply

board707 commented 1 month ago

You are in that library github now...

mohsin-rauma commented 1 month ago

https://github.com/mrcodetastic/ESP32-HUB75-MatrixPanel-DMA this is ok....?