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

Flickering Issue with "ESP32-HUB75-MatrixPanel-I2S-DMA" only #145

Closed
subashsaraf opened this issue Jul 5, 2021 · 25 comments
Closed

Flickering Issue with "ESP32-HUB75-MatrixPanel-I2S-DMA" only #145

subashsaraf opened this issue Jul 5, 2021 · 25 comments
Labels
not an issue with library This library works as expected, but something else is the root cause, such as AdaFruitGFX

Comments

@subashsaraf
Copy link

subashsaraf commented Jul 5, 2021

I made a clock with this Library actually the code was from Great Project RGB clock I modify the code according to your Lib. Hence I face Flickering issue . Where the code is absolutely fine PxMatrix lib but when I use "ESP32-HUB75-MatrixPanel-I2S-DMA" then the display is become Flickering .So is there any other way to solve the problem

Link To See the Flickering Issue

https://youtu.be/rzNrKGc8oXI

Code :-

Esp32_DS1307_DHT11_Matrix_p4_RGB_64x32_DMA_AMPM_dma_display.zip
Esp32_DS1307_DHT11_Matrix_p4_RGB_64x32_DMA_AMPM_dma_display.zip

[email protected]

@mrcodetastic
Copy link
Owner

mrcodetastic commented Jul 5, 2021

Turn off your LDR checking code and DHT checking code and see if that fixes the issues. I think you have conflicting pin mappings causing noise on the DMA output, given it happens every second or so.

@subashsaraf
Copy link
Author

subashsaraf commented Jul 6, 2021 via email

@mrcodetastic
Copy link
Owner

What does SimpleTestShapes example look like?

Repository owner deleted a comment from subashsaraf Jul 6, 2021
@mrcodetastic
Copy link
Owner

mrcodetastic commented Jul 6, 2021

Try: https:/mrfaptastic/ESP32-HUB75-MatrixPanel-I2S-DMA/tree/master/examples/1_SimpleTestShapes

Take a video of this sketch

Please note: I delete your comments in another issue so we can keep the discussion here.

@subashsaraf
Copy link
Author

subashsaraf commented Jul 6, 2021 via email

@2BECKHAM2
Copy link
Contributor

2BECKHAM2 commented Jul 22, 2021

@mrfaptastic.

Many thanks for the excellent library.

I'm facing some noise/flickering issues with the 64x32 panel with 1.0.6 esp32 version. I have connected a 3300uf capacitor across 5v in the panel.

https://drive.google.com/drive/folders/1c6tXlEqq_mQJvfQCB-mob6V1B1d418zN?usp=sharing

IMG_20210722_201736

IMG_20210722_144234 1

Is there any config changes that I would have to make?

Thanks.

@mrcodetastic
Copy link
Owner

Can you check that non-GND pins are not going to ground.

Can you draw a single diagonal line as well?
Looks like some address line issue, check the A,B,C,D pin mapping - perhaps the pins may have moved? Who knows. There seems to be a few of these issues being raised recently.

RGB_HUB75_PINS

@2BECKHAM2
Copy link
Contributor

2BECKHAM2 commented Jul 22, 2021 via email

@mrcodetastic
Copy link
Owner

mrcodetastic commented Jul 22, 2021

How have you connected the ESP32 to the LED panel? With some custom PCB or pin-by-pin with jumper cable?

You need to check your wiring.

@2BECKHAM2
Copy link
Contributor

2BECKHAM2 commented Jul 22, 2021 via email

@mrcodetastic
Copy link
Owner

Looking at your photo I see a 16 wire ribbon cable connecting to the panel. So how do you do that without a pcb?

There's something wrong be with your wiring. You need to keep the wire length between the esp32 and panel as short as possible, like 4-5 inches max, or these issues will occur.

This is an electrical issue I think.

@2BECKHAM2
Copy link
Contributor

From the ribbon cable, I have used male to female jumper wire ( colored one which normally use for the esp project) female end will be connected to esp 32.

Find attached screenshot for reference.

IMG_20210723_021123.jpg

IMG_20210723_021110.jpg

Thanks in advance.

@mrcodetastic
Copy link
Owner

That's likely your problem then. Use shorter female to female jumper cables and connecting directly to the LED panel.

@mrcodetastic mrcodetastic added the not an issue with library This library works as expected, but something else is the root cause, such as AdaFruitGFX label Jul 22, 2021
@mrcodetastic
Copy link
Owner

Also ensure ground pins on LED panel are grounded.

@2BECKHAM2
Copy link
Contributor

Thanks for your help. Will check as suggested and up date.

@2BECKHAM2
Copy link
Contributor

2BECKHAM2 commented Jul 23, 2021

@mrfaptastic ,

I have connected the shorter cables as suggested by you and observed the less flickering and noise. Find below for your reference.

https://drive.google.com/file/d/1nw4ysHyfHBCSnwHW25mCvjpaQzlTfraj/view?usp=sharing

https://drive.google.com/file/d/1bRwCGyKM6wTf2oT20CQ6o0N3jbupVB9X/view?usp=sharing

IMG_20210723_201121

Also regarding the latch blanking configuration, where exactly should I be making the necessary code changes?

Thanks.

@mrcodetastic
Copy link
Owner

In the mxconfig that you pass to the library. Refer to: #134

@2BECKHAM2
Copy link
Contributor

@mrfaptastic

Can you please help me in which file the below configuration needs to be changed.

mxconfig.latch_blanking = 4;
mxconfig.i2sspeed = HUB75_I2S_CFG::HZ_10M;

//and reduce brightness as well

// let's adjust default brightness to about 50%
dma_display->setBrightness8(128); // range is 0-255, 0 - 0%, 255 - 100%

mx_config.clkphase = false;

Thanks in advance.

@mrcodetastic
Copy link
Owner

Please look at the source code of the other examples.

@2BECKHAM2
Copy link
Contributor

2BECKHAM2 commented Jul 24, 2021

Its working like a charm after doing the config changes. - Thanks a lot for your help.

IMG_20210724_193117
IMG_20210724_193120
IMG_20210724_193116
IMG_20210724_193112

@subashsaraf
Copy link
Author

Its working like a charm after doing the config changes. - Thanks a lot for your help.

IMG_20210724_193117
IMG_20210724_193120
IMG_20210724_193122
IMG_20210724_193112
IMG_20210724_193116

Sir,
Can you please post the the code link which you is working fine without any issue .So that I will correction my code according to your program

[email protected]

@subashsaraf
Copy link
Author

Its working like a charm after doing the config changes. - Thanks a lot for your help.
IMG_20210724_193117
IMG_20210724_193120
IMG_20210724_193122
IMG_20210724_193112
IMG_20210724_193116

Sir,
Can you please post the the code link which you is working fine without any issue .So that I will correction my code according to your program

[email protected]

Sir,
Can you please post the the code link which you is working fine without any issue .So that I will correction my code according to your program

[email protected]

@2BECKHAM2
Copy link
Contributor

@subashsaraf

Please check the example code at https:/2BECKHAM2/ESP32-HUB75-MatrixPanel-I2S-DMA-Examples

@mrcodetastic
Copy link
Owner

Excellent work @2BECKHAM2 - Would you mind raising a pull request to this repository to update the SimpleTextShapes example to use the new pointer based usage of this library and mxconfig ?

@2BECKHAM2
Copy link
Contributor

2BECKHAM2 commented Jul 26, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not an issue with library This library works as expected, but something else is the root cause, such as AdaFruitGFX
Projects
None yet
Development

No branches or pull requests

3 participants