-
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
Flickering at regular intervals #1689
Comments
make sure to not overload your Pi - looks like you are doing a lot of work that moves around memory a lot (the resize for instance looks problematic). Also just reading from the USB port a lot of data is known to saturate the memory bus in particular on older Pis. The memory bus of the Pi easily overloaded, so if there is too much going on, the writing to the panel will starve and that can result in such blips you see. Also make sure to enable all the usual things you find in the README, such as reserving one core for the display update. What Raspberry Pi are you using ? For this application you want a Pi4. |
@hzeller I'm using Raspberry Pi 4. Then is it better to configure it in C language instead of Python? I want to solve the problem that the consistent flickering occurring at regular intervals as soon as possible. Thank you for your help. |
Before switching to C++
if the video device is showing up in |
@hzeller I just tested it with video-viewer, and the same thing happens with video-viewer. (Flicker occurs once every two seconds.) |
the pwm bits and lsb nanoseconds are very low, this looks like you might starve the cpu-core from getting any time it can do book-keeping. What happens if you use the default values ? |
also, did you disable i2c and everything you don't need ? Did you make sure that no GUI is running (sometimes it is easy to forget to switch that off when running without monitor connected) |
@hzeller Using the default values will cause more flickering. I am currently using the Raspbian GUI version. Can I solve the problem by using the Lite version or Dietpi? (I'm currently controlling it via vnc rather than using a monitor connection.) Also, NTP was also disabled |
ah, never use the GUI or VNC, that is too much load on the system. Always use a lite version and only connect via ssh. |
@hzeller Can I use Dietpi? |
probably, I have not installed a recent version of it to know how 'diet' it still is. Maybe start out with just a regular raspberry pi lite image. Any of these should work. |
@hzeller I tried it with Raspberry Pi Lite, but the same symptoms persist. |
Any periodic job that you have (e.g. just running Also you seem to run a fairly large panel, make sure that your power-supply is not glitching: if DC/DC power supplies get into overload conditions, they are known to have brief periods in which power switches off (measure with a scope). You need to plan about 2-3Ampere per panel, so for your 3x3 configuration that can be 20-30A at 5V. |
I've now added support for a video input in the vide-viewer. So if it shows up as a You need to update the dependencies and recompile. |
@hzeller I tested as below, but the resolution is not correct. What should I do? |
the video viewer will scale to the size it sees. In your python code I see that you have set the pixel mapping. If you invoke the |
@hzeller Log with correct screen resolution: Log with strange resolution: root@DietPi:~/rpi-rgb-led-matrix/utils# sudo ./video-viewer --led-rows=64 --led-cols=128 --led-chain=2 --led-parallel=3 --led-slowdown-gpio=5 --led-pwm-bits=8 --led-pwm-lsb-nanoseconds=85 --led-brightness=90 -v -T2 --led-no-drop-privs /dev/video0 |
That is probably something in the interplay of your HDMI->USB devices and the video4linux subsystem; you might need to configure that and ask it to return something close to the desired resolution after unplug/replug.
|
@hzeller Thanks for your help. I've been testing it for a few weeks. Noticeable flicker is almost eliminated by setting gpio-slowdown, pwm-lsb-nanoseconds, pwm-bits, but subtle flicker still occurs, especially if the colors are complex. ./video-viewer --led-rows=64 --led-cols=128 --led-chain=2 --led-parallel=3 --led-slowdown-gpio=5 --led-pwm-bits=8 --led-pwm-lsb-nanoseconds=90 -T2 --led-no-drop-privs /dev/video0 |
Hi. I ordered a board from Electrondragon Store (https://www.electrodragon.com/product/rgb-matrix-panel-drive-board-for-raspberry-pi-v2/) and tested it, but I noticed a consistent flickering (possibly) occurring at regular intervals. It feels like the panel turns off and on for 0.1 seconds. How can I resolve this? Below is the code that receives HDMI in USB format and displays it on the panel.
Please understand that there may be some awkwardness in the English translation.
Panel : https://aliexpress.com/item/1005006612553395.html
Panel3__Panel2__Panel1__Board Port 1
Panel6__Panel5__Panel4__Board Port 2
X X X__Board Port 3
The text was updated successfully, but these errors were encountered: