Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Sensors (http://www.chiefdelphi.com/forums/forumdisplay.php?f=173)
-   -   Hooking Up a Micro Switch (http://www.chiefdelphi.com/forums/showthread.php?t=91929)

Unoquadium 15-02-2011 18:17

Hooking Up a Micro Switch
 
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.

StevenB 15-02-2011 19:10

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.

Unoquadium 16-02-2011 16:40

Re: Hooking Up a Micro Switch
 
Quote:

Originally Posted by StevenB (Post 1023836)
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.

The switch has 3 contacts, NC2, NC3, and COM1. Which one would go to signal and which one to ground?

Alan Anderson 16-02-2011 19:11

Re: Hooking Up a Micro Switch
 
Quote:

Originally Posted by Unoquadium (Post 1024513)
The switch has 3 contacts, NC2, NC3, and COM1. Which one would go to signal and which one to ground?

Read the labels again. I think you'll find that terminal 1 is labeled COM (for COMmon), terminal 2 is NC (for Normally Closed), and terminal 3 is NO (for Normally Open).

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.

WizenedEE 21-02-2011 01:28

Re: Hooking Up a Micro Switch
 
Quote:

Originally Posted by Alan Anderson (Post 1024652)
Typically, COM is connected to ground...

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).


All times are GMT -5. The time now is 07:58.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi