esp_8_bit icon indicating copy to clipboard operation
esp_8_bit copied to clipboard

Vertical sync

Open general-ackbar opened this issue 3 years ago • 5 comments

I'm having a weird sync problem with one particular screen. It's a dismantled screen from a cheap car rear camera monitor with composite input. The display is not great, but it works fine with other devices (Raspberry Pi, game consoles etc) however with esp_8_bit (or espflix for that matter) the image is crisp but it slowly scrolls vertical (same result with both PAL and NTSC). The output is crisp and steady on other displays so I'm thinking it must be something with this specific combination - and most likely the sync signal passed from the esp32 to the display or maybe the resolution. Sync signals and timing have never been my strong suit, so I haven't been able to find where in the source code the resolution and/or sync can be adjusted. Can anyone point me in the right direction?

general-ackbar avatar Oct 26 '22 10:10 general-ackbar

Have a look in video.h Each line of video is created there and include the horizontal sync as well as the vertical sync.

CornN64 avatar Nov 20 '22 19:11 CornN64

i have the same issue. video keeps scrolling.

scanlight avatar Jan 14 '24 20:01 scanlight

Found out that modding the video.h file and reduce pal and ntsc by one scanline stops the scrolling. Now I still need to get a more clear image. It all looks fuzzy with barely color.

scanlight avatar Jan 15 '24 16:01 scanlight

Glad it worked for you :) I found the lines in Corn64 suggestion too, but for my screen I could only make the scrollign go slower or the opposite direction by tweaking the scanlines. For the color and fuzzy-ness problem, that could be ordinary interference. Are you using shielded cables?

general-ackbar avatar Jan 23 '24 15:01 general-ackbar

no i don't use shielded wire. just ordinary wire but with a length op 5cm. the esp is build into the screen. changing this lines made a huge difference. #define SYNC_SIZE 20 //Lowering this to like 35 can help sync issues at times #define WHITE_LEVEL IRE(90)

now the video is clean and colorfull on NTSC. pal had "some" color from the start but only used a part of the screen. NTSC is full screen and smoother then pal.

scanlight avatar Jan 23 '24 18:01 scanlight