-
Notifications
You must be signed in to change notification settings - Fork 191
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
Image is corrupted in demo #15
Comments
Did you select the correct display type as described in https://epdiy.readthedocs.io/en/latest/getting_started.html#selecting-a-display-type? |
Hi, yes, selected correct display type (tried all 3 types). Always got same results :) |
Could you send me the firmware .elf - file so I can test it with my board? This should tell us wether it is a software or hardware issue. |
sure, here it is https://drive.google.com/file/d/100nq3WojXUwFnXGf2NzVIdWlf5WL_-Bs |
Hm, your firmware works fine for me. Do you have a list of components you used? What is the revision of your ESP32-WROVER module (should be shown when flashing)? |
Wow, that is bad news for me :) Chip is ESP32D0WDQ6 (revision 1) List of components (excluding resistors and capacitors): |
can it be just wrong gerber files version? - i got it from zip archive in git version from June 04 2020 and it seems it was not tested version |
Hmm, the only thing I see here is that you use a shift register which specifies a lower clock speed, but since that's only used for control signals it should not lead to the image being as it is... |
Yes, those files are untested, but I don't see how any of the changes would produce this error. It seems very regular, like it has something to do with clock speeds. Did you try to reduce the configured APLL frequency directly instead of the clock divider? And turn it down veery low? |
i made 2 boards and got same results. So, it seems it can be issue with gerber files I used. But strange.... |
Yes, tried to play with APLL and got 2 dragons, 4 dragons and very slow but corrupted dragon. Can't manage to get correct dragon |
at least good to know it is something hardware related. Initially i thought some wire could be broken but when managed to get 2 dragons started to play with clock but without any luck. |
The other demos produce similar results?
to
It's just hard to diagnose anything remotely... |
Yes, i know it is very hard to diagnose it remotely. Will also get Nexperia 74HC4094, seems avaialble locally. Looks like it is the only part which can make such problems (but still not sure how). Thank you for help. |
If that's available easily it might be worth a try... |
Hi, so I solder NXP 74HC4094D and got same results :( Thank you |
Hm, hard to say. Maybe the following things might give us more information:
|
|
|
getting closer... |
With new code i still have issue and it seems it is because not all frames drawed and I got very light or very dark image. |
What? According to the data sheet, the absolute maximum frequency should be 50Mhz... Something is really wrong with the clock here... Can you try to use the bit clock instead of the word clock? for the CKH signal? (Replace I2S1O_WS_OUT_IDX by I2S1O_BCK_OUT_IDX)
And the normal demo with ED060SC4? Since the dragon demo does not adjust to the smaller width, it will look weird no matter what. And I should really update the timing table for WHITE_ON_BLACK, since that one is not yet calibrated for the ED097OC4, this is why it looks so white. |
|
Well, that seems strange to me. Somehow pretty much any value I set for the frequency works with my display. Maybe I can look at this with an oscilloscope in the next days to see what is going on.
That sounds like at least you have a workarround for now? |
Yep, this is a workaround for time being. But I have big doubts about my board and frequency it produces. Of course will try to investigate it more and find reason of such strange behaviour. |
btw, I have cheap oscilloscope and can try to mesure signal, just need instructions which pins to check. |
The most relevant signal would probably by the horizontal clock (CKH), which is on IO5 of the ESP. You can also find the location of the corresponding pin on the PCB through KiCad ;) You could try to look at STH (IO25) as well. |
The V2 gerbers are fine on my two displays (the 9.7inch, OC1 and OC4) i got from AliExpress. However, when i'm plugged into my old Kindle display (9.7 inch OC1) i get similar problems with the thirds. However you could try my voltage mod described in #3 which fixed other issues. Brown-out might be a partial cause. I'm thinking this to be more of a timing issue than a hardware failure. Maybe some displays are just made a lot more poorly than some others. |
By measuring I noticed that |
Same problem with thirds |
Hm, what happens when you scale up |
The strapping pins @sebastius mentioned could be read out of the GPIO_STRAPPING register. Maybe there is indeed a problem with those? |
the "thirds" problem back with |
In addition it can clear the screen normally. But can't display the right picture. |
hey @stig3 ,
|
Thanks for your replay. I was using ed060sc4, and yes, it can clear the screen properly. I also try the dragon demo which also could not showing the right pic. Since now I only have one 6" EPD so I can't distinguish whether it was my hardware problems or same as this issue. I'm planning to buy a 9.7" screen and I'll let you know when I receive it. Thanks again. |
Have you selected the ed060sc4 display type in menuconfig? |
YES I have . I'll soldering another pcb and try again. Hope it was my drive board cause this issue. |
UPDATE:
in file "i2s_data_bus.c" line 167 to
ed060sc4 show the right image and problem solved. |
@stig3 Good to hear. I think I will just make this frequency setting available as a separate option, independent of the display type. Hope that will cover most variants out there :) |
@vroland I couldn't resist and bought the cheap $30 ED097OC4 on aliexpress. Only way to have uncorrupted image was to use ED097OC4 LQ profile so thanks for implementing this! It still isn't perfect tho, the display seems very slow compared to TC1 which is probably a feature but I have an issue where I have to wait (delay) at least 5s in between changes. Without the wait, the display is more and more washed out with each refresh. The darks are washed out around left and top corner a bit, but almost unnoticable when using 8s delay between frames. No noticable issue with 10s delay, |
I should add that VCOM is properly adjusted according to sticker value. |
Hm, since this seems to be a recurring thing this has to be some systematic error. Maybe we're missing something about the timings? Can you take a picture of the display labels to I can compare them with the ones I have? |
The label says ED097OC4(LF), I will take a photo tomorrow when I have better lighting conditions :) |
@vroland Seems like the same panel you have so I think yours might be little more forgiving than ours are :) I was experiencing exactly same distortion as on @stig3 's photo. ED097OC4 LQ fixed that but the quality is still not good. You can see on my pictures slightly visible fade on top corner, this is much more visible when I'm not using long delays. |
Also not sure if it's visible from the picture but it's shifted something like 5 pixels to the right, on the left is 5px white space, on the right is 5px distortion |
@kubasienki you don't experience washed out image after several subsequent refreshes? Or faded image on the edge of the display? |
Actually there is a slight difference in the label of mine: |
The numbers next to the 9.7" EPD are different, other than that it's identical. It's possible it's some low quality run and that's why it's so cheap (it's the $30 one, free shipping aka the cheapest on ali :) ) If you have any ideas what could cause this, I will try it out. I will have to dig into the library some more when I have time, to try different timings, see how that behaves. But comparing OC4 and TC1 side by side, the TC1 is super fast and crisp, OC4 is much slower. |
The issues with image fading out with subsequent refreshes lead me to think it might be something with voltages. As this issue disappears when I add 10s delay after each refresh. Maybe it's sensitive to disabling / reenabling power (aka display turn off / on) and takes long to discharge the capacitors or something like that... but I tried it without that and it happend as well. |
I'd guess its something about the timings, maybe hold times of some lines. There is also the OE line which is just the source driver enable on the newer displays (e.g. the ED133UT2 or the ED097TC2 have signal diagrams in their datasheet). Maybe the older displays need some driven differently to discharge properly or something? |
@vroland I looked in the datasheets and one significant difference in timing is that clock cycle time is 50ns min. for OC4 and 16.7ns min. for TC1 |
Can we archive this old nice conversation? Asking to know if that won’t offend any of you ;) |
Hi and thanks for good project, got the following issue:
Midle 1/3 part of screen is filled using last 1/3 part of image: https://photos.app.goo.gl/NrU67cK5Pw3RJGog6
build board using gerber files from June 04 2020
If change
dev->fifo_conf.tx_fifo_mod = 1;
to
dev->fifo_conf.tx_fifo_mod = 0;
or play with clock dividers i managed to get 2 dragons. But can't get correct image
https://photos.app.goo.gl/JamvfDV5eNeDf52q6
The text was updated successfully, but these errors were encountered: