Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: The ultimate VGA to SCART adapter  (Read 32408 times)

0 Members and 1 Guest are viewing this topic.

gambaman

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 49
  • Last login:May 28, 2023, 03:27:19 pm
  • SCART VADER
    • hackaday.io/gambaman
The ultimate VGA to SCART adapter
« on: August 13, 2019, 08:35:25 pm »
I have published here an enhanced version of my previous VGA to SCART adapter. Unlike the previous version, the new adapter does not require any external power source nor DC-DC converter to generate the 12V of the SCART status signal thanks to Visenri's indications. Also, the transistors employed to generate the RGB selection signal in the previous version are no longer needed. The adapter has the following pros:

  • It's cheap thanks to the unexpensive PIC16F18313.
  • It automatically detects the polarity of the input VGA sync signals and configures the configurable logic cells (CLC) of the PIC dynamically to generate the SCART composite sync signal correctly.
  • The PIC monitors the input signal and set the composite sync to ground if the frequency of the horizontal sync signal is wrong or if the vertical sync signal does not change. This is useful if you are using it to generate the Csync signal of a very old arcade monitor to protect it. Also, if any of the input sync signal is wrong then the PIC disables the the SCART RGB selection signal and the SCART status signal.
  • Most VGA devices can provide enough power to the PIC so no external power source is required.
  • No external power source nor DC-DC converter is required to generate the 12V of the SCART status signal. It can be generated by the PIC itself as noted by Visenri.
  • Optional aspect ratio selection (16:9 or 4:3).
  • Optional LEDs  to test the power and input sync signals.
  • Optional power source selection.
  • The basic circuit only requires the PIC and a pair of resistors and capacitors.
  • The full circuit fits in a (big) DE-15 enclosure using a single sided PCB and easy to solder through-hole components.





UPDATE: I am happy to say I have found two stores selling implementations of this adapter.

One is https://www.arcadexpress.com/es/arcadevga/457-cable-arcade-vga-scart-usb-5v-12v-con-audio.html
This implementation looks almost identical to the original, except the position of the LEDs.

Another one is http://vga-scart-converter-f-15.mozello.es/catalog/params/category/0/item/1443803/
The appearance of the latter is quite different. The switches are more accessible so that the power supply or the aspect ratio of the screen can be changed without having to open the adapter. Another notable difference is that it has a female VGA input and two SCART outputs, one male and one female. The adapter can be connected directly to the TV with the male SCART connector. Alternatively, it can be connected via the female connector using a SCART cable.




UPDATE: The box version above is not on sale anymore, buy all the design files are available here.

UPDATE: buttersoft has designed a
SOIC version of the adapter
that can be directly solded to the back of a DB15HD male solder plug, and should fit inside any backshell, with room to connect a cable too. You can get it here.



UPDATE: MonochromeVGA is a project from Aitor Gómez to enjoy the charm of those monochrome monitors of the time in VGA displays. It makes it possible to select green, amber or B&W as monochromatic color, among others, as well as to change color to monochrome or vice versa easily. You may ask why I'm posting about it here. The reason is that Aitor has combined the MonochromeVGA with my project to get the MonochromeRGB:



MonochromeRGB allows several possible configurations of use:

-VGA to [optionally monochrome] VGA, without the need for any power supply
-SCART to [optionally monochrome] SCART, also without the need for any power supply
-VGA at 15.7Khz horizontal frequency to [optionally monochrome] SCART with selectable 4:3 <-> 16:9 aspect change for compatible TVs, being necessary 5V power supply via microUSB or from the VGA connector itself

I would like to collaborate with Aitor to develop a dual output version for TATE games. Stay tuned.

UPDATE: buttersoft has designed a passthrough dongle. This one is a double-ended version, male HD15 to female HD15. It has the LED's, taking in H-sync and V-sync and allowing C-sync through only when it detects 15kHz, blocking everything else. It allows you to plug in any VGA or VGA-toBNC or -SCART cable to the out end as required. You can get it here.


« Last Edit: November 29, 2021, 02:44:34 pm by gambaman »

buttersoft

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1758
  • Last login:April 21, 2024, 08:06:32 am
  • Is running at 15kHz
Re: The ultimate VGA to SCART adapter
« Reply #1 on: August 13, 2019, 10:06:45 pm »
Good stuff, i love building stuff like this so i'll give it a look.

And the more i look the more i like it. Very neat. And i like that you've included parts sourcing from reasonable places :)

I notice you've got a cable gland on the end of the DE-15 housing. Do you know where it came from?
« Last Edit: August 13, 2019, 10:28:04 pm by buttersoft »

gambaman

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 49
  • Last login:May 28, 2023, 03:27:19 pm
  • SCART VADER
    • hackaday.io/gambaman
Re: The ultimate VGA to SCART adapter
« Reply #2 on: August 14, 2019, 12:45:47 pm »
I notice you've got a cable gland on the end of the DE-15 housing. Do you know where it came from?

The SCART-SCART cable I employed for that prototype was very short. So, instead of cutting it into halves, I removed one of the male SCART connectors and used its gland for my DE-15. A better alternative is to cut a longer cable into halves. In that way you can use an only cable to make two adapters (one with each half).

Mr. Peabody

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 810
  • Last login:November 05, 2019, 02:30:42 pm
Re: The ultimate VGA to SCART adapter
« Reply #3 on: August 20, 2019, 02:09:22 am »
Is there supposed to be audio in the video?.....

gambaman

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 49
  • Last login:May 28, 2023, 03:27:19 pm
  • SCART VADER
    • hackaday.io/gambaman
Re: The ultimate VGA to SCART adapter
« Reply #4 on: August 20, 2019, 10:08:55 am »
Is there supposed to be audio in the video?.....

I removed most of it. Only the corresponding to the sound test (minute 5 more or less) is left. I used to think I had the voice of James Earl Jones till I recorded it :(.

gambaman

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 49
  • Last login:May 28, 2023, 03:27:19 pm
  • SCART VADER
    • hackaday.io/gambaman
Re: The ultimate VGA to SCART adapter
« Reply #5 on: August 30, 2019, 05:44:01 pm »
Good stuff, i love building stuff like this so i'll give it a look.

I'm sorry if you already got the previous version of the PCB (labeled 1.2). I have realized that the DE-15 was hard to fit because its footprint was wrong  :embarassed:. I have just published a fixed version (labeled 1.4), but I haven't tested it yet.  I have ordered a few PCBs of the new version. I will test them and tell you the results as soon as possible.

buttersoft

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1758
  • Last login:April 21, 2024, 08:06:32 am
  • Is running at 15kHz
Re: The ultimate VGA to SCART adapter
« Reply #6 on: September 01, 2019, 08:44:08 pm »
Hah, no, i didn't order (yet). TBH i have like 6 projects on the go - encoders, SFC mods, CRT repair - and i don't strictly need a scart adapter. I'll get around to it eventually.

gambaman

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 49
  • Last login:May 28, 2023, 03:27:19 pm
  • SCART VADER
    • hackaday.io/gambaman
Re: The ultimate VGA to SCART adapter
« Reply #7 on: November 04, 2019, 01:55:32 pm »
I have uploaded a new version of the PCB (labeled 1.6) with the correct DE-15 footprint and the common ground connections. I have tested it and it works.

renatopdalencar

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 13
  • Last login:March 10, 2020, 01:01:06 am
  • I want to build my own arcade controls!
Re: The ultimate VGA to SCART adapter
« Reply #8 on: November 15, 2019, 04:42:35 pm »
I have no skills with soldering and stuff like that whatsoever. Is there any way to buy this cable (I live in Brazil)?

gambaman

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 49
  • Last login:May 28, 2023, 03:27:19 pm
  • SCART VADER
    • hackaday.io/gambaman
Re: The ultimate VGA to SCART adapter
« Reply #9 on: November 18, 2019, 10:38:44 am »
I have no skills with soldering and stuff like that whatsoever. Is there any way to buy this cable (I live in Brazil)?

As far as I know, nobody is selling the adapter. You can make a request to a brazilian arcade shop (for example https://www.arcadebr.com.br/). Since the design is "libre", they can make and sell the adapter at will.

P.D: Is the SCART connector usual in Brazil?

gambaman

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 49
  • Last login:May 28, 2023, 03:27:19 pm
  • SCART VADER
    • hackaday.io/gambaman
Re: The ultimate VGA to SCART adapter
« Reply #10 on: December 30, 2019, 11:53:36 am »

haynor666

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1471
  • Last login:Yesterday at 03:17:30 am
  • retro maniac
Re: The ultimate VGA to SCART adapter
« Reply #11 on: December 31, 2019, 04:36:37 am »
Great stuff :)

I'm also interested in 2 cables but production will be in Spain. Can add to list even if I live in Poland ?

gambaman

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 49
  • Last login:May 28, 2023, 03:27:19 pm
  • SCART VADER
    • hackaday.io/gambaman
Re: The ultimate VGA to SCART adapter
« Reply #12 on: January 04, 2020, 05:14:11 pm »
Great stuff :)

I'm also interested in 2 cables but production will be in Spain. Can add to list even if I live in Poland ?

You can ask the guy who is selling the adapter. Just send him an e-mail with the subject "ultimate vga" at rgbux666@gmail.com.

haynor666

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1471
  • Last login:Yesterday at 03:17:30 am
  • retro maniac
Re: The ultimate VGA to SCART adapter
« Reply #13 on: January 29, 2020, 01:44:12 pm »
I'm interested and I've already wrote e-mail to You.

gambaman

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 49
  • Last login:May 28, 2023, 03:27:19 pm
  • SCART VADER
    • hackaday.io/gambaman
Re: The ultimate VGA to SCART adapter
« Reply #14 on: January 29, 2020, 06:47:23 pm »
Great, haynor666. But that e-mail address it not mine. Did he respond you? As long as I know, he is still waiting for components.

buttersoft

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1758
  • Last login:April 21, 2024, 08:06:32 am
  • Is running at 15kHz
Re: The ultimate VGA to SCART adapter
« Reply #15 on: April 23, 2020, 07:01:54 am »
Hey gambaman, i'm thinking of giving this a go, or at least planning to, but the stencil file for boring the VGA h9ousing is not recognised by any of the fabs i normally use. It needs an outline. Any chance you could update it to have one? Or suggest an alternate method or something?

gambaman

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 49
  • Last login:May 28, 2023, 03:27:19 pm
  • SCART VADER
    • hackaday.io/gambaman
Re: The ultimate VGA to SCART adapter
« Reply #16 on: April 23, 2020, 06:36:19 pm »
Hey gambaman, i'm thinking of giving this a go, or at least planning to, but the stencil file for boring the VGA h9ousing is not recognised by any of the fabs i normally use. It needs an outline. Any chance you could update it to have one? Or suggest an alternate method or something?

It is because of the oval holes, right? I had problems with that. You have several alternatives:
-You can order the PCB at https://jlcpcb.com/. I ordered them there.
-I can change the footprint if you want.
-You can download the KiCad files from https://cdn.hackaday.io/files/1656347086485056/KiCad_ultimateVGA2SCART.zip and change the footprint.
-There is a guy who was selling DIY kits with all the componentes, including PCB and preprogramed PIC. You can e-mail him at rgbux666@gmail.com with the subject "ultimate vga". I don't know if he is still selling them, anyway.

Please, tell me your impressions.

buttersoft

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1758
  • Last login:April 21, 2024, 08:06:32 am
  • Is running at 15kHz
Re: The ultimate VGA to SCART adapter
« Reply #17 on: April 23, 2020, 09:27:46 pm »
I should have been clearer. The main circuit board itself is fine. It's the second dummy PCB to help cut the housing. If you put that into JLCPCB or OSHpark it fails. This is the "ayuda_corte_carcasa-job.gbrjob" file. I cannot dump that directly onto JLCPCB, and if i archive it into a .zip file, it fails to find an outline. I cannot get the raw file to show up in a gerber viewer either, i cannot see it's size and shape at all using that file.

Is there anything i should be doing? I'd love to be able to order the Dummy PCB as well!

gambaman

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 49
  • Last login:May 28, 2023, 03:27:19 pm
  • SCART VADER
    • hackaday.io/gambaman
Re: The ultimate VGA to SCART adapter
« Reply #18 on: April 24, 2020, 02:31:17 pm »
I should have been clearer. The main circuit board itself is fine. It's the second dummy PCB to help cut the housing. If you put that into JLCPCB or OSHpark it fails. This is the "ayuda_corte_carcasa-job.gbrjob" file. I cannot dump that directly onto JLCPCB, and if i archive it into a .zip file, it fails to find an outline. I cannot get the raw file to show up in a gerber viewer either, i cannot see it's size and shape at all using that file.

Is there anything i should be doing? I'd love to be able to order the Dummy PCB as well!

Sorry for the misunderstanding. I thought the problem was the "real" PCB. In the .zip file I linked you will find a KiCad file called "ayuda_corte_carcasa.pro". Can you use it to generate your own gerber file?

buttersoft

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1758
  • Last login:April 21, 2024, 08:06:32 am
  • Is running at 15kHz
Re: The ultimate VGA to SCART adapter
« Reply #19 on: April 25, 2020, 01:23:39 am »
Hah, no i don't think so. I'm only using EasyEDA online PCB designer, i do not have kicad or anything else :(

gambaman

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 49
  • Last login:May 28, 2023, 03:27:19 pm
  • SCART VADER
    • hackaday.io/gambaman
Re: The ultimate VGA to SCART adapter
« Reply #20 on: April 25, 2020, 03:17:23 pm »
Hah, no i don't think so. I'm only using EasyEDA online PCB designer, i do not have kicad or anything else :(

You can also use EasyEDA. Just do the following:

-Extract the files "ayuda_corte_carcasa.pro" and "ayuda_corte_carcasa.kicad_pcb" from the previously linked zip file.
-Create a new zip with the files you extracted.
-Go to the EasyEDA menu and select document->Open->Kicad
-Select the zip file you have just created.

P.D: KiCad is libre and free. You can download it from https://www.kicad-pcb.org/

buttersoft

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1758
  • Last login:April 21, 2024, 08:06:32 am
  • Is running at 15kHz
Re: The ultimate VGA to SCART adapter
« Reply #21 on: April 25, 2020, 08:53:16 pm »
Ahhh, ok thanks! I've had such terrible time trying to import anything into EasyEDA i think i gave up. It's an awesome site, but not great for reverse-engineering anything, if i can use the term that broadly.

buttersoft

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1758
  • Last login:April 21, 2024, 08:06:32 am
  • Is running at 15kHz
Re: The ultimate VGA to SCART adapter
« Reply #22 on: July 03, 2020, 07:52:06 am »
Hi Gambaman, I've been taking a look at your cool adapter, because i'm hoping to cut it down a little - i only need video and would like to keep the LED's. You mention in your first post that all the circuit strictly needs are the PIC, two resistors and two capacitors.

To keep the LED's as well, the components i seem to have left on the board are the PIC, along with R1, R6, R7, C1 and C2. Should there be another resistor, and if so, which one?

Are C1 and C2 just for power/noise filtering?

Thanks!

gambaman

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 49
  • Last login:May 28, 2023, 03:27:19 pm
  • SCART VADER
    • hackaday.io/gambaman
Re: The ultimate VGA to SCART adapter
« Reply #23 on: July 05, 2020, 09:36:25 am »
Hi Gambaman, I've been taking a look at your cool adapter, because i'm hoping to cut it down a little - i only need video and would like to keep the LED's. You mention in your first post that all the circuit strictly needs are the PIC, two resistors and two capacitors.

To keep the LED's as well, the components i seem to have left on the board are the PIC, along with R1, R6, R7, C1 and C2. Should there be another resistor, and if so, which one?

Maybe you should also leave R5. It is used to lower the 5V of the PIC output to the nominal voltage of the RGB selection (pin 16 of the SCART connector). I think you will probably not break your TV if you connect directly the PIC output to SCART RGB selection, but just in case...

Are C1 and C2 just for power/noise filtering?

Yes. Maybe your implementation will work without them.
« Last Edit: July 05, 2020, 09:51:02 am by gambaman »

gambaman

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 49
  • Last login:May 28, 2023, 03:27:19 pm
  • SCART VADER
    • hackaday.io/gambaman
Re: The ultimate VGA to SCART adapter
« Reply #24 on: July 05, 2020, 09:50:05 am »
With the current firmware, when the PIC detects a correct output, it waits for a long time before activating the output. Some testers say it is annoying because, when they switch to a game with a different resolution, the SCART input on the TV is disabled. I think it can be solved by modifying the firmware. In the source code there is a line like this "#define countdown_duration 30000". The SCART input will reactivate faster if you replace "30000" with a lower value (lower than 2300 and higher than the number of lines of your TV). I suggest mounting the PIC on a socket so that it is possible to test several values without desoldering it.
« Last Edit: July 05, 2020, 01:43:44 pm by gambaman »

buttersoft

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1758
  • Last login:April 21, 2024, 08:06:32 am
  • Is running at 15kHz
Re: The ultimate VGA to SCART adapter
« Reply #25 on: July 05, 2020, 06:52:05 pm »
Thanks for the replies! I'm, using dedicated RGB sets like PVM's, so i won't need the SCART blanking voltage :)

I always like socketing IC's so i can fiddle later, but i hadn't thought of it in this case. That seems like a good idea. I'm no programmer, but I'll see what i need to do to get into the code - it's in C?

gambaman

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 49
  • Last login:May 28, 2023, 03:27:19 pm
  • SCART VADER
    • hackaday.io/gambaman
Re: The ultimate VGA to SCART adapter
« Reply #26 on: July 06, 2020, 07:37:37 pm »
Thanks for the replies! I'm, using dedicated RGB sets like PVM's, so i won't need the SCART blanking voltage :)

Then you may consider the previous version of the adapter. It uses a smaller and cheaper PIC. However, you will have to use this hack if you also want the LEDs.

I always like socketing IC's so i can fiddle later, but i hadn't thought of it in this case. That seems like a good idea. I'm no programmer, but I'll see what i need to do to get into the code - it's in C?

Yes. You can find the source code in the project page. Do you want me to change anything and recompile it?

baritonomarchetto

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 805
  • Last login:Yesterday at 01:51:33 pm
Re: The ultimate VGA to SCART adapter
« Reply #27 on: July 07, 2020, 02:07:33 am »
These projects are fascinating! The only drawback using pics is that you are in the need for programmers... Could you suggest a cheap programmer for pic16f18313?

buttersoft

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1758
  • Last login:April 21, 2024, 08:06:32 am
  • Is running at 15kHz
Re: The ultimate VGA to SCART adapter
« Reply #28 on: July 07, 2020, 06:25:43 am »
EDIT: the TL866 variants do not work for this project, beware!

TL866ii? It's $60AUD, which isn't nothing, but it does so many different chips (including 27C322 roms with an adapter, used in Amiga, SNES and Genesis roms). That's the only time i've needed an adapter, everything else has worked immediately.

Thanks, Gambaman, i'll give the previous version a look. I'll take a look at the code and see if i can figure it out, but if not i'll give you a yell. Cheers :)
« Last Edit: February 16, 2021, 05:08:38 pm by buttersoft »

gambaman

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 49
  • Last login:May 28, 2023, 03:27:19 pm
  • SCART VADER
    • hackaday.io/gambaman
Re: The ultimate VGA to SCART adapter
« Reply #29 on: July 07, 2020, 09:43:32 am »
These projects are fascinating! The only drawback using pics is that you are in the need for programmers... Could you suggest a cheap programmer for pic16f18313?

A friend of mine uses a cheap PICKIT3 Programmer.

Zebidee

  • Trade Count: (+9)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3255
  • Last login:Today at 07:22:14 am
Re: The ultimate VGA to SCART adapter
« Reply #30 on: July 09, 2020, 02:12:42 am »
Thanks for the replies! I'm, using dedicated RGB sets like PVM's, so i won't need the SCART blanking voltage :)

hiya buttersoft, you don't do any blanking for PVMs? I've found that my Sony PVMs need blanking. They seem happy with just bridging pin 20 (sync) to pin 16 (blanking) with a small wire, but they do need some voltage there. Or do you mean AV switching at pin 8? Yeah, think they won't need that.

gambaman - love your work!
Check out my completed projects!


buttersoft

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1758
  • Last login:April 21, 2024, 08:06:32 am
  • Is running at 15kHz
Re: The ultimate VGA to SCART adapter
« Reply #31 on: July 09, 2020, 02:21:44 am »
No no, blanking. Most PVM's don't have SCART to begin with, but the 2730's have an option to turn "superimpose" off for the SCART socket - which means they're always in RGB mode. Unless that's superimpose on, but i think it's off.

Zebidee

  • Trade Count: (+9)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3255
  • Last login:Today at 07:22:14 am
Re: The ultimate VGA to SCART adapter
« Reply #32 on: July 10, 2020, 01:22:34 am »
No no, blanking. Most PVM's don't have SCART to begin with, but the 2730's have an option to turn "superimpose" off for the SCART socket - which means they're always in RGB mode. Unless that's superimpose on, but i think it's off.

Ahhhh, I'll have to fire up my PVM2730QM and try that out. At the moment it is gathering dust in my hot shed. I do recall the "superimpose" switch, but it didn't seem to do anything when I tested it - maybe because my VGA-SCART cable already had blanking voltage!
Check out my completed projects!


buttersoft

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1758
  • Last login:April 21, 2024, 08:06:32 am
  • Is running at 15kHz
Re: The ultimate VGA to SCART adapter
« Reply #33 on: July 29, 2020, 07:15:43 am »
Hi Gambaman,

Alright, I can get into the file and change the parameter, (to 1000) but i'm stuck on how to compile. I've got an AVR toolchain and Git installed, but there's no makefile in your project. And i tried to install MPLAB X but it says there's a missing platform tool called noID which isn't in the downloadable plugins either... ;?

So, if you have any advice i'm all ears. I cannot believe how hard i'm finding it to compile c code, so any pointers would be awesome :)

I'd prefer to compile myself as that way i can test different values, to save asking you to compile a bunch of hexes for me to program.
Cheers!

gambaman

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 49
  • Last login:May 28, 2023, 03:27:19 pm
  • SCART VADER
    • hackaday.io/gambaman
Re: The ultimate VGA to SCART adapter
« Reply #34 on: July 31, 2020, 12:42:04 am »
I can get into the file and change the parameter, (to 1000) but i'm stuck on how to compile. I've got an AVR toolchain and Git installed, but there's no makefile in your project.

Hi, buttersoft. I did not create manually the makefile. Instead, I used MPLAB X IDE.

And i tried to install MPLAB X but it says there's a missing platform tool called noID which isn't in the downloadable plugins either... ;?

Sorry, I don't remember if I had to install anything else.

So, if you have any advice i'm all ears. I cannot believe how hard i'm finding it to compile c code, so any pointers would be awesome :)

I'd prefer to compile myself as that way i can test different values, to save asking you to compile a bunch of hexes for me to program.

Anyway, in case you can not compile it I updated the source and compiled code. You can download it from the project page. I changed the parameter to 740 and works like a charm.

buttersoft

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1758
  • Last login:April 21, 2024, 08:06:32 am
  • Is running at 15kHz
Re: The ultimate VGA to SCART adapter
« Reply #35 on: July 31, 2020, 06:39:55 am »
Hah, i figured it out. I stupidly followed a tutorial and it was doing the wrong thing!

Thanks though, i'll change to 740 and give it a run :)

EDIT: And now it seems my PIC's are on backorder until November :( Any chance there's another PIC the code can be programmed to? Or without too much trouble...

I have to admit all i did to compile was copy-paste-all from your main.c file. All i changed was the countdown duration, to 740, and my hexfile looks different to yours! It gives me a warning too, abhout an arithmetic overflow on line 78 ( NCO1INCL=NCO_increment;). Any ideas what i might be doing wrong there?
« Last Edit: August 01, 2020, 12:32:25 am by buttersoft »

gambaman

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 49
  • Last login:May 28, 2023, 03:27:19 pm
  • SCART VADER
    • hackaday.io/gambaman
Re: The ultimate VGA to SCART adapter
« Reply #36 on: August 03, 2020, 06:44:16 am »
EDIT: And now it seems my PIC's are on backorder until November :( Any chance there's another PIC the code can be programmed to? Or without too much trouble...

The previous version uses a PIC10F320/322. Does it suit you?

I have to admit all i did to compile was copy-paste-all from your main.c file. All i changed was the countdown duration, to 740, and my hexfile looks different to yours!

Click on File->Project Properties and check that the selected device is PIC16F18313.

It gives me a warning too, abhout an arithmetic overflow on line 78 ( NCO1INCL=NCO_increment;). Any ideas what i might be doing wrong there?

It is OK. It warns you because the constant NCO_increment does not fit in NCO1INCL so only the 8 least significant bits will be written there. It is the wanted beahaviour. Note that the other bits are previously stored in NCO1INCH and NCO1INCU.
« Last Edit: August 27, 2020, 10:53:21 am by gambaman »

buttersoft

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1758
  • Last login:April 21, 2024, 08:06:32 am
  • Is running at 15kHz
Re: The ultimate VGA to SCART adapter
« Reply #37 on: August 25, 2020, 06:13:15 am »
baritonomarchetto I made a big mistake! IT doesn't look like the TL866 can program the PIC16F18313. I'm going to have to grab that one Gambaman recommended, i think.

gambaman

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 49
  • Last login:May 28, 2023, 03:27:19 pm
  • SCART VADER
    • hackaday.io/gambaman
Re: The ultimate VGA to SCART adapter
« Reply #38 on: August 27, 2020, 03:23:52 pm »
baritonomarchetto I made a big mistake! IT doesn't look like the TL866 can program the PIC16F18313. I'm going to have to grab that one Gambaman recommended, i think.
I'm sorry to hear that. Was it very expensive?

buttersoft

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1758
  • Last login:April 21, 2024, 08:06:32 am
  • Is running at 15kHz
Re: The ultimate VGA to SCART adapter
« Reply #39 on: August 27, 2020, 10:24:50 pm »
About $25 AUD. I grabbed the exact one you linked to as it seemed to come with the better ZIF-socket adapter. I couldn't use the other PIC10 chip in your simpler adapter either, i'd need the programmer for that too. The worst part is waiting 6 weeks for it to arrive :/ I do plan to make a few of these SCART adapters, and play around with the design. And i'm sure i'll want to program something else in future.

I'm still a bit overwhelmed by MPLAB X IDE though, but i think all i need to do is import the .hex file, then build the project, using the programmer as the device. The target IC being a PIC16F18313 should already be set up, yes?

Also, i was half planning to use this for the MiSTer. Do you know if the H-sync input for the PIC16F18313 will pass composite sync through? Does it depend on what the v-sync port is doing as well?

Also, great avatar! I have to steal that picture :)
« Last Edit: August 28, 2020, 12:04:45 am by buttersoft »

gambaman

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 49
  • Last login:May 28, 2023, 03:27:19 pm
  • SCART VADER
    • hackaday.io/gambaman
Re: The ultimate VGA to SCART adapter
« Reply #40 on: August 28, 2020, 11:00:11 am »
I'm still a bit overwhelmed by MPLAB X IDE though, but i think all i need to do is import the .hex file, then build the project, using the programmer as the device. The target IC being a PIC16F18313 should already be set up, yes?

Sorry, I'm quite unskilled. Probably you can use MPLAB X IDE to write the PIC without having to build the project, but I don't know how. If you are going to rebuild the project then you don't need the .hex file. Just select the target IC, add the source .c code and, just in case, press "Clean and Build Project". Then, to write each PIC press "Make and Program Device".

Also, i was half planning to use this for the MiSTer. Do you know if the H-sync input for the PIC16F18313 will pass composite sync through? Does it depend on what the v-sync port is doing as well?

Sorry, I have no idea. Does the MiSTer have have a composite sync output? If so, why do you need the adapter?  Can't you connect it directly to the composite sync input of the SCART?

Also, great avatar! I have to steal that picture :)

I'm happy to see you liked it, althought it would probably loose a battle with Usagi  ;)

buttersoft

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1758
  • Last login:April 21, 2024, 08:06:32 am
  • Is running at 15kHz
Re: The ultimate VGA to SCART adapter
« Reply #41 on: August 30, 2020, 07:39:42 am »
Probably you can use MPLAB X IDE to write the PIC without having to build the project, but I don't know how. If you are going to rebuild the project then you don't need the .hex file. Just select the target IC, add the source .c code and, just in case, press "Clean and Build Project". Then, to write each PIC press "Make and Program Device".

Expect to hear from me in a month when the PICKIT 3.5 arrives and i can't figure it out, lol :) You updated the source.c file to switch resolutions in 740 lines?

Quote
Does the MiSTer have have a composite sync output? If so, why do you need the adapter?  Can't you connect it directly to the composite sync input of the SCART?
https://github.com/MiSTer-devel/Main_MiSTer/wiki/Direct-Video
The MiSTer has a setting called direct_video which takes the native video output of the FPGA cores and pumps it out the VGA port on the I/O board, if you have one, and also out the inbuilt HDMI port. It also has an option to turn on composite sync, yes. And with almost any cheap HDMI-to-VGA converter you get 240p RGBS. But the MiSTer will pump composite sync at any res, i think. And not all cores output natively in 240p (some microcomputers, Apple, 486, etc are all higher.)

It would be nice if your adapter would work with composite sync under that environment, i guess. You could also just turn off composite sync and use normal 240p RGBHV however.

Quote
I'm happy to see you liked it, althought it would probably loose a battle with Usagi  ;)
To Usagi as he used to be. Nowdays everyone whips his butt, lol :)
« Last Edit: August 30, 2020, 07:41:32 am by buttersoft »

gambaman

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 49
  • Last login:May 28, 2023, 03:27:19 pm
  • SCART VADER
    • hackaday.io/gambaman
Re: The ultimate VGA to SCART adapter
« Reply #42 on: August 30, 2020, 01:01:54 pm »
Expect to hear from me in a month when the PICKIT 3.5 arrives and i can't figure it out, lol :) You updated the source.c file to switch resolutions in 740 lines?

You mean the countdown_duration parameter? Yes, it has been updated.

The MiSTer has a setting called direct_video which takes the native video output of the FPGA cores and pumps it out the VGA port on the I/O board, if you have one, and also out the inbuilt HDMI port. It also has an option to turn on composite sync, yes. And with almost any cheap HDMI-to-VGA converter you get 240p RGBS. But the MiSTer will pump composite sync at any res, i think. And not all cores output natively in 240p (some microcomputers, Apple, 486, etc are all higher.)

It would be nice if your adapter would work with composite sync under that environment, i guess. You could also just turn off composite sync and use normal 240p RGBHV however.

I'm a bit confused. The adapter generates the composite sync requiered by the TV from Hsync and Vsync. If the MiSTer can generate the composite sync, it does not need this adapter.

buttersoft

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1758
  • Last login:April 21, 2024, 08:06:32 am
  • Is running at 15kHz
Re: The ultimate VGA to SCART adapter
« Reply #43 on: August 30, 2020, 07:52:35 pm »
It would be for protection from signals over 15kHz, in this case. Not a massive gain, i was merely curious as to whether it could handle composite sync.

gambaman

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 49
  • Last login:May 28, 2023, 03:27:19 pm
  • SCART VADER
    • hackaday.io/gambaman
Re: The ultimate VGA to SCART adapter
« Reply #44 on: August 31, 2020, 09:59:14 am »
It would be for protection from signals over 15kHz, in this case. Not a massive gain, i was merely curious as to whether it could handle composite sync.

I'm sorry it can not handle it. Anyway, maybe the overfrequency protection is useless in this case. I don't know anything about TV internals. Can it be damaged if the frequency is too high?

buttersoft

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1758
  • Last login:April 21, 2024, 08:06:32 am
  • Is running at 15kHz
Re: The ultimate VGA to SCART adapter
« Reply #45 on: August 31, 2020, 10:29:53 pm »
I don't think any TV or PVM from about 1990 onwards would be damaged, they way they capture sync means they'll just fail to sync to anything outside their range. But i'm sure it's best to be safe. Some old Arcade monitors and older computer monitors certainly will be damaged, as they're circuitry was only meant to see 15kHz, and they will still work to capture whatever signal is input and damage themselves. They may not fail instantly, but in some cases the damage can be cumulative.

Those wouldn't have SCART sockets of course, but i'm not using SCART and I'm building a couple of your adapters :) I was just trying to find out what they can handle and what uses they might be put to.
« Last Edit: September 01, 2020, 08:06:06 pm by buttersoft »

gambaman

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 49
  • Last login:May 28, 2023, 03:27:19 pm
  • SCART VADER
    • hackaday.io/gambaman
Re: The ultimate VGA to SCART adapter
« Reply #46 on: September 11, 2020, 11:42:06 am »
I am happy to say I have found two stores selling implementations of this adapter.

One is https://www.arcadexpress.com/es/arcadevga/457-cable-arcade-vga-scart-usb-5v-12v-con-audio.html
This implementation looks almost identical to the original, except the position of the LEDs.

Another one is http://vga-scart-converter-f-15.mozello.es/catalog/params/category/0/item/1443803/
The appearance of the latter is quite different. The switches are more accessible so that the power supply or the aspect ratio of the screen can be changed without having to open the adapter. Another notable difference is that it has a female VGA input and two SCART outputs, one male and one female. The adapter can be connected directly to the TV with the male SCART connector. Alternatively, it can be connected via the female connector using a SCART cable.
« Last Edit: September 12, 2020, 12:42:20 pm by gambaman »

buttersoft

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1758
  • Last login:April 21, 2024, 08:06:32 am
  • Is running at 15kHz
Re: The ultimate VGA to SCART adapter
« Reply #47 on: October 22, 2020, 06:35:41 am »
Hi gambaman, just wanted to say I got the pickit 3 and a few pics have have been giving this vs a whirl! It all works very nicely.  I did modify your original design,  I have one version that has RGBS and the LEDs and it fits into a db15hd backshell - same as a regular db9 backshell. It uses an soic version of the pic chip.

I thought it might be nice to make some 15khz detector dongles, sort of thing. But it's not too hard to add a cable or cables in there as well.

I'll upload the modded design in a couple of days when I get back from holidays :)
« Last Edit: October 22, 2020, 06:37:33 am by buttersoft »

gambaman

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 49
  • Last login:May 28, 2023, 03:27:19 pm
  • SCART VADER
    • hackaday.io/gambaman
Re: The ultimate VGA to SCART adapter
« Reply #48 on: October 27, 2020, 01:06:53 pm »
Hi gambaman, just wanted to say I got the pickit 3 and a few pics have have been giving this vs a whirl! It all works very nicely.  I did modify your original design,  I have one version that has RGBS and the LEDs and it fits into a db15hd backshell - same as a regular db9 backshell. It uses an soic version of the pic chip.

I thought it might be nice to make some 15khz detector dongles, sort of thing. But it's not too hard to add a cable or cables in there as well.

I'll upload the modded design in a couple of days when I get back from holidays :)

I'm happy to hear that. Please, upload photos.

buttersoft

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1758
  • Last login:April 21, 2024, 08:06:32 am
  • Is running at 15kHz
Re: The ultimate VGA to SCART adapter
« Reply #49 on: October 27, 2020, 09:09:11 pm »
Please let me know if the project doesn't share properly, i haven't had to do this before!
https://easyeda.com/account/project/detail?project=b3a7e09672ef4b80a204782462e99254

can be ordered cheapest from OshPark, but you can also download the gerbers from there and upload to another fab:
https://oshpark.com/shared_projects/tDs1Slud

I built the only SOIC PIC i have right now into one adapter, but the 3d models of the boards look like this:


It solders directly to the back of a DB15HD male solder plug, and should fit inside any backshell, with room to connect a cable too.
« Last Edit: October 28, 2020, 12:27:26 am by buttersoft »

haynor666

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1471
  • Last login:Yesterday at 03:17:30 am
  • retro maniac
Re: The ultimate VGA to SCART adapter
« Reply #50 on: February 05, 2021, 09:37:22 am »
I am happy to say I have found two stores selling implementations of this adapter.

One is https://www.arcadexpress.com/es/arcadevga/457-cable-arcade-vga-scart-usb-5v-12v-con-audio.html
This implementation looks almost identical to the original, except the position of the LEDs.

Another one is http://vga-scart-converter-f-15.mozello.es/catalog/params/category/0/item/1443803/
The appearance of the latter is quite different. The switches are more accessible so that the power supply or the aspect ratio of the screen can be changed without having to open the adapter. Another notable difference is that it has a female VGA input and two SCART outputs, one male and one female. The adapter can be connected directly to the TV with the male SCART connector. Alternatively, it can be connected via the female connector using a SCART cable.

I bought two VGA F-15 some time ago (thanks for help with this gambaman) and so far works very nice. Price is also very good.
One thing I noticed - sometimes device fails to switch back TV signal after resolution change. I have to quit game and start again just to force resolution change. It does happen rarely so not a problem for me. Putting device directly in TV scart is also quite handy - no need for scart cable. This is very comfortable for me because I have TV very close to PC.
« Last Edit: February 05, 2021, 09:39:48 am by haynor666 »

gambaman

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 49
  • Last login:May 28, 2023, 03:27:19 pm
  • SCART VADER
    • hackaday.io/gambaman
Re: The ultimate VGA to SCART adapter
« Reply #51 on: February 08, 2021, 05:57:30 am »
One thing I noticed - sometimes device fails to switch back TV signal after resolution change. I have to quit game and start again just to force resolution change. It does happen rarely so not a problem for me.

Hi. Do you mean that sometimes resolution dosen't change when switching games? Does it happen with any emulator?

gambaman

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 49
  • Last login:May 28, 2023, 03:27:19 pm
  • SCART VADER
    • hackaday.io/gambaman
Re: The ultimate VGA to SCART adapter
« Reply #52 on: February 08, 2021, 11:55:47 am »
MonochromeVGA is a project from Aitor Gómez to enjoy the charm of those monochrome monitors of the time in VGA displays. It makes it possible to select green, amber or B&W as monochromatic color, among others, as well as to change color to monochrome or vice versa easily. You may ask why I'm posting about it here. The reason is that Aitor has combined the MonochromeVGA with my project to get the MonochromeRGB:



MonochromeRGB allows several possible configurations of use:

-VGA to [optionally monochrome] VGA, without the need for any power supplyA
-SCART to [optionally monochrome] SCART, also without the need for any power supply
-VGA at 15.7Khz horizontal frequency to [optionally monochrome] SCART with selectable 4:3 <-> 16:9 aspect change for compatible TVs, being necessary 5V power supply via microUSB or from the VGA connector itself

I would like to collaborate with Aitor to develop a dual output version for TATE games. Stay tuned.
« Last Edit: February 08, 2021, 06:31:56 pm by gambaman »

haynor666

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1471
  • Last login:Yesterday at 03:17:30 am
  • retro maniac
Re: The ultimate VGA to SCART adapter
« Reply #53 on: February 09, 2021, 05:22:10 pm »
One thing I noticed - sometimes device fails to switch back TV signal after resolution change. I have to quit game and start again just to force resolution change. It does happen rarely so not a problem for me.

Hi. Do you mean that sometimes resolution dosen't change when switching games? Does it happen with any emulator?

Sometimes after starting game I get black screen - TV displays OSD info and looks like TV is not getting any signal. Today I've tested many games but it didn't happen even single time.

gambaman

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 49
  • Last login:May 28, 2023, 03:27:19 pm
  • SCART VADER
    • hackaday.io/gambaman
Re: The ultimate VGA to SCART adapter
« Reply #54 on: February 10, 2021, 06:42:14 am »
One thing I noticed - sometimes device fails to switch back TV signal after resolution change. I have to quit game and start again just to force resolution change. It does happen rarely so not a problem for me.

Hi. Do you mean that sometimes resolution dosen't change when switching games? Does it happen with any emulator?

Sometimes after starting game I get black screen - TV displays OSD info and looks like TV is not getting any signal. Today I've tested many games but it didn't happen even single time.

Strange. I don't know the reason. I'm sorry I can't help you.  :-[

buttersoft

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1758
  • Last login:April 21, 2024, 08:06:32 am
  • Is running at 15kHz
Re: The ultimate VGA to SCART adapter
« Reply #55 on: February 15, 2021, 08:01:38 pm »
So that mod for passthrough dongle i was working on is done. This one is a double-ended version, male HD15 to female HD15. It has the LED's, taking in H-sync and V-sync and allowing C-sync through only when it detects 15kHz, blocking everything else. It allows you to plug in any VGA or VGA-toBNC or -SCART cable to the out end as required.

Points to note:
-You will need to wire the RGB lines from input to output yourself.
-You will need to wire up all the input/output pins on the PCB including all ground lines (just in case)
-You will need to fab the board at 0.8mm thick.
-You will need to either use a PCB HD15 male plug or trim a solder HD15 male plug. (https://www.aliexpress.com/item/1005001418455591.html?spm=a2g0s.9042311.0.0.1f164c4dN9vaBg)
-You will need to 3D-print the housing for yourself :)
-Make sure you have the means to program the PIC before doing anything else like ordering parts!

More general info is in this thread :)

PCB - https://oshpark.com/shared_projects/mMqybOjf
housing - https://anonfiles.com/vbg3f5J7p0/DB9_double_mine_-_complete_tiny_v5_stl PM for updated link, pls!





« Last Edit: August 10, 2022, 04:09:19 am by buttersoft »

Gunstar

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 17
  • Last login:March 19, 2024, 08:31:08 am
  • 2d forever
Re: The ultimate VGA to SCART adapter
« Reply #56 on: February 19, 2021, 09:36:32 am »
@buttersoft - Does your redesign use Zener and Schottky diodes?

buttersoft

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1758
  • Last login:April 21, 2024, 08:06:32 am
  • Is running at 15kHz
Re: The ultimate VGA to SCART adapter
« Reply #57 on: February 24, 2021, 05:55:24 pm »
No it does not. My version is cut down from the original, and uses no diodes. Were you thinking i should add some to this reduced design?

gambaman

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 49
  • Last login:May 28, 2023, 03:27:19 pm
  • SCART VADER
    • hackaday.io/gambaman
Re: The ultimate VGA to SCART adapter
« Reply #58 on: November 29, 2021, 02:48:06 pm »
UPDATE: They do not sell the box version anymore, buy all the design files are available here.

oomek

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 268
  • Last login:December 08, 2023, 02:31:38 pm
  • Mame forever.
    • https://github.com/oomek
Re: The ultimate VGA to SCART adapter
« Reply #59 on: February 21, 2022, 04:19:37 pm »
It's really sad they are not making it anymore. I would really sink my teeth in 2 of them F15s
http://vga-scart-converter-f-15.mozello.es/catalog/params/category/0/item/1443803/

gambaman

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 49
  • Last login:May 28, 2023, 03:27:19 pm
  • SCART VADER
    • hackaday.io/gambaman
Re: The ultimate VGA to SCART adapter
« Reply #60 on: February 23, 2022, 09:49:19 am »
It's really sad they are not making it anymore. I would really sink my teeth in 2 of them F15s
http://vga-scart-converter-f-15.mozello.es/catalog/params/category/0/item/1443803/

The MonochromeRGB converter is more expensive, but you can buy it here: https://hackaday.io/project/176201-monochromergb

cools

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 645
  • Last login:March 11, 2024, 02:59:06 pm
  • Arcade Otaku Sysadmin
    • Arcade Otaku
Re: The ultimate VGA to SCART adapter
« Reply #61 on: August 08, 2022, 04:45:17 am »
I bought one of the premade cables from Arcadexpress earlier on in the year, and I'm trying to understand if it's faulty or not.

I've been getting video interference with most TVs I've tried it with. I've also had audio interference.

I thought it might be a ground loop problem, but I've discovered that *just having the cable plugged in* creates audio noise on the TVs SCART input. Other SCART cables connected to the same input do not do this. Nothing is connected at the other end of the cable.

Handling the VGA end increases the noise, especially with a 3.5mm cable connected. Other SCART cables I *have* to touch the audio pins to induce noise, which I'd expect.

Is the cable faulty or is this something to be expected in the design?

Zebidee

  • Trade Count: (+9)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3255
  • Last login:Today at 07:22:14 am
Re: The ultimate VGA to SCART adapter
« Reply #62 on: August 08, 2022, 05:36:50 am »
Cools, are the video/audio grounds connected to the shield ground? That would explain the noise while handling VGA end.

If the cable has poor shielding that can create similar issues too.

Probably a good idea to check what is connected to ground with a DMM. May as well check for resistance on the audio and video lines while you are there too.

Because the video and audio grounds are usually shared at both the TV and PC ends, you may simply find that running audio out to some desktop speakers works better than through the TV. A ground loop isolator may also help. But it sounds like you have video interference as well.

Before you could buy them from shops and aliexpress, I used to make similar cables by hand at my kitchen bench for forum members, and a few extra hobby dollars, after the kids had gone to sleep. 1-2 hours for a cable. Was a fun "gig" economy thing to do that helped other retrogamers.

I still make my own cables and they are still the best (of course! :P ), but can't really compete with the Arcadexpress prices vs my time and effort.

FWIW, I usually left out the audio from my VGA/SCART cables - if you really want to, for most TVs you can simply run a cheap cable (3.5mm male to red/white RCA male) and it is done anyway.

Check out my completed projects!


cools

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 645
  • Last login:March 11, 2024, 02:59:06 pm
  • Arcade Otaku Sysadmin
    • Arcade Otaku
Re: The ultimate VGA to SCART adapter
« Reply #63 on: August 09, 2022, 12:08:20 pm »
Thanks Zebidee. I took a meter to it, and discovered the SCART plug wasn't grounded properly. Opening it up, the metal shield wasn't connected to pin 21, I guess it had jiggled out in transit. Slotting that pin back into place solved the crazy bad interference I was getting.

While open, I spotted none of the R G B grounds were connected either, and the chosen cable didn't have enough conductors to support them. Checked the VGA end and they were empty on the PCB too.

The original design says some connections are optional, but since I was still seeing and hearing interference, I figured I should just replace the whole SCART cable part wirh a fully wired one and see what happens.

4 hours and some sorely tested patience later, I've done that, along with belt-and-braces joining all the video grounds. The video noise was still present, albeit reduced further. Audio noise, no difference.

I've done a bunch more messing around, not sure if its video card or mains socket but fingers crossed I've eliminated all video noise. Audio is there but the level is pretty low - low enough at  normal volume for it not to be audible anyway. Might try your suggestion although I would need to inject the audio into the SCART plug as none of my TVs have a separate input - should I just make sure audio and video grounds are separated in the cable and see if that makes a difference?

Zebidee

  • Trade Count: (+9)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3255
  • Last login:Today at 07:22:14 am
Re: The ultimate VGA to SCART adapter
« Reply #64 on: August 09, 2022, 09:31:18 pm »
Thanks Zebidee. I took a meter to it, and discovered the SCART plug wasn't grounded properly. Opening it up, the metal shield wasn't connected to pin 21, I guess it had jiggled out in transit. Slotting that pin back into place solved the crazy bad interference I was getting.

While open, I spotted none of the R G B grounds were connected either, and the chosen cable didn't have enough conductors to support them. Checked the VGA end and they were empty on the PCB too.

The original design says some connections are optional, but since I was still seeing and hearing interference, I figured I should just replace the whole SCART cable part wirh a fully wired one and see what happens.

That is good news!  :)

You only need one ground from the VGA - it depends on your cable, but typically it will be connected to pin 10 or 5.

Pins 6,7,8 are often not used, but usually connected/soldered to ground at the video card and TV ends anyway.

For making a VGA-SCART video cable, you need just six wires from VGA. RGB (1,2,3) + syncH&V (13,14) + GND (5,6,7,8,10). Just twist all the available VGA grounds (video+sync, not shield) together and run them into one of the SCART RGB ground pins.

Make sure you don't have any other random wires from VGA connected to SCART ground, here I'm talking mostly about the monitor ID/data pins (VGA 11,12,15) or the 5v pin (VGA 9). The wires can be any colour, so don't assume, check with DMM.

You'll also need to link the syncs together for SCART. Exactly how, and what your cable does with sync, is another issue we can get to later.

Quote
4 hours and some sorely tested patience later, I've done that, along with belt-and-braces joining all the video grounds. The video noise was still present, albeit reduced further. Audio noise, no difference.

I've done a bunch more messing around, not sure if its video card or mains socket but fingers crossed I've eliminated all video noise. Audio is there but the level is pretty low - low enough at  normal volume for it not to be audible anyway. Might try your suggestion although I would need to inject the audio into the SCART plug as none of my TVs have a separate input - should I just make sure audio and video grounds are separated in the cable and see if that makes a difference?


Separating the video/audio grounding points may make a notable difference. Even with all the grounds connected back at TV/PC, the electrons still seek the shortest path of least resistance. If you can give the audio a ground return that is a little more direct, it will take it, and interfere less with your video ground return.

Video and audio signals operate at very different frequency levels (Mhz vs Khz) and there is usually some frequency filtering, so providing better ground returns may help.

Having said this, you will probably still get some interference, a kind of variable hum, sometimes sounds like a Jedi light sabre, with running the game audio output through the TV. In my experience, the hum varies mostly with screen brightness, a strong indication of voltage regulation issues. There are some very powerful voltages going around in TVs, and their voltage regulation and noise filtering can only do so much.

This is why, whenever I use a TV for a cab, I usually prefer a separate audio amplifier with its own power supply. Effectively, this separates the video and audio systems. The TV speakers can be re-used for $zero if you want, or get some new ones (speaker are where prices can be whatever you are willing to pay). There are some some decent & inexpensive audio board amps available with a range of features, choose according to your taste (prices vary with features, but around $5 to $30, check your marketplace). This also makes it easier to control things like volume, bass/treble etc.

In my current Aussie lowboy build I'm using a ZX-502MT (cost <$10) like this (clicking on pic will take you to the thread discussion):





Finally, installing a ground loop isolator for the audio inputs may help. There are many simple board-type audio isolators available under $10, so worth a try. They come with a range of different input/output options for attaching audio cables, from RCA connectors to screw terminals to 3.5mm and combos. Search your favourite online marketplace. For example:

Audio ground loop isolator



« Last Edit: August 09, 2022, 09:35:01 pm by Zebidee »
Check out my completed projects!


gambaman

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 49
  • Last login:May 28, 2023, 03:27:19 pm
  • SCART VADER
    • hackaday.io/gambaman
Re: The ultimate VGA to SCART adapter
« Reply #65 on: March 10, 2023, 10:15:54 am »
Hello. Is it possible to buy the dongle assembled? A friend of mine is interested.

So that mod for passthrough dongle i was working on is done. This one is a double-ended version, male HD15 to female HD15. It has the LED's, taking in H-sync and V-sync and allowing C-sync through only when it detects 15kHz, blocking everything else. It allows you to plug in any VGA or VGA-toBNC or -SCART cable to the out end as required.

Points to note:
-You will need to wire the RGB lines from input to output yourself.
-You will need to wire up all the input/output pins on the PCB including all ground lines (just in case)
-You will need to fab the board at 0.8mm thick.
-You will need to either use a PCB HD15 male plug or trim a solder HD15 male plug. (https://www.aliexpress.com/item/1005001418455591.html?spm=a2g0s.9042311.0.0.1f164c4dN9vaBg)
-You will need to 3D-print the housing for yourself :)
-Make sure you have the means to program the PIC before doing anything else like ordering parts!

