-
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
Python3 with Adafruit Hat and 32x64 matrix - flickering and pulsing panel #478
Comments
Some people reported, that for whatever reason the 1-wire communication seems to be switched on in some Pis, that need to be removed, maybe it is something like that. Also, do all the usual things, such as the isolcpus settings. How long is your panel ? Depending on the length, you might need to switch off RT-throttle; but that only manifests in regular (every couple of seconds or so) darker display and only really if you have more than like 8 panels connected so this might not be the reason for your observations. Note, that Python as scripting language is much more taxing to the CPU and memory subsystem as C/C++ code; in particular if you have the garbage collector kick in, you might get more flicker. Note that Python2 is faster than 3 last time I checked, so if you use that, you might get more out of it. |
Thanks for the quick advice! The 1-wire communication was already disabled and the As I want to have a working display for now, I reverted to my initial setup with the full Raspbian installation. It does not require a modified Thanks a lot for this library and the comprehensive instructions - I've had and have fun using it for my status display and I may expand with additional panels in the future. |
Interesting. It it disconcerning that they apparently messed up the Raspbian Lite distribution; will have to look some time to figure out what is wrong. |
Did you try playing with the |
Hey @AdmPicard - saw this issue because I was having the same rhythmic brightness changes, but not the ghosting in your video, with nearly the same setup. I'm running raspbian stretch lite on a Pi 3 with python 2.7 and an unmodified adafruit HAT. I realized I had a Unrelated, thank you @hzeller for this repo and your continued efforts maintaining it!!! I really wish adafruit would just link to this repo rather than their fork. I stupidly used their fork for a while before noticing it is almost 500 commits behind! |
The line flashing you can fix with the PWM hardware hack @claytonketner |
@hzeller Using However, using my original Raspbian environment doesn't even require this setting for a perfectly stable image. Just the fresh Raspbian installations (no matter whether full or lite) require it and still the pulsing remains. As I am using the exact same hardware, there have to be software or configuration issues, which I am missing. I am running the display absolutely fine now since several days and even additional tasks like other scripts won't noticeably harm the display performance - it may yield a short flicker here and there but it's not worth mentioning. @claytonketner I applied the PWM mod to my Adafruit hat, which may help you, too. I also have lots of short |
Could there be one of the GPIO-daemon things or PiGPIO running on the Pi that interferes with it ? |
So after some experimenting it looks like the newer Raspbians are indeed worse than older (also see #483 ). I think it is time to start a no frills Linux distribution that is suited for near realtime tasks... |
Okay, interesting. So the current Raspbian distributions themselves are responsible for the decreased performance of applications like driving the display. Thanks for pointing this out as I'd probably have started further attempts to get it running with a fresh installation otherwise. Unfortunately, I am not more than a hobby programmer and therefore always depend on the great work of other people. So I will stick around and have a look at the future developments. I am glad, that my older Raspbian continues to work very fine with your library and the python bindings. Thanks a lot for your research and the effort! |
I have expanded a bit the allowance for kernel induced jitter. Can you try with a fresh git pull and recompile everything to see if occasional brightness flicker is reduced ? |
I have been able to test your new version now - sorry for the delay. Unfortunately, I had to set up a new Raspbian Lite environment as my backed up version refused to recover. So I am not able to compare while using the exact same environment, but with the new fresh installation and your current library, the flicker, as well as the pulsing, are completely gone even with the default Compared to my old working setup, I'd even say the quality got slightly better as the rare brightness changes are nearly entirely gone. So your modification and/or some other differences to my prior setup caused my script to work very well in the new environment. However, I am seeing small scaling differences, which I cannot understand yet. A bitmap, for instance, is lacking some of its original height and some font characters seem to be compressed. I will try to attach an image for comparison. Anyways, I will be able to run my setup with a fresh installation now - thanks a lot! |
To test if there are issues with scaling etc., I'd suggest to run the demos. For instance |
Check out the new compile-time option in |
Thank you, I'll update and give it a try! The panels run fine for two months now - reliably and while providing a good quality. |
Hi!
After I was using your library just fine with my Raspberry PI 3 (Adafruit Hat with PWM mod) and my python3.5 script, I am now facing strange issues on the same device, on which I now installed Raspbian Lite for a fresh start.
I installed all dependencies (at least I think so) and followed your instructions to compile the library for Python 3. Whereas your demo examples work perfectly fine and with nearly no flicker, my python script does not properly work any longer: the panel will flicker rhythmically (and I can hear a subtle beeping sound in the same rhythm as well) and shows artefacts. Here is a short video.
I have set up everything again and again, but do not have a clue anymore, where the issue might be. My script/program is an exact copy of the version, which runs perfectly fine on my prior full Raspbian installation (just with python3.4 instead of 3.5) and which continues to do so if I recover this Raspbian installation. But of course, I'd like to stick with the new, fresh installation. Except from installing some python packages for my script, the Raspbian Lite installation is brand new.
I did not change any option except the
adafruit-hat-pwm
wiring and the chain length of two. If I change thegpio_slowdown
to2
though, I can prevent the flickering and the artefacts. However, the display will continue to rhythmically pulse. The custom slowdown was not necessary before - the display ran fine without additional modifications.Thanks for any ideas! I hope, that I just made a stupid mistake somewhere.
The text was updated successfully, but these errors were encountered: