GBS 8200/8220 CFW Project

The place for all discussion on gaming hardware
rama
Posts: 1373
Joined: Wed Mar 08, 2017 3:15 pm

Re: GBS 8200/8220 CFW Project

Post by rama »

There is no larger scale project yet that could get people pre-assembled boards.

If it's for a single board, you could ask around if someone would build one for you.
They'll need to know where you're from :)
retromaniak
Posts: 45
Joined: Wed Dec 26, 2018 9:51 am

Re: GBS 8200/8220 CFW Project

Post by retromaniak »

Hi.
I need help. JS is not my strong point, would anyone be able to fix the HTML file for JavaScript just :?
https://drive.google.com/file/d/1uwLiRF ... sp=sharing
User avatar
maxtherabbit
Posts: 1763
Joined: Mon Mar 05, 2018 4:03 pm

Re: GBS 8200/8220 CFW Project

Post by maxtherabbit »

finally got my refund back from the first GBS that never came, so I ponied up the extra $2 to order another one that's coming from the US this time

so $19 for a GBS and the ESP module was only $1.44, still $20 bucks
rama
Posts: 1373
Joined: Wed Mar 08, 2017 3:15 pm

Re: GBS 8200/8220 CFW Project

Post by rama »

Don't forget to include your working hourly rate ;p

Retromaniak and me have figured out most of the JavaScript issues, by the way.
I hope to be able to use his new design in the future. I quite like it :)
User avatar
AndehX
Posts: 790
Joined: Sun Oct 18, 2015 11:37 pm

Re: GBS 8200/8220 CFW Project

Post by AndehX »

rama wrote:Don't forget to include your working hourly rate ;p

Retromaniak and me have figured out most of the JavaScript issues, by the way.
I hope to be able to use his new design in the future. I quite like it :)
Oh, sounds cool! I'm all for new stuff :mrgreen:
retromaniak
Posts: 45
Joined: Wed Dec 26, 2018 9:51 am

Re: GBS 8200/8220 CFW Project

Post by retromaniak »

As a foretaste, I put a comparison between the old and the new interface. Unfortunately, at this moment I do not have the possibility to compile this UI to GBS due to the lack of a microcontroller. But I hope RAMA will do it faster.
Image
rama
Posts: 1373
Joined: Wed Mar 08, 2017 3:15 pm

Re: GBS 8200/8220 CFW Project

Post by rama »

The new design is up!

I really like the segmentation, it makes navigation a lot quicker for me.
The colors match well and the font looks cool.

Thanks, retromaniak! :)

Image
User avatar
AndehX
Posts: 790
Joined: Sun Oct 18, 2015 11:37 pm

Re: GBS 8200/8220 CFW Project

Post by AndehX »

excellent stuff, updating now!
User avatar
AndehX
Posts: 790
Joined: Sun Oct 18, 2015 11:37 pm

Re: GBS 8200/8220 CFW Project

Post by AndehX »

ok im having issues getting this to work now. the ESP8266 seems to be in some kind of boot loop. this is what the monitor shows:

Scanning inputs for sources ...
Activity detected, input: RGBS/HV
VSync: present
HSync: present
RGBHV bypass
ADC gain: reset
post preset done (preset id: 1)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!<reset>
<reset>

It will constantly repeat this, without displaying any image.

Edit: Ok nevermind. I just selected a custom preset and now it suddenly works.... okay. Weird.
rama
Posts: 1373
Joined: Wed Mar 08, 2017 3:15 pm

Re: GBS 8200/8220 CFW Project

Post by rama »

Let me guess: There was no RGBHV source connected / active, right?
User avatar
AndehX
Posts: 790
Joined: Sun Oct 18, 2015 11:37 pm

Re: GBS 8200/8220 CFW Project

Post by AndehX »

My SNES was connected and switched on

Like I say, as soon as I clicked a custom preset, it suddenly started working.
rama
Posts: 1373
Joined: Wed Mar 08, 2017 3:15 pm

Re: GBS 8200/8220 CFW Project

Post by rama »

Okay, definitely no RGBHV with both syncs active :p
I've seen such readouts happen when the ESP8266 has bad contact with the I2C bus, or when power to the GBS is missing.
There's already guards in place to detect this, but it's not perfect. Sometimes a misreading gets through.

But oh well, maybe I'll find it one day, maybe not.
I don't expect this to happen much in the field, and a reset or changing the preset would make it clear / fix the problem.
User avatar
AndehX
Posts: 790
Joined: Sun Oct 18, 2015 11:37 pm

Re: GBS 8200/8220 CFW Project

Post by AndehX »

I did have my 8bitdo wireless SNES controller connected via USB to the same computer, and when I disconnected that, it started working normally too.
TomDD
Posts: 19
Joined: Wed Apr 10, 2019 9:52 pm
Location: United Kingdom
Contact:

Re: GBS 8200/8220 CFW Project

Post by TomDD »

Love the new design, great job
TomDD
Posts: 19
Joined: Wed Apr 10, 2019 9:52 pm
Location: United Kingdom
Contact:

Re: GBS 8200/8220 CFW Project

Post by TomDD »

First of all congrats on a great project.

Have recently found this thread and decided to build an upscaller for my retro computers. I've had a GBS 8200 for a while but was never that impressed with the output, this project has given it a new lease of life, in fact I've bought a second I was that impressed :-) Here is my final build:

Image

I decided not to mount the LoLin on top of the chip mainly as I wanted to get it as far away as possible from the scaler chip (as mentioned in the wiki) also i needed some extra space in the case for my custom connector. I've therefore added the syncsplitter circuit to the left of the chip mount.

Case is my custom design based on the one on Thingiverse. I've changed it a quite bit, in particular widening it and adding extra holes for my connections including a USB power input. Anyway once I've finished the top part I'll pop the design on Thingiverse.

The main video input is a 6pin DIN socket which I chose as a few of the retro computers I want this for (BBC Micro, Amstrad CPC) have a 6pin DIN RGB output making it easier. I've also created a 6pin DIN to female SCART adapter (with audio breakout) for the rest of my computers and consoles. Works great and so far I've tried this with Sinclair ZX Spectrum 128k, +2 & +3, Amstrad CPC, BBC Micro & Sinclair QL.

The switch on the right is used to turn off the CFW. I have added this as one of my old computers (Sinclair QL) doesn't play well with the CFW. The display is nice and crisp but the CFW cuts off the image when using Monitor Mode (80 col). I believe this is because of the non-standard output of the QL, however, the normal firmware displays it fine so I just revert to that if I need to. I've tried every option in the menu (Move Picture, Border, Scaling etc...) and can get it nearly ok but as you can see from the photo it is just off (top is normal FW, bottom CFW). Any ideas would be greatly appreciated as I would prefer just to use the CFW due to it's much better picture quality and 50Hz output.

Image
TomDD
Posts: 19
Joined: Wed Apr 10, 2019 9:52 pm
Location: United Kingdom
Contact:

Re: GBS 8200/8220 CFW Project

Post by TomDD »

For anybody that is interested I've made a quick webpage detailing my experiments with the GBS-8200 board and this custom firmware https://tomdalby.com/other/gbs8200.html
rama
Posts: 1373
Joined: Wed Mar 08, 2017 3:15 pm

Re: GBS 8200/8220 CFW Project

Post by rama »

Glad you like it, TomDD :)

I'm just going over your web page. This is an impressive collection of GBS 8200 stuff right there!
I'll see if I can help you with the QL later :)

Edit:
Ah, I see you also removed the Rset resistor for the LM1881.
It seems to work just fine and reduces complexity, but I always wonder if it's really okay to do that.
As long as nothing oscillates, it's probably safe at least.

You may have noticed the SOG coupling capacitor page on my wiki.
This allows you to get rid of the LM1881 entirely and let the TV5725 do this job.

For the QL, it looks like all you want to solve is that the right side of the image is cut off?
This problem has to do with my choice of pixel clocks and scaling factors that lead to the best possible image quality,
but cuts off some pixels if the source makes use of all the available display area.
A fix for that will be an image quality compromise, but it is doable.

Edit2:
Many LCD monitors actually work with home computer timings.
It's simple to give it a try: Select bypass mode in the web ui / presets section.
For my LCD, this works with 15kHz sources, if they're @60Hz. 50Hz works, but only if the source isn't interlaced (288p).
TomDD
Posts: 19
Joined: Wed Apr 10, 2019 9:52 pm
Location: United Kingdom
Contact:

