-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
STM32: 32x32 RGB Matrix experiences flickering, stretching #3051
Comments
@jepler Thoughts on this? |
@hierophect please post a video, it isnt clear to me what you're referring to |
this looks like a power or voltage issue. make sure the panel power supply is 5V or less |
That was my first thought too, or a connection issue, but I've found in testing that the exact same setup works fine (jumpers, cable, featherwing, everything, only the feathers & connection positions swapped) on the Feather M4 express and only gives this bad performance on the F405. It's using the 5V, 4A power supply listed on Adafruit. |
Maybe a clock issue? |
hmm may be its too fast |
We should check this soon because we have new RGB Matrix projects in the pipeline. |
I was going to test this after my new timer tech is in, since I just changed the internals of Protomatter anyway. |
Returning to this issue, notes so far after using a Saleae to capture the signal differences between the STM32F405 Express and the M4 Express. Test sketch: https://gist.github.com/hierophect/a8c75eed9725b4e2a3683a9ead61c5f7. I observed LAT, OE, A, B, R1, R2, and CLK. @PaintYourDragon and @jepler, here are my findings so far:
Otherwise, the two signals are very similar. For my test sketch, both deliver about 8ms of data on R1 when the sketch starts. Only LAT, OE, A and B are active from that point on. @ladyada mentioned it might be |
I should amend the above to say I'm getting completely different data from R1 out of my saleae now, so I'm suspecting a hardware error on that, if one that frustratingly was exactly the same across both the SAMD and ST across two trials, apparently. |
I think this might need to be tackled by someone with an oscilloscope. |
After having discussed things with @jepler, it seems like the root of this issue was the aforementioned documentation mixup in the guide page, where the fritzing pinout of the Feather M4 Express had the LAT and OE pins swapped. The actual code and layout of the Featherwing were both correct, so this caused no issues when an actual M4 was used, but by attempting to connect a STM32 Feather to the featherwing using cables, these two pins were swapped and caused the original issue. The other instability I had seems to have just been general cable noise - removing the feather and adding jumpers directly from the matrix to the feather seems to have resolved the issue. While the address line frequencies on the STM32 is still 2x as fast as the Feather M4, these don't seem to impact image quality, nor does Since the update to the guide diagram is not a git-related fix, I'm closing this issue. |
Using the 32x32 matrix with an STM32F405 Feather Express, I'm observing a number of flickering and misplaced LEDs, which distort the edges of the image. This appears to occur more on one side of the matrix than the other.
Test script. This exact same script, when used on a Feather M4 Express with the same matrix (jumpers still used and only connections re-arranged) does not cause this issue.
This behavior also with Circuitpython built at the original STM32 RGBMatrix PR (#2831), so it may be specific to this screen size, since @jepler did not report any problems like this in his PR.
Any additional testing to confirm this issue would be appreciated! I've checked it with two separate feathers and two separate LED Matrixes of this size, but I do not have any other sizes to check against.
Sorry for lousy image quality, my phone camera really isn't catching this issue well. The "wrong" pixels are a lot more apparent to the naked eye. Attempted text is "++++"
The text was updated successfully, but these errors were encountered: