Quote:
Originally Posted by MaGiC_PiKaChU
GeeTwo:
I don't think our switches are getting beaten up... we tried to press them manually, and we tested the with a multimeter to confirm that they work. The result is false, whatever pins are connected to each other in the port.
|
I didn't think that was the problem with your switches; I was just explaining why we moved on rather than solve ours.
The test we came up with to verify electrical connection and switch function:
- Put the robot on blocks.
- Get a short pwm extension cable (black/red/white wires, dupont connectors, one end male, the other female).
- Use it to extend your sensor cable at the 'RIO end. Be sure that black is to ground, and white is to the signal.
- with the robot powered on and the switch open, measure the voltage from black to white, using the little ratchet ports in the side of the dupont housing. It should be a bit over 3V.
- Push the switch closed. The voltage drop across the same junction should switch to 0V.
If you get those results, the problem is either with the 'RIO hardware or the software, or that the switch isn't being mechanically activated.