Re: GBS 8200/8220 CFW Project

Post by TomDD »

Thanks for replying Rama.

I removed the Rset circuit as I thought it wouldn't effect the operation of the LM1881 if I wasn't using any of the outputs other than the C-Sync. I think I did read something similar in one of the forums and my basic interpretation of the LM1881 tech specs seemed to verify that, I might be wrong though but it does seem to work fine! I did also see the Sync on Green mod but I didn't fancy messing with the surface mount stuff as I'm not that confident in my soldering skills :-)

For the QL, yes it cuts off a few pixels on the right (only 3 or 4) so if it was possible to fix that even if it lowers the picture quality that would be great especially if it is an option in the menu to turn on/off. I did try the pass through but it wouldn't show anything on my main monitor, on my older monitor which is ok with a 15kHz input it shows fine but keeps loosing sync.
rama
Posts: 1373
Joined: Wed Mar 08, 2017 3:15 pm

Re: GBS 8200/8220 CFW Project

Post by rama »

I think I've been holding on to that pixel clock too eagerly.. Maybe :p

Anyway, do you have a terminal connection to your ESP?
If you do, try sending the following commands:
s5s12s7fjn zzzzz

Your horizontal image should shrink, and in case you use test pictures, they shouldn't look too bad either.
The command chain isn't exact, but please tell me if that's good enough to show all active pixels.
TomDD
Posts: 19
Joined: Wed Apr 10, 2019 9:52 pm
Location: United Kingdom
Contact:

Re: GBS 8200/8220 CFW Project

Post by TomDD »

rama wrote:I think I've been holding on to that pixel clock too eagerly.. Maybe :p

Anyway, do you have a terminal connection to your ESP?
If you do, try sending the following commands:
s5s12s7fjn zzzzz

Your horizontal image should shrink, and in case you use test pictures, they shouldn't look too bad either.
The command chain isn't exact, but please tell me if that's good enough to show all active pixels.
Perfect the whole screen is now visible after a bit of minor tweaking in the Picture Control menu. In fact you could probably even make it a little wider as there is a gap now between the right edge of the screen and the green area (assume that is the true edge of the screen).

Quality looks fine, better than stock FW anyway.

Thanks
TomDD
Posts: 19
Joined: Wed Apr 10, 2019 9:52 pm
Location: United Kingdom
Contact:

Re: GBS 8200/8220 CFW Project

Post by TomDD »

Quick screen shot to show what I mean about the margin

Image
rama
Posts: 1373
Joined: Wed Mar 08, 2017 3:15 pm

Re: GBS 8200/8220 CFW Project

Post by rama »

That's good news then.
I'll try and find parameters that hopefully allow the full area to be shown and still have good quality.
If there's a good match, it can be the new default. Otherwise there can be an "overscan" option or smth.

That green area is the limit of the upscaler / digital processing units.
There are several line buffers that dictate how many sampled pixels can be used when upscaling.
The goal is to maximize these buffers, but not exceed them.
The OFW uses maybe 50% or so, which is one reason for the really bad look with it :p
TomDD
Posts: 19
Joined: Wed Apr 10, 2019 9:52 pm
Location: United Kingdom
Contact:

Re: GBS 8200/8220 CFW Project

Post by TomDD »

rama wrote:That's good news then.
I'll try and find parameters that hopefully allow the full area to be shown and still have good quality.
If there's a good match, it can be the new default. Otherwise there can be an "overscan" option or smth.

That green area is the limit of the upscaler / digital processing units.
There are several line buffers that dictate how many sampled pixels can be used when upscaling.
The goal is to maximize these buffers, but not exceed them.
The OFW uses maybe 50% or so, which is one reason for the really bad look with it :p
Thanks look forward to messing with the next release :-)

Also for anybody that is interested I've finished my custom case and uploaded to Thingiverse https://www.thingiverse.com/thing:3562194. It is based on the original by Maxik234.

Image

Image

Image
User avatar
Gunstar
Posts: 617
Joined: Wed Apr 09, 2014 10:29 am
Location: UK

Re: GBS 8200/8220 CFW Project

Post by Gunstar »

Ooh, nice, I'd like to get back into messing around with a GBS and this case looks like it would be a great fit. How much is it and who do you recommend out of those three printer options on Thingiverse?
retromaniak
Posts: 45
Joined: Wed Dec 26, 2018 9:51 am

Re: GBS 8200/8220 CFW Project

Post by retromaniak »

TomDD - Maybe if you had some time you be able to create a 3D housing model based on this project? I'm asking because at least in my opinion this is one of the most beautiful enclosures I found on the internet, and unfortunately the person responsible for the project has never shared 3D model.
https://imgur.com/r/crtgaming/ue7pV
Image
rama
Posts: 1373
Joined: Wed Mar 08, 2017 3:15 pm

Re: GBS 8200/8220 CFW Project

Post by rama »

Just a suggestion for those cases:
The micro USB port on the ESP8266 dev board should be accessible.
With TomDD's case, simply rotating the NodeMCU and adding a hole for the cable would be fine :)

TomDD:
I worked on the active video problem yesterday. It looks like I can make the 50Hz/PAL presets (at least the x960 one) correct by default.
The 60Hz/NTSC presets however simply don't have a good pixel clock "slot" where all parameters align well.
So I think I'll do the PAL presets and then figure out something for NTSC later.
TomDD
Posts: 19
Joined: Wed Apr 10, 2019 9:52 pm
Location: United Kingdom
Contact:

Re: GBS 8200/8220 CFW Project

Post by TomDD »

Gunstar wrote:Ooh, nice, I'd like to get back into messing around with a GBS and this case looks like it would be a great fit. How much is it and who do you recommend out of those three printer options on Thingiverse?
I've never used any of those printers so not sure who would be best to be honest. In terms of cost I don't think it will be cheap as it takes around 18hrs to print all the parts on my printer. I did check out the cost with the first one and it came to $46 which is about right, I would charge about £30 for this size of print mainly for the time it takes.
Last edited by TomDD on Sun Apr 14, 2019 7:27 pm, edited 1 time in total.
TomDD
Posts: 19
Joined: Wed Apr 10, 2019 9:52 pm
Location: United Kingdom
Contact:

Re: GBS 8200/8220 CFW Project

Post by TomDD »

retromaniak wrote:TomDD - Maybe if you had some time you be able to create a 3D housing model based on this project? I'm asking because at least in my opinion this is one of the most beautiful enclosures I found on the internet, and unfortunately the person responsible for the project has never shared 3D model.
https://imgur.com/r/crtgaming/ue7pV
I'll take a look but I'm pretty happy with my current box so won't promise anything.
TomDD
Posts: 19
Joined: Wed Apr 10, 2019 9:52 pm
Location: United Kingdom
Contact:

Re: GBS 8200/8220 CFW Project

Post by TomDD »

rama wrote:Just a suggestion for those cases:
The micro USB port on the ESP8266 dev board should be accessible.
With TomDD's case, simply rotating the NodeMCU and adding a hole for the cable would be fine :)

TomDD:
I worked on the active video problem yesterday. It looks like I can make the 50Hz/PAL presets (at least the x960 one) correct by default.
The 60Hz/NTSC presets however simply don't have a good pixel clock "slot" where all parameters align well.
So I think I'll do the PAL presets and then figure out something for NTSC later.
I did think about powering the whole thing off the NodeMCU but thought better of it in the end. The NodeMCU can definitely be turned around so maybe and option to pop a hole in the front as you say. I'll look into it.

Thanks for looking into the QL overscan problem. I'm not sure if it is an issue with the NTSC QLs or any other system actually so might just be ok to have an overscan button as you mentioned, which you can turn on/off. If it does fit into the normal PAL modes then great, I use 1080p so perfect if it works with that :-)
User avatar
Gunstar
Posts: 617
Joined: Wed Apr 09, 2014 10:29 am
Location: UK

Re: GBS 8200/8220 CFW Project

Post by Gunstar »

TomDD wrote:
Gunstar wrote:Ooh, nice, I'd like to get back into messing around with a GBS and this case looks like it would be a great fit. How much is it and who do you recommend out of those three printer options on Thingiverse?
I've never used any of those printers so not sure who would be best to be honest. In terms of cost I don't think it will be cheap as it takes around 18hrs to print all the parts on my printer. I did check out the cost with the first one and it came to $46 which is about right, I would charge about £30 for this size of print mainly for the time it takes.
Thanks for the info, much appreciated!
Post Reply