Electronics Do It Yourself VGA Switch

Discussion in 'Modding' started by A13n0rma1, 17 Jul 2003.

  1. A13n0rma1

    A13n0rma1 Wannabe

    Joined:
    17 Jul 2003
    Posts:
    830
    Likes Received:
    0
    First post, be nice :D.

    Ok, so I was sitting in computer science today brainstorming ideas on how to raise money for a USB KVM when I had an idea... I could try my hand at my own.

    I figured since the VGA cable only has 10 necessary wires, HSync, VSync, Red, Green, and Blue. Each cable has a positive and negative. Riiight?

    So I came up with the idea of simply having a setup of 5 relays [ one on each + line ] for each VGA signal [ there are only two ] then power each set of relays seperately to turn each signal on and off.

    Then I wondered if this was at all do-able, so I came here to what seems to me to be the Mensa of computer-related things. :rock:
     
  2. ZapWizard

    ZapWizard Enter the Mod Matrix

    Joined:
    19 Sep 2002
    Posts:
    4,705
    Likes Received:
    5
    Welcome to the forums.

    Sure it is do-able.

    You can get Four-pole Double Throw (4PDT) relays that are made for cars, that would greatly cut your number of relays down.

    (Two 4PDT, and a DPDT)
    Or use three 4PDT's and have two extra pins that can switch.

    As far as USB, another two 4PDT would switch a USB jack each.
    Or mabye only on if you just switch the data lines (not recommended)
     
  3. Smilodon

    Smilodon The Antagonist

    Joined:
    25 Mar 2003
    Posts:
    6,244
    Likes Received:
    102
    Welcome aboard! ;)


    the idea will work.. i guess... but i think it would be more practical to get a 10 way switch... cinda' har to find, but still cheaper and simpler than 10 relays..
     
  4. A13n0rma1

    A13n0rma1 Wannabe

    Joined:
    17 Jul 2003
    Posts:
    830
    Likes Received:
    0
    Thankz Zap, btw I got the idea from your LAN Case :hip:

    Just data line switching for USB not recommended? Nuts. Oh well, that's just another relay.

    Is this how a "real" KVM works? Or is there some complicated signal-enhancing I'm unaware of?

    Smilodon, a ten way switch?! :eeek: Wow. Off to google now.
     
  5. ZapWizard

    ZapWizard Enter the Mod Matrix

    Joined:
    19 Sep 2002
    Posts:
    4,705
    Likes Received:
    5
    A real KVM uses solid state chips to route the signals.

    But very large (8 pc's or more) KVMs use relays.
     
  6. A13n0rma1

    A13n0rma1 Wannabe

    Joined:
    17 Jul 2003
    Posts:
    830
    Likes Received:
    0
    Thanks for the welcome and the help. I knew there was some way around the $50+ KVM :clap:
     
  7. JazzXP

    JazzXP Eh! Steve

    Joined:
    30 Apr 2002
    Posts:
    1,669
    Likes Received:
    13
    If you end up making it... make sure you use a decent sized wire... a lot of KVM's I have used use thin wires which causes a lot of ghosting on the screen (especially at higher res)
     
  8. A13n0rma1

    A13n0rma1 Wannabe

    Joined:
    17 Jul 2003
    Posts:
    830
    Likes Received:
    0
    Thick wire? Well, I'm takin' the maximum the crimp pins will take which is sometimes 26 and sometimes 22 guage wire. I've also got ferrite beads on order from All Electronics.
     
  9. Hazer

    Hazer In time,you too will be relixalated

    Joined:
    14 Apr 2003
    Posts:
    957
    Likes Received:
    2
    VGA signals...no problem.

    USB relay? Dunno about that. Ive recently been looking at the USB2.0 protocols, and there is something in there about the host deliberately turning off the device bus if it cant talk to it. This could be for totally unrelated device descriptors though.

    Keyboard and mice USB use the interupt interface. They are polled every 1 to 255 msec. Say you turn on PC A, the KVM is routed to that PC, it will recognize the USB devices right away. But what if the KVM was not routed to that PC? Would it be able to pickup the mouse and keyboard later, after the KVM switches over?

    Just some thoughts to throw in the mix.
     
  10. A13n0rma1

    A13n0rma1 Wannabe

    Joined:
    17 Jul 2003
    Posts:
    830
    Likes Received:
    0
    As far as I know both PCs [ one a Windows/Linux box and the other a Mac ] have no problem booting sans-keyboard & mouse.

    If it becomes a problem later the case I'll be building all of this will have the PS/2 ports exposed for the PC. But I know for a fact that the Mac will take a mouse & keyboard at any point in time.
     
  11. Pygo

    Pygo Rick Relixed

    Joined:
    26 Jan 2003
    Posts:
    2,179
    Likes Received:
    8
    USB mice on my PC are fine... duno about a usb keyboard though
    And as far as ps/2 goes for pc, the mouse muct be connected at bootup and disconnecting the keyboard will sometimes crash the computer.
    Hope that helps

    EDIT: Actually, I have a one of those intel mouse/keyboard/gamepad combo things I don't use anymore, and it uses usb... Never had any porblems booting up without it installed or unplugging it and plugging it in again. I didn't even need the drivers to use the keyboard and mouse, though the gamepad did need its drivers.
     
    Last edited: 19 Jul 2003
  12. A13n0rma1

    A13n0rma1 Wannabe

    Joined:
    17 Jul 2003
    Posts:
    830
    Likes Received:
    0
    Ok, so I ordered 12 DPDT relays. I looked at the car relays Zap mentioned and figured they weren't worth the extra cost, seeing as how these will just be mounted underneath the desk in a box anyway.

    Thanks all of you for your help, and as it turns out I can hot-plug my USB keyboard and mouse on both my PC and Mac [ just double checked mid-way through this post ]. I'll update with how this goes after I get all my parts and finish it up


    ...should be in a couple of weeks, seein' as how not only do I have summer school, I also used standard shipping 'cause I'm a cheapie like that :D
     

Share This Page