Sidequest: VGA scan doubler

General discussions or ideas about hardware.
User avatar
DoG
Posts: 1130
Joined: Sat Apr 07, 2018 12:26 pm

Re: Sidequest: VGA scan doubler

Post by DoG »

:thumbup: :excited:
User avatar
Smonson
Posts: 710
Joined: Sat Oct 28, 2017 10:21 am
Location: Canberra, Australia
Contact:

Re: Sidequest: VGA scan doubler

Post by Smonson »

So I've been fiddling around with this one over the weekend and, although I am tooting my own horn here, I'm very pleased with the picture quality. The image is sharp, stable, and free from noise.

This is a close-up from a proper LCD monitor (not a TV like before) at low res:
lowres.jpg
lowres.jpg (252.85 KiB) Viewed 5524 times
And this one's from the same monitor at med res. Before, the med res version was fuzzy, but I changed something in the RAM read process and it suddenly improved a lot.
medres.jpg
medres.jpg (244.6 KiB) Viewed 5524 times
The moire effect stuffs up the photos - there is no banding visible in real life. I just have no way to prove it!

I added support for 60Hz as well, but unfortunately I was 1 LE over the limit of 80 on this CPLD, so I've ordered some bigger ones and will continue the project when they show up. That extra room will also give me some space to add the scanline effect that everybody loves!

I also have a plan to pass-through monochrome automatically so that all 3 modes will work on a standard VGA monitor. I think that should be possible... But I'm going to have to do another version of the PCB for that, because I didn't think to break out the mono pin to the CPLD. But an interesting thought is that with all 3 modes supported, I could cut a few traces and route everything through the ST's normal monitor port, and have a "seamless" mod. The switchable VGA cables used for 15KHz monitors would then work, but with more monitors. As you can see from the earlier pic of my mod board I've got my own r-2r ladder DACs on there and header pins for the VGA socket. But theoretically, I could just inject the video back into the shifter socket and go through the ST's video DACs (including mono). Probably I'd have to change some resistor values because of the voltage difference (3.3v instead of 5v). I'd have to cut tracks (or find some component I can unsolder) to inject HSYNC and BLANK signals in place of the Glue-generated ones. I think I'm going to take this idea as far as it goes.
User avatar
Icky
Site Admin
Site Admin
Posts: 3994
Joined: Sun Sep 03, 2017 10:57 am
Location: UK

Re: Sidequest: VGA scan doubler

Post by Icky »

Nice progress @Smonson
User avatar
derkom
Moderator
Moderator
Posts: 1217
Joined: Sun Jul 29, 2018 6:45 pm

Re: Sidequest: VGA scan doubler

Post by derkom »

Smonson wrote: Sun May 24, 2020 12:52 pm The moire effect stuffs up the photos - there is no banding visible in real life. I just have no way to prove it!
I've found the easiest way to prevent moire when photographing an LCD is just to step back far enough that each physical pixel in the camera sensor is going to be more than one pixel on the display, then crop the photo down. Sure, it sacrifices a little bit of the ability to duplicate the full resolution of the display, but we're not talking about displaying that kind of resolution here anyway. ;)
User avatar
PhilC
Moderator
Moderator
Posts: 6039
Joined: Fri Mar 23, 2018 8:22 pm

Re: Sidequest: VGA scan doubler

Post by PhilC »

Thats a nice looking screen, well done @Smonson
If it ain't broke, test it to Destruction.
troed
Moderator
Moderator
Posts: 911
Joined: Mon Aug 21, 2017 10:27 pm

Re: Sidequest: VGA scan doubler

Post by troed »

Smonson wrote: Sun May 24, 2020 12:52 pm I could cut a few traces and route everything through the ST's normal monitor port, and have a "seamless" mod.
That's a really cool idea. Add your TOS 1.04 multi-res patch (and the same then done to the 2.06 source) and we have all resolutions reachable from within GEM to any VGA-capable screen.

Awesomeness.

/Troed
User avatar
Smonson
Posts: 710
Joined: Sat Oct 28, 2017 10:21 am
Location: Canberra, Australia
Contact:

Re: Sidequest: VGA scan doubler

Post by Smonson »

derkom wrote: Sun May 24, 2020 3:14 pm I've found the easiest way to prevent moire when photographing an LCD is just to step back far enough that each physical pixel in the camera sensor is going to be more than one pixel on the display, then crop the photo down.
That's a good idea. Although I don't think I have a big enough room to do that with my 48MP phone camera. I might have an older camera in a drawer somewhere that would work. I'll give it a try next time! Thanks!
User avatar
sandord
Posts: 674
Joined: Mon Aug 13, 2018 10:08 pm
Location: The Netherlands
Contact:

Re: Sidequest: VGA scan doubler

Post by sandord »

I'm sure you could dial down the resolution on your phone?
User avatar
agranlund
Posts: 803
Joined: Sun Aug 18, 2019 10:43 pm
Location: Sweden
Contact:

Re: Sidequest: VGA scan doubler

Post by agranlund »

If you find yourself lacking stuff to do, then it would be neat if it would take the DE signal and a switch to enable/disable the borders in the output image :D

I'm thinking the borderless image is probably much more likely to end up being a multiple of native monitor resolution so would yield a sharper image in addition to better screen coverage.
User avatar
exxos
Site Admin
Site Admin
Posts: 23787
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: Sidequest: VGA scan doubler

Post by exxos »

That's not a bad idea really. I wonder if the system will run slower with it having more video data access to RAM on full screen though..
https://www.exxosforum.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxosforum.co.uk/atari/store2/ - All my hardware mods for sale - Please help support by making a purchase.
viewtopic.php?f=17&t=1585 Have you done the Mandatory Fixes ?
Just because a lot of people agree on something, doesn't make it a fact. ~exxos ~
People should find solutions to problems, not find problems with solutions.
Post Reply

Return to “HARDWARE DISCUSSIONS”