Hey guys,
I'm making cnc hand held controller. Actually it's already made and last thing left to do is to connect it to the machine and PC.
Inside controller there is Arduino that acts as a virtual Modbus slave and communicates with a program on my computer. So Arduino has to be connected via USB to PC. Besides that, controller has Analog signal outputs (Manual Pulse Generator, and few switches) that should be connected directly to the CNC machine driver board. Also, I want to pass some 5V to pendant for LEDs.
So....
USB actually works via 4 wires (I do not count shielding).
I need 2 wires for 5V power supply
And I need 9 wires for Analog output.
I counted that in total I would need 15 wires. As much as VGA connections has.
I was stupid enough, so I drilled a hole into controller casing and mounted VGA female socket, without even thinking of how USB would react being wired through VGA cable. I've got some 3meters VGA cable, plugged that in, and hell ya USB doesn't work. Power comes on, but signal seems to be too weak. Few times all worked just fine, but disconnecting and connecting again would lose the signal.
I could think about other ways to wiring it up, but that VGA socked looks really nice to me, and I don't want to mess around again with removing electronics from inside, drilling case again. So I'm still thinking to stay with VGA cable. 3 meters of cable is what I'm looking for.
Any idea? Solution? Tip?
Cheers!!
I'm making cnc hand held controller. Actually it's already made and last thing left to do is to connect it to the machine and PC.
Inside controller there is Arduino that acts as a virtual Modbus slave and communicates with a program on my computer. So Arduino has to be connected via USB to PC. Besides that, controller has Analog signal outputs (Manual Pulse Generator, and few switches) that should be connected directly to the CNC machine driver board. Also, I want to pass some 5V to pendant for LEDs.
So....
USB actually works via 4 wires (I do not count shielding).
I need 2 wires for 5V power supply
And I need 9 wires for Analog output.
I counted that in total I would need 15 wires. As much as VGA connections has.
I was stupid enough, so I drilled a hole into controller casing and mounted VGA female socket, without even thinking of how USB would react being wired through VGA cable. I've got some 3meters VGA cable, plugged that in, and hell ya USB doesn't work. Power comes on, but signal seems to be too weak. Few times all worked just fine, but disconnecting and connecting again would lose the signal.
I could think about other ways to wiring it up, but that VGA socked looks really nice to me, and I don't want to mess around again with removing electronics from inside, drilling case again. So I'm still thinking to stay with VGA cable. 3 meters of cable is what I'm looking for.
Any idea? Solution? Tip?
Cheers!!