Skip to content
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

Vertical sync #50

Open
general-ackbar opened this issue Oct 26, 2022 · 5 comments
Open

Vertical sync #50

general-ackbar opened this issue Oct 26, 2022 · 5 comments

Comments

@general-ackbar
Copy link

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?

@CornN64
Copy link

CornN64 commented Nov 20, 2022

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

@scanlight
Copy link

i have the same issue. video keeps scrolling.

@scanlight
Copy link

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.

@general-ackbar
Copy link
Author

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?

@scanlight
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants