ramapcsx2 / gbs-control

GNU General Public License v3.0
788 stars 110 forks source link

Black screen only #267

Closed M-Reimer closed 2 years ago

M-Reimer commented 3 years ago

After half a day of fiddling I still have no clue why I get absolutely nothing from my SNES.

I've hooked up RGB, a GND line (verfied that it is actually connected in the Scart plug) and the "Sync on Composite" from the SNES to the "S" line (hope that's composite sync).

Then I connected everything as described in the Wiki.

If I power everything, then I have one LED on the GBS-8200 which lights in red all the time and one on the NodeMCU which is blue all the time.

Only very few of the "toggle switches" in the Web GUI work. Most of them just stay off. And all I can get on my TV is a completely black image. Is there any way to find out what is going wrong?

M-Reimer commented 3 years ago

I hooked up a serial console, now, and was able to capture this:

startup
(WiFi): AP mode (SSID: gbscontrol, pass 'qqqqqqqq'): Access 'gbscontrol.local' in your browser
no ext clockgen
<reset>
Chip ID: 1A 1
 G: 3E G: 3F G: 40 G: 41 G: 42 G: 43 G: 44
 R: 3E R: 3F R: 40
 B: 3E B: 3F B: 40 B: 41 B: 42 B: 43 B: 44 B: 45 B: 46 B: 47 B: 48 B: 49
<reset>
Activity detected, input: RGB

2345678
Format change: 2 <stable>
ADC offset: R:40 G:44 B:49
HTotal Adjust: -10, source Hz: 50.009, output Hz: 50.031

preset applied: 1280x720 for PAL 50Hz 

And still have the black screen only. I wonder why it detects "RGB". Shouldn't it say "RGBS" or something like that? Any chance to see what kind of sync it has detected or if it has detected sync at all? Tried two different RGB cables, now. Both work directly on a TV with Scart support. None of them currently works on the GBS.

M-Reimer commented 3 years ago

OK, the image is not actually "black". If I turn the brightness of my TV up quite a bit, then I see a faint picture with the correct resolution.

If I disable gbs-control completely, then all I see with my current input configuration is a message "No signal".

ramapcsx2 commented 3 years ago

I'm sorry, I can't tell what the issue might be. I suspect a problem with the TV, maybe because of the PAL format.. The logs look good. You should get a picture.

M-Reimer commented 3 years ago

Can't be the TV. I use a VGA to HDMI adapter and verified that it works on the VGA port of my Laptop. I start to think that the input stage of my GBS board may be broken. Should my SNES work on the GBS without your firmware?

What about the broken settings switches in Web UI. Is this known?

M-Reimer commented 3 years ago

If my board is dead and I decide to order a new one, then I need some way to test the new one in advance before doing any mods to it.

A few minutes ago, I just took a regular VGA cable and hooked my laptop to the input of the GBS board. It actually got detected as a "unknow screen" and I was able to choose 800x600 as the smallest possible resolution with 50 Hz refresh rate. If I do so, then the "stock firmware" on the GBS board provides me with a green image (whole TV screen covered in a green color with some interference patterns). This image regularly cuts out. Is this expected behavior?

If you don't have broken features in the web UI, could you please compile a version on your system and attach the binary here, so I can upload it via esptool? Just to rule out any library version or compiler issues.

ramapcsx2 commented 3 years ago

I'm really sorry but I don't have time for gbscontrol right now. I can reply to a few questions here and there, but that's about it.

M-Reimer commented 3 years ago

No problem. Thanks anyway for your answers.

I actually get another try now. I'm pretty confident that the board was dead on arrival and the seller was OK with the fact that I've added two pin headers. Probably my returned board will be binned anyway. New board is on its way.

M-Reimer commented 2 years ago

OK. As the new board had the same problem I had a deeper look into my connections and found the problem. I was one pin off on the Scart socket so the RGB was only coupled in capacitively. I have sync problems but I think this can be fixed using a LM1881. I've ordered one and will create the circuit on a breadboard, first, to see if this helps to fix this issue. I'll keep both boards, now. If I manage to get a "nice" result, I can maybe give away one finished scaler.

ramapcsx2 commented 2 years ago

SNES has tricky sync to begin with. It might need a bit more attenuation on the Composite Video (for sync) signal. An LM1881 will do the trick though.