|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
So we need to somehow plug a limit switch (Micro Switch) into the robot. I heard stuff about plugging it into an analog input board and other stuff about plugging it into the digital sidecar and we don't know which one it is.
Can someone clear this up for us? We ultimately just need to get a 0 or 1 output from it. Thanks. |
|
#2
|
|||
|
|||
|
Re: Hooking Up a Micro Switch
Connect it to a digital input on the digital sidecar. One side of the switch should go to ground, the other to the signal line. The +5V line is unused, since the digital inputs have internal pullup resistors.
|
|
#3
|
|||
|
|||
|
Re: Hooking Up a Micro Switch
The switch has 3 contacts, NC2, NC3, and COM1. Which one would go to signal and which one to ground?
|
|
#4
|
|||||
|
|||||
|
Re: Hooking Up a Micro Switch
Quote:
Typically, COM is connected to ground, and either NC or NO is connected to signal depending on whether you want the input to read "true" or "false" when the switch is activated. |
|
#5
|
||||
|
||||
|
Re: Hooking Up a Micro Switch
Although it doesn't matter if you connect COM to common (ground/black) and NC/NO to signal.
If you're looking to use the microswitch as a true limit switch to stop the motor and you're using the CAN bus, look into wiring the switch up to the jaguar itself. It's much safer because it's a hardware thing (it's also faster, so no more bent/crushed switches). |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|