More general info is in this thread :)

PCB - https://oshpark.com/shared_projects/mMqybOjf
housing - https://anonfiles.com/vbg3f5J7p0/DB9_double_mine_-_complete_tiny_v5_stl PM for updated link, pls!





buttersoft

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1758
  • Last login:April 21, 2024, 08:06:32 am
  • Is running at 15kHz
Re: The ultimate VGA to SCART adapter
« Reply #66 on: March 10, 2023, 05:24:20 pm »
Well, for the record, i don't build them to sell as there wouldn't be any profit in it. I did make one or two spares though, so PM me and we can work something out :)

EDIT: Gambaman, did you PM me?
« Last Edit: March 18, 2023, 08:35:51 pm by buttersoft »

Rion

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 69
  • Last login:Today at 03:29:10 am
  • 240p, 480i
Re: The ultimate VGA to SCART adapter
« Reply #67 on: March 25, 2023, 08:32:42 am »


gambaman (SCART VADER)
I see that you back in 07/28/2020 improved the resolution switching.
Is there any way to improve it even further?
Seeing as some games in Retroarch are struggling when switching from 240p to 480i.
« Last Edit: March 25, 2023, 08:38:15 am by Rion »

Rion

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 69
  • Last login:Today at 03:29:10 am
  • 240p, 480i
Re: The ultimate VGA to SCART adapter
« Reply #68 on: March 28, 2023, 05:57:05 pm »
Well, for the record, i don't build them to sell as there wouldn't be any profit in it. I did make one or two spares though, so PM me and we can work something out :)

EDIT: Gambaman, did you PM me?

PM sent

JP24

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 1
  • Last login:April 29, 2023, 09:17:20 pm
  • I want to build my own arcade controls!
Re: The ultimate VGA to SCART adapter
« Reply #69 on: April 17, 2023, 03:49:15 pm »
So that mod for passthrough dongle i was working on is done. This one is a double-ended version, male HD15 to female HD15. It has the LED's, taking in H-sync and V-sync and allowing C-sync through only when it detects 15kHz, blocking everything else. It allows you to plug in any VGA or VGA-toBNC or -SCART cable to the out end as required.

Points to note:
-You will need to wire the RGB lines from input to output yourself.
-You will need to wire up all the input/output pins on the PCB including all ground lines (just in case)
-You will need to fab the board at 0.8mm thick.
-You will need to either use a PCB HD15 male plug or trim a solder HD15 male plug. (https://www.aliexpress.com/item/1005001418455591.html?spm=a2g0s.9042311.0.0.1f164c4dN9vaBg)
-You will need to 3D-print the housing for yourself :)
-Make sure you have the means to program the PIC before doing anything else like ordering parts!

More general info is in this thread :)

PCB - https://oshpark.com/shared_projects/mMqybOjf
housing - https://anonfiles.com/vbg3f5J7p0/DB9_double_mine_-_complete_tiny_v5_stl PM for updated link, pls!

I'm very interested in building this!  Do you have a components list to complete this project? I think I have them all figured out (pretty green in this realm) just not sure on the 10n cap--is it utilizing this one?... https://es.rs-online.com/web/p/condensadores-ceramicos-multicapa/5373369

Also I'm too new to this forum, so can't PM for your updated model link.

Thanks!

buttersoft

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1758
  • Last login:April 21, 2024, 08:06:32 am
  • Is running at 15kHz
Re: The ultimate VGA to SCART adapter
« Reply #70 on: April 17, 2023, 07:19:40 pm »
I have uploaded the model here - https://anonfiles.com/W3EaXel0z2/DB9_double_complete_tiny_v5_stl

The caps and the resistors are all 1206 SMD packages. The caps are 10nF and 100nF - and are optional, though recommended, i think. (The cap you linked to was not SMD/surface-mount and was 2.2nF)

Make SURE you have a device that can program the PIC first, like a PicKit 3 or something.


gambaman

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 49
  • Last login:May 28, 2023, 03:27:19 pm
  • SCART VADER
    • hackaday.io/gambaman
Re: The ultimate VGA to SCART adapter
« Reply #71 on: May 28, 2023, 03:27:36 pm »


gambaman (SCART VADER)
I see that you back in 07/28/2020 improved the resolution switching.
Is there any way to improve it even further?
Seeing as some games in Retroarch are struggling when switching from 240p to 480i.

Sorry, I have just read your post. Not sure what you mean. A resolution switch should just deactivate the output for a pair of frames.

buttersoft

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1758
  • Last login:April 21, 2024, 08:06:32 am
  • Is running at 15kHz
Re: The ultimate VGA to SCART adapter
« Reply #72 on: June 06, 2023, 08:15:05 pm »
I have decided to make a small batch of the passthrough protection dongles for sale. I'll put up a separate post with more info shortly.

Gambaman, i'd love to talk to you about compiling your code for myself - my last attempt at this went pear-shaped and it'd be nice to figure out what I'm doing wrong :)

EDIT: righto, my sale thread was moved to the correct place by Scott :)

http://forum.arcadecontrols.com/index.php/topic,167729.0.html
« Last Edit: June 07, 2023, 07:13:32 am by buttersoft »

Rion

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 69
  • Last login:Today at 03:29:10 am
  • 240p, 480i
Re: The ultimate VGA to SCART adapter
« Reply #73 on: August 04, 2023, 01:31:35 am »
I have uploaded the model here - https://anonfiles.com/W3EaXel0z2/DB9_double_complete_tiny_v5_stl

The caps and the resistors are all 1206 SMD packages. The caps are 10nF and 100nF - and are optional, though recommended, i think. (The cap you linked to was not SMD/surface-mount and was 2.2nF)

Make SURE you have a device that can program the PIC first, like a PicKit 3 or something.

The link is no longer working.
But would you be willing to add your dongle to Hackaday with instructions?  :notworthy:

buttersoft

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1758
  • Last login:April 21, 2024, 08:06:32 am
  • Is running at 15kHz
Re: The ultimate VGA to SCART adapter
« Reply #74 on: August 05, 2023, 09:21:25 pm »
The link is no longer working.
But would you be willing to add your dongle to Hackaday with instructions?  :notworthy:

I have split the body and the lid, and added a version of the lid that has holes so you don't have to drill. You may still need to chase them with a drillbit.

https://anonfiles.com/v0b5K46dz6/DB9_double_mine_lid_v3_with_holes_stl
https://anonfiles.com/udbfKa6ez0/DB9_double_mine_lid_v2_no_holes_stl
https://anonfiles.com/wfb8K46cz3/DB9_double_mine_body_v2_stl

And no, sorry, i am not keen to write up more details instructions - too busy with the kids. Everything you need is in this thread, and the little PCB is stencilled with part values. Passive SMDs are all 1206 sized, though 0805 will fit.  I might be able to answer specific questions, if you need.

I will say again though, make sure you have the means to program the PIC before anything else :)

ajshell1

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 1
  • Last login:August 21, 2023, 10:10:18 am
  • I want to build my own arcade controls!
Re: The ultimate VGA to SCART adapter
« Reply #75 on: August 21, 2023, 10:10:18 am »
I hate to bother you after you've already reuploaded it, but anonfiles has shut down.

So yeah. I'm afraid that you'll have to reupload again.

buttersoft

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1758
  • Last login:April 21, 2024, 08:06:32 am
  • Is running at 15kHz
Re: The ultimate VGA to SCART adapter
« Reply #76 on: August 22, 2023, 02:18:53 am »
Happy to upload again, don't know why i never shared it here :)