Go to Post What do you do after making a design public? Improve it! What do you do when you give your opponents a weapon? Come up with a better one or a way to beat it! What is Wildstang going to do, you ask? Make their drivetrains better! - EricH [more]
Home
Go Back   Chief Delphi > Technical > Control System > Sensors
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 15-02-2011, 18:17
Unoquadium Unoquadium is offline
The Parlor Generals
AKA: Ilya Rubnich
FRC #0334 (Tech Knights)
Team Role: Programmer
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Brooklyn, NY
Posts: 8
Unoquadium is an unknown quantity at this point
Question 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.
Reply With Quote
  #2   Spotlight this post!  
Unread 15-02-2011, 19:10
StevenB StevenB is offline
is having FRC withdrawal symptoms.
AKA: Steven Bell
no team
Team Role: College Student
 
Join Date: May 2005
Rookie Year: 2005
Location: Stanford, CA
Posts: 412
StevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond repute
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.
__________________
Need a physics refresher? Want to know if that motor is big enough for your arm? A FIRST Encounter with Physics

2005-2007: Student | Team #1519, Mechanical Mayhem | Milford, NH
2008-2011: Mentor | Team #2359, RoboLobos | Edmond, OK
2014-??: Mentor | Looking for a team...
Reply With Quote
  #3   Spotlight this post!  
Unread 16-02-2011, 16:40
Unoquadium Unoquadium is offline
The Parlor Generals
AKA: Ilya Rubnich
FRC #0334 (Tech Knights)
Team Role: Programmer
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Brooklyn, NY
Posts: 8
Unoquadium is an unknown quantity at this point
Re: Hooking Up a Micro Switch

Quote:
Originally Posted by StevenB View Post
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?
Reply With Quote
  #4   Spotlight this post!  
Unread 16-02-2011, 19:11
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Hooking Up a Micro Switch

Quote:
Originally Posted by Unoquadium View Post
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.
Reply With Quote
  #5   Spotlight this post!  
Unread 21-02-2011, 01:28
WizenedEE's Avatar
WizenedEE WizenedEE is offline
Registered User
AKA: Adam
FRC #3238 (Cyborg Ferrets)
Team Role: Leadership
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Anacortes, WA
Posts: 395
WizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to all
Re: Hooking Up a Micro Switch

Quote:
Originally Posted by Alan Anderson View Post
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).
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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