Hi all,
I want to attempt to bring an old 1980's TV set back into use. The set has a SCART socket with RGB capability, I have tested the set with a digital TV adapter box, and the picture and sound work fine connected with SCART:
The picture looks much better than the above in real life. I think that fringing is caused by my phone camera. But you can see that the SCART is working in RGB mode.
Here is my Pi connected up:
I have tested the HDMI to VGA adaptor using an LCD PC monitor and that works well, including sound.
However, with the Pi connected to the TV, I get a steady picture, but it is a grey screen with some vertical bars:
I think this means that the vertical sync signal is working OK but the horizontal sync is not... or the other way around...
SCART RGB output to old TV set
Last edited by PaulRB on Sun Sep 15, 2019 3:29 pm, edited 1 time in total.
Re: SCART RGB output to old TV set
Here are details of the SCART plug on my VGA to SCART lead:
Re: SCART RGB output to old TV set
And here are the connections in the VGA plug:
I can make a schematic showing these connections if needed.- DougieLawson
- Posts: 42313
- Joined: Sun Jun 16, 2013 11:19 pm
- Location: A small cave in deepest darkest Basingstoke, UK
Re: SCART RGB output to old TV set
Have you seen https://www.raspberrypi.org/magpi/teefax/ which uses the analog TV out signal?
Languages using left-hand whitespace for syntax are ridiculous
DMs sent on https://twitter.com/DougieLawson or LinkedIn will be answered next month.
Fake doctors - are all on my foes list.
The use of crystal balls and mind reading is prohibited.
DMs sent on https://twitter.com/DougieLawson or LinkedIn will be answered next month.
Fake doctors - are all on my foes list.
The use of crystal balls and mind reading is prohibited.
Re: SCART RGB output to old TV set
Here is the config.txt I'm using on the Pi:
Can anyone see anything else I need to change to get the horizontal sync working? Or do I need to modify the cable?
Code: Select all
# For more options and information see
# http://rpf.io/configtxt
# Some settings may impact device functionality. See link above for details
# uncomment if you get no picture on HDMI for a default "safe" mode
hdmi_safe=1
# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
disable_overscan=1
# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
overscan_left=16
overscan_right=16
overscan_top=16
overscan_bottom=16
# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720
# uncomment if hdmi display is not detected and composite is being output
hdmi_force_hotplug=1
# uncomment to force a specific HDMI mode (this will force VGA)
hdmi_group=1
hdmi_mode=21
# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
hdmi_drive=2
# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4
# uncomment for composite PAL
#sdtv_mode=2
#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800
# Uncomment some or all of these to enable the optional hardware interfaces
#dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on
# Uncomment this to enable the lirc-rpi module
#dtoverlay=lirc-rpi
# Additional overlays and parameters are documented /boot/overlays/README
# Enable audio (loads snd_bcm2835)
dtparam=audio=on
[pi4]
# Enable DRM VC4 V3D driver on top of the dispmanx display stack
dtoverlay=vc4-fkms-v3d
max_framebuffers=2
[all]
#dtoverlay=vc4-fkms-v3d
Re: SCART RGB output to old TV set
Thanks, that's interesting. But I don't think it helps much with my sync problem (or what I currently believe to be a sync problem).
- DougieLawson
- Posts: 42313
- Joined: Sun Jun 16, 2013 11:19 pm
- Location: A small cave in deepest darkest Basingstoke, UK
Re: SCART RGB output to old TV set
Have you tried wiring an RCA plug to the composite TV header on your Zero? Rather than all that palaver you've got with HDMI converters and VGA.
Languages using left-hand whitespace for syntax are ridiculous
DMs sent on https://twitter.com/DougieLawson or LinkedIn will be answered next month.
Fake doctors - are all on my foes list.
The use of crystal balls and mind reading is prohibited.
DMs sent on https://twitter.com/DougieLawson or LinkedIn will be answered next month.
Fake doctors - are all on my foes list.
The use of crystal balls and mind reading is prohibited.
Re: SCART RGB output to old TV set
I haven't tried that, it might be an interesting test.DougieLawson wrote: ↑Sun Sep 15, 2019 11:58 amHave you tried wiring an RCA plug to the composite TV header on your Zero?
But the reason for all the VGA palaver is to get an RGB signal working, which gives a much higher quality picture than composite.
Re: SCART RGB output to old TV set
Here's how the plugs are wired:
Re: SCART RGB output to old TV set
Also sound, which isn't available on the TV out pin.PaulRB wrote: ↑Sun Sep 15, 2019 12:04 pmI haven't tried that, it might be an interesting test.DougieLawson wrote: ↑Sun Sep 15, 2019 11:58 amHave you tried wiring an RCA plug to the composite TV header on your Zero?
But the reason for all the VGA palaver is to get an RGB signal working, which gives a much higher quality picture than composite.
Unreadable squiggle
Re: SCART RGB output to old TV set
Here's the pinout for VGA:
Yellow wire in my cable (pin 9) is "optional 5V from graphics card". I don't know if my VGA adaptor puts out 5V on pin 9. Must check that with DMM.
My cable sensibly uses red, green and blue wires for the obvious purpose. Purple, grey and orange are the grounds for blue, green and red. Black is also ground. Brown is horizontal sync or combined sync. There is no connection for vertical sync in my cable.Yellow wire in my cable (pin 9) is "optional 5V from graphics card". I don't know if my VGA adaptor puts out 5V on pin 9. Must check that with DMM.
Re: SCART RGB output to old TV set
Here's the pinout for SCART:
Yellow is connected to pin 8, "switching" which I think it's the pin that automatically switches the TV to the scart input, but needs >= 9.5V to do that. And currently it isn't doing that, I have to press the AV button on the front of the set.
Yellow is also connected via 75R to pin 16, "blanking". I guess the resistor is meant to reduce the voltage down to below 3V to indicate an RGB signal (as opposed to <0.4V indicating a composite signal). How that voltage reduction works without a second resistor between the pin and ground to form a voltage divider, I don't know.
So red, blue, green and their respective grounds are as expected in my cable. Black is connected to composite ground. Brown is connected to "video sync in".Yellow is connected to pin 8, "switching" which I think it's the pin that automatically switches the TV to the scart input, but needs >= 9.5V to do that. And currently it isn't doing that, I have to press the AV button on the front of the set.
Yellow is also connected via 75R to pin 16, "blanking". I guess the resistor is meant to reduce the voltage down to below 3V to indicate an RGB signal (as opposed to <0.4V indicating a composite signal). How that voltage reduction works without a second resistor between the pin and ground to form a voltage divider, I don't know.
Re: SCART RGB output to old TV set
I'm currently thinking that my problem is that unconnected vertical sync pin in the VGA plug.
I bought the cable years ago for use with an ATI PC graphics card. And it worked, not with this TV but with another one I no longer own. (EDIT: by which I mean I never tested the cable/ATI card with this TV, I assume it would have worked, not that I tested it with this TV and found that it did not work.) I suspect that this ATI card was able to create a combined sync signal on the horizontal sync pin. I cannot find a way to get the pi to do this.
So I may have to build a circuit to combine the h+v sync into a combined sync signal. There seem to be many circuits out there for doing this, with various levels of complexity.
This one looks reasonably simple: https://www.nexusuk.org/projects/vga2scart/circuit
Can anyone comment on my theory and the suitability of the above circuit?
I bought the cable years ago for use with an ATI PC graphics card. And it worked, not with this TV but with another one I no longer own. (EDIT: by which I mean I never tested the cable/ATI card with this TV, I assume it would have worked, not that I tested it with this TV and found that it did not work.) I suspect that this ATI card was able to create a combined sync signal on the horizontal sync pin. I cannot find a way to get the pi to do this.
So I may have to build a circuit to combine the h+v sync into a combined sync signal. There seem to be many circuits out there for doing this, with various levels of complexity.
This one looks reasonably simple: https://www.nexusuk.org/projects/vga2scart/circuit
Can anyone comment on my theory and the suitability of the above circuit?
Last edited by PaulRB on Sun Sep 15, 2019 5:31 pm, edited 1 time in total.
Re: SCART RGB output to old TV set
I suspect the blanking input isn't making it change to RGB mode. Lack of combined sync might also be a problem but I'd expect something shown there even if it is not locked.
They use a 75 ohm resistor because there is a 75 ohm pull down inside the TV.
Use a multimeter to measure the voltage on that pin when it is plugged into the TV.
They use a 75 ohm resistor because there is a 75 ohm pull down inside the TV.
Use a multimeter to measure the voltage on that pin when it is plugged into the TV.
Re: SCART RGB output to old TV set
Your VGA to SCART cable is merely a cable and your PAL TV will only accept TV format signals ie horizontal frequency of around 15625 Hz. Your setup will only work if the HDMI to VGA converter can be made to output such a horizontal rate. VGA of 640 by 480 by 60Hz progressive has about twice that horizontal rate. That is why you see that vertical black bar in the middle of the screen.
No amount of wiring changes to your VGA to SCART cable is going to change that. Those cables did work with some PC video cards (eg Matrox G400) because the card could be put into a mode which generated RGB signals with standard TV timing.
I see nothing in the published specs of the PiSupply HDMI-VGA unit which suggests it can output 625/50 interlaced or 313/50 progressive. I don't know if the hardware is incapable of doing that or there is no driver support.
No amount of wiring changes to your VGA to SCART cable is going to change that. Those cables did work with some PC video cards (eg Matrox G400) because the card could be put into a mode which generated RGB signals with standard TV timing.
I see nothing in the published specs of the PiSupply HDMI-VGA unit which suggests it can output 625/50 interlaced or 313/50 progressive. I don't know if the hardware is incapable of doing that or there is no driver support.
Quis custodiet ipsos custodes?
Re: SCART RGB output to old TV set
Thanks drgeoff, I appreciate your input and share your doubts about the adaptor.
In this post, I set parameters in config.txt that i hoped would set the appropriate timings.
Specifically:
which I was hoping would set:
Did I get it right? Did I miss anything?
The Pi Supply page says:
In this post, I set parameters in config.txt that i hoped would set the appropriate timings.
Specifically:
Code: Select all
hdmi_mode=21
according to this page.21 576i 50Hz
Did I get it right? Did I miss anything?
The Pi Supply page says:
but it does not say what resolutions it supports "down to". Other adapters I considered advertised 576i@50Hz. I assumed, perhaps naively, that they are all based on the same chip and had the same capabilities, which I know is a dangerous assumption, but we all swim in marketing infested waters!The device handles display resolutions of up to 720p/1080i/1080p
Re: SCART RGB output to old TV set
@drgeoff I think you were correct, the vertical bar was because a progressive scan signal was being sent. The reason, I think, is because I had mistakenly uncommented this line in config.txt:
Code: Select all
# uncomment if you get no picture on HDMI for a default "safe" mode
hdmi_safe=1
I have commented the above line out again. Now, the vertical bar is gone. Unfortunately I still get a grey picture, but at least it is a stable, uniform grey picture.
Now to measure that blanking pin voltage...
Last edited by PaulRB on Mon Sep 16, 2019 6:28 pm, edited 2 times in total.
Re: SCART RGB output to old TV set
Yes, you need between 1 and 3 volts on pin 16 to tell the TV to use the RGB inputs instead of composite from 20.
Quis custodiet ipsos custodes?
Re: SCART RGB output to old TV set
Its zero! So pin 9 on my vga adaptor is not putting out a 5V signal.
I temporarily connected a wire from the 3.3V pad on the Pi's GPIO header to the blanking pin on the SCART plug. Yes! I get a picture! It looks really good. Only problem is the vertical hold. I can adjust it using the control on the set so that the picture is almost steady, but it still creeps up or down slowly.
So I still have vertical sync problem to fix. But great progress this evening!
My VGA adaptor does in fact support 576i @ 50 Hz.
I temporarily connected a wire from the 3.3V pad on the Pi's GPIO header to the blanking pin on the SCART plug. Yes! I get a picture! It looks really good. Only problem is the vertical hold. I can adjust it using the control on the set so that the picture is almost steady, but it still creeps up or down slowly.
So I still have vertical sync problem to fix. But great progress this evening!
My VGA adaptor does in fact support 576i @ 50 Hz.
Re: SCART RGB output to old TV set
You could try the really simple method. Connect both HYSNC and VSYNC of the adaptor to pin 20 of the SCART.
Quis custodiet ipsos custodes?
Re: SCART RGB output to old TV set
I've unsoldered the yellow wire from the VGA plug and extended it so I can connect it to the 5V pin on the Pi's GPIO pins.
As I said at the top of the thread, it looks better than any of these suggest. My phone camera is on low resolution to give a file small enough to upload to the forum, and is probably capturing only one of the interlace frames.Re: SCART RGB output to old TV set
Yup, that fixed it. Vertical sync achieved.
Are there any disadvantages to connecting these two pins together? Should I at least put a couple of resistors in there to limit any current? As shown here, for example:
Re: SCART RGB output to old TV set
I managed to get a couple of 820R (didn't have any 1K) into the VGA plug. Works fine and picture looks good.