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
Black areas not rendering correctly- 5.83" screen #46
Comments
I've done more investigation. The panel is not the problem. I hooked up the panel to a 2.7" B Pi HAT using the ribbon cable and everything worked as expected with proper deep blacks everywhere. I also hooked up the e-Paper HAT that shipped with the 5.83" display using the wire harness connector as per the instructions on the wiki. The panel worked flawlessly. For good measure I also hooked up the panel using Female-Male jumper wires from the male headers on the Pi directly to the female sockets on the HAT. I ONLY used the pins specified in the Wiki. Once again, everything works perfectly. Plugging the HAT directly into the Pi headers is the only situation where this does not work properly. Is there a schematic for the e-Paper HAT available somewhere? Perhaps there's something weird happening with one of the unused PI pins that's interfering with the HAT. Can you suggest any other possible troubleshooting steps I might take to figure out what the problem is? I think I'll just order another e-Paper HAT, but I'm afraid I'll have the same issue. |
I have same problem. Running 7.5" panel with PI Zero/Python. I started my project end of August and it ran fine for about 2 months. Then I noticed left half of the screen renders pale content. And it became worse with every day. My project (weather + calendar dashboard) updates the screen every 15 mins. Btw, it takes about 40-60 sec just to refresh the screen (I suspect it's whether HAT is too slow or my Zero). So it does full clean up of the screen for 50 sec and then draws my image for another 50 sec - I find it very slow. Can anyone confirm the same? Back to the topic, I cleaned up the screen, disconnected power from RPI, and let it cool down for about 12 hours. After new start the picture was much better. And now it's getting worse again. |
@dev-ng I my problem to be with the HAT plugged directly into the 40 pin connector. There's some sort of strange problem when the HAT is plugged directly into the PI's 40 pin header. When the HAT is DIRECTLY plugged into the Pi, I get weird ghosting and terrible quality as documented above. When I connect the HAT using the supplied wire harness (8 wire with molex connector) to the appropriate pins, it works perfectly during testing. When I connect JUST pins 18, 11, 22, 24, 23, 19, 9, 1 using Female->Male connectors to the 40 pin female connector on the bottom, everything works PERFECTLY. The problem appears ONLY when I plug directly into the Pi. The really odd thing is that if I use a 2.7"B HAT with integrated screen, and plug in the 5.83" via the ribbon cable interface it also works perfectly. DRIVING ME NUTS. |
Can you take a picture of the positive side of HAT |
@txoof Back to performance issue, what PI do you use? Mine is Zero. I run it headless, connect via VNC, and run script directly in Thonny. The following code produces the log you can see below: print("init paper " + str(datetime.datetime.now())) print("clear " + str(datetime.datetime.now())) print("show " + str(datetime.datetime.now())) print("done " + str(datetime.datetime.now())) Log:
Not sure what you mean. |
@hnwangkg-ezio |
@dev-ng
|
@txoof Three days later the image stays perfect while connected with wires. |
@dev-ng I did that and it also worked flawlessly. There's something børked with the HAT only when it's plugged directly into the Pi. |
@hnwangkg-ezio |
Hello @txoof and @dev-ng, after a while did You still enjoy good quality of the display ? Few days ago I noticed that my display 4.2inch starts behave as @txoof document. In my case I am using for presenting fridge temperature which I am use for beer fermentation control, thus at the beginning I could't use the HAT using 40 pin's header, I use jumper wires the same way as You. Here is how look like display after refresh: Thank's for feedback and suggestions. |
I've never had any of the ghosting problems you're having. It looks like an incomplete refresh problem. is the screen cold? I understand that ambient temperature has an impact on refresh rate (though how, I don't know). In the python code I've noticed that there are some parameters that can be adjusted to change how the display refreshes, but I'm not sure where that was. |
Well today morning I check the temperature of the screen and it was ok in my opinion (ambient temperature). Indeed, there is possible to pass hex value to Clean() function, but in my case I did not change source code over last month, and for sure at the beginning screen look's much better. The main concern part is that parameters and behave of this screen got worst in period of time. I don't know if this could be the problem but I am updating the screen with date every 60 seconds. @txoof could You answer after a while You have been moving from 40 header to jumper wires solve You problem with refreshing and display rendering and after all You screen is working ok now ? @hnwangkg-ezio could You help here somehow ? |
@lukaszgard Using the white JST 8-pin connector ==> 40 pin GPIO solved all my problems. Interestingly, if I used the female 40-pin GPIO connector on the HAT and used male-female jumper wires to connect directly to the male 40-pin GPIO header on the Pi, this also solved the problem. I also used a different HAT and there was no problem. I suspect there is a faulty connection somewhere in the female GPIO. If the connection is poor and there's extra resistance, or some weird interference coming in, that could cause the problems. |
@lukaszgard Are you by any chance forgetting to put the display to sleep after you write to it? The FAQ mentions something that sounds exactly like your issue.
|
@NickAnsy For an overview of the physical pin layout on the raspberry pi see pinout.xyz |
Well. That's new to me. It looks like you'll need some female-female dupont connectors and use the male headers between the yellow arduino headers and the black ESP32 headers. Check this image on the wiki for reference. Waveshare has an ok wiki that documents the pinout to the GPIO headers of the pi. Make sure to double check the VCC and GND connections. Swapping those is an outstanding way to toast your Pi or the board. I found that using Male/Female dupont connectors with the 40 pin female header also yielded better results than plugging the pi directly into the HAT. I suspect there's a high-resistance connection somewhere that's' causing some sort of weird leakage or inductance or ???? that causes the poor image quality. |
Yeah i figured it out, still getting the same results. I'm so frustrated. This was supposed to be an anniversary gift for my girlfriend and I can't get it to cooperate. It's doing it on multiple screens as well. So it's either something with the code or I don't know. |
@NickAnsy does it work when running the demo code? Also, did you double check the ribbon cables? I've found that if they are not fully inserted into the zif sockets, I get crappy results. |
Yeah it works fine with the demo code, which made me lean towards something in my code being weird. So I haven't checked the ribbon cables, but I will right now. I keep thinking it's something to do with it not properly putting the screen to sleep. |
@NickAnsy Are you on Discord? https://discord.gg/psDk32uY |
Thanks man, I will check it out as soon as i pour my coffee. I am! |
@NickAnsy how's it working? |
For others struggling with the same problem as @NickAnsy, make sure to sleep the driver after each write. Leaving the driver board in the init state can cause the trouble he was experiencing. |
I've tracked this down to noise on the connectors. If the connection isn't perfect, or the cables are cruddy, I get this same effect. Try using jumper wires from the HAT to the GPIO pins and see if you get a better result. |
Thanks, I will take a look and try with the cables rather than the ribbon cable. |
I am using a 5.83" waveshare screen with a pi-hat. The HAT is set to "Display Config: B" and "Interface Config: 0"
When I purchased the screen it worked very well and all of the tests in this library worked appropriately. Over the course of my development cycle (about 2 hours of use per day), the display inconsistently renders black areas.
The boxes produced here from the test script should render 100% black

The text produced here from my own script following the examples should (and have in the past) rendered 100% black, but now render as pale outlines:

This white text on black background should render without any streaks, but renders with vertical streaks:

When the screen is refreshing or initializing, the black appears perfectly solid with no defective or gray areas, so I do not think the screen is damaged:

What can cause this behavior? Can you offer any suggestions of how to fix this?
The text was updated successfully, but these errors were encountered: