Go to Post I actually love and am very thankful for what all these amazing engineering role models put into this program year in and year out. - Bill Gold [more]
Home
Go Back   Chief Delphi > Technical > Electrical
CD-Media   CD-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 15-02-2005, 21:59
stevex stevex is offline
Registered User
AKA: Steve
#0219 (Team Impact)
Team Role: Electrical
 
Join Date: Oct 2004
Rookie Year: 2003
Location: Warren County, NJ
Posts: 5
stevex is an unknown quantity at this point
Send a message via AIM to stevex
Wiring a switch

When you want to have a switch do something for you, where do you wire it, to the analog/digital inputs on the robot controller, and then sauder the wires onto the pins you need?
  #2   Spotlight this post!  
Unread 15-02-2005, 22:14
Sparks333's Avatar
Sparks333 Sparks333 is offline
Robotics Engineer
AKA: Dane B.
FRC #1425 (Wilsonville Robotics)
Team Role: Alumni
 
Join Date: Feb 2004
Rookie Year: 2003
Location: Wilsonville, Oregon
Posts: 184
Sparks333 is a glorious beacon of lightSparks333 is a glorious beacon of lightSparks333 is a glorious beacon of lightSparks333 is a glorious beacon of lightSparks333 is a glorious beacon of lightSparks333 is a glorious beacon of light
Send a message via AIM to Sparks333
Re: Wiring a switch

If this is an on/off two position switch, then you wire one side of the switch to the digital i/o ground (black) and the middle pin of the switch to the digital i/o signal (white). Look in software for either a 1 or 0 on that digital port.

If this is more than two positions, then you can do two things: you can wire the black to the middle switch port, and a signal on either side, and use more than one digital port. Or, if you feel, and it's a 3 position switch, you can put +5 on one side, GND on the opposite side, signal in the middle, and wire resistors between each port (I suggest a 50K ohm on each side.) Put that into analog inputs, and you should get 0, 128, and 255. If that was confusing, i can go into more depth, but if this is not your situation, then ignore it.
__________________
ICs do weird things when voltage is run out of spec.

I love to take things apart. The fact that they work better when I put them back together it just a bonus.

http://www.ravenblack.net/random/surreal.html

Last edited by Sparks333 : 15-02-2005 at 22:23.
  #3   Spotlight this post!  
Unread 16-02-2005, 07:42
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,770
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: Wiring a switch

Steve,
Sparks outlined a method that is spelled out in the RC and OI manual and you should check there for complete explanation. You can also make a switch that acts like a pot if you need more than one or two positions. We do it all the time. One thing to add, I don't recommend soldering directly to the pins on the RC or OI. If you need to replace it for some reason it will take forever, and the heat might unsolder the pins on the board or do some other damage. If you need to make a connection, you can buy individual pins or you can cut apart a PWM cable and make splices into the wire ends.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #4   Spotlight this post!  
Unread 16-02-2005, 08:31
ttedrow's Avatar
ttedrow ttedrow is offline
Herding electrons
AKA: Tim Tedrow
FRC #0281 (EnTech)
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2000
Location: Greenville, SC
Posts: 165
ttedrow will become famous soon enoughttedrow will become famous soon enough
Re: Wiring a switch

Quote:
Originally Posted by stevex
When you want to have a switch do something for you, where do you wire it, to the analog/digital inputs on the robot controller, and then sauder the wires onto the pins you need?
Here are three reasons that I have used switches on FIRST robots:

1. As a limit switch. Place the switch at the end of travel of an arm or mast to shut the motor off.

2. To select autonomous mode options before the beginning of the match.

3. Custom switches placed on the OI for operator controls.
__________________
Sr. Design Engineer
Caterpillar Inc.
Greenville, SC

KD4EGM

FRC 281 Greenvillains
Infected with the FIRST virus in 2000

Yes, Chute Door!!!
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
PRESSURE SWITCH Mr. Steve Pneumatics 20 01-12-2005 10:20
Pressure Switch wiring diagram robotjoe Electrical 1 08-02-2005 14:01
LEDs in switch box. ZZII 527 Electrical 5 06-03-2004 19:39
Digital Inputs interfering with each other Bongle Programming 8 23-02-2004 11:18
Free Wiring Diagram! Mike Alighieri Electrical 16 30-06-2003 14:31


All times are GMT -5. The time now is 11:57.

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