OCCRA
Go to Post No such thing as asking too much. There is such a thing as asking too fast, but not too much. - EricH [more]
Home
Go Back   Chief Delphi > Technical > Electrical
CD-Events   CD-Media   CD-Spy   FRC-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 02-07-2006, 04:52 PM
Windward's Avatar
Windward Windward is offline
Registered User
FRC #1452
Team Role: Programmer
 
Join Date: Nov 2005
Rookie Year: 2004
Location: So Cal
Posts: 88
Windward is an unknown quantity at this point
Need Help Wiring Micro Switch/Limiting Switch

Our team has been having some problems with our cannon panning too much, and so I'm trying to wire a couple limiting switches on either end of arc on which the cannon pans, so that when it hits the switch, it will switch directions. The micro switch that came in the kit (made by Sager Electronics, part # V7-2B17D8-048) has 3 pins on it, labeled NC2, NC3 and COM1. I figured that NC2 and NC3 should be wired to Digital In/Out +5V/GND and then the COM1 pin connects to SIG. However I wasn't sure, so I just wanted to see if anyone out there already knew how to wire this switch.
Also if anyone knows how to program a motor to switch directions when the switch is hit, that would be great as well. Our programming guys seem to know how to program it, but I figured an experienced voice can never hurt.
  #2   Spotlight this post!  
Unread 02-07-2006, 05:20 PM
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: 7,822
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
Send a message via AIM to Alan Anderson
Re: Need Help Wiring Micro Switch/Limiting Switch

That's a single-pole double-throw switch. If you look closely, you'll see that the pins are marked COM 1, NC 2, and NO 3. Pin 1 is the common terminal, pin 2 is the normally closed contact, and pin 3 is the normally open contact. When the switch is not being activated, pins 1 and 2 are connected together. When the switch is being activated, pins 1 and 3 are connected together.

The Robot Controller digital inputs have an internal pullup resistor to +5 volts on the signal pin, so all you need to do in order to make them work is provide a switched path between the ground and signal pins. That's pins 1 and 2 on the switch if you want the value to be 1 when the switch is activated, or pins 1 and 3 on the switch if you want the value to be 0. Leave the unused pin unconnected, and do not connect +5 to the switch at all.
  #3   Spotlight this post!  
Unread 02-07-2006, 05:26 PM
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 9,965
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: Need Help Wiring Micro Switch/Limiting Switch

I can answer the electrical problem, software people are asked to chime in after that. You only want to wire one of the terminals to ground or the battery common and the "common" terminal to a digital input. When the switch is open it will be read as a "1" and when closed it will be read as a "0". Often the switches are marked NO for normally open and NC for normally closed with reference to the common terminal.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
All is better now, NOS parts are working fine. Why does this year's game remind me of Violet in Willie Wonka? Hmmmm, I see blueberries!
Closed Thread


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
toggle switch Windward Programming 31 01-27-2006 09:38 PM
Wiring Nasson switch ten3brousone Pneumatics 4 02-19-2005 04:16 PM
Wiring a switch stevex Electrical 3 02-16-2005 07:31 AM
Pressure Switch wiring diagram robotjoe Electrical 1 02-08-2005 01:01 PM
Need help with 255 Variable Joseph F Programming 18 02-26-2002 01:49 PM


All times are GMT -5. The time now is 04:40 AM.

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


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