Log in

View Full Version : 2 switches to connect to USB cable.


NeatTeam
26-01-2012, 16:18
I have cutted a USB cable and I want to be able to know when I close the circuit of each one of the switches.
thanks for helping,
Neat-Team #1943 :)

codes02
26-01-2012, 16:30
If you are just planning on plugging in the usb cable to a computer, this won't work. Those wires aren't digital input, they only talk USB protocol.

You need to use the FirstTouch to get digital inputs via USB to the driver station.

mikets
26-01-2012, 16:51
I have cutted a USB cable and I want to be able to know when I close the circuit of each one of the switches.
thanks for helping,
Neat-Team #1943 :)
What exactly are you trying to do? USB cable has nothing to do with switches. USB cable is used to connect your laptop to a USB device. If you are talking about some switches such as the "Emergency Stop" button from last year, it is not a simple switch. It is a USB HID button device.

slijin
26-01-2012, 20:55
If you are just planning on plugging in the usb cable to a computer, this won't work. Those wires aren't digital input, they only talk USB protocol.

You need to use the FirstTouch to get digital inputs via USB to the driver station.

The CCI from eStop Robotics is another alternative to receive digital inputs.

cgmv123
26-01-2012, 22:51
The CCI from eStop Robotics is another alternative to receive digital inputs.

The Driver Station software is designed to talk to the First Touch module which has custom firmware on it.

slijin
26-01-2012, 23:08
The Driver Station software is designed to talk to the First Touch module which has custom firmware on it.

The CCI (http://www.estoprobotics.com/estore/index.php?_a=viewProd&productId=33) is custom designed to serve as a simpler alternative to the FirstTouch. The Driver Station isn't designed to talk to the FirstTouch, but rather viceversa, hence the custom firmware that you noted.

Al Skierkiewicz
29-01-2012, 17:49
Neat,
Have you confused USB with PWM? I suspect you have. If you are using the PWM cable to connect to a digital input on the Digital Side Car, then connect one side of the switch to the black wire of the PWM and the other side of the switch to the white wire. Insulate the red wire so it will not touch anything as it is connected to 5 volts. The switch when open will present a 'high' to the side car and when closed will present a 'low'.