Go to Post Joe is a great sport and this was a good moral booster after a grueling weekend. How many opportunities do you get to play William Tell with a Regional WFA Winner? :) - The Lucas [more]
Home
Go Back   Chief Delphi > Technical > Control System > FRC Control System
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 10-01-2009, 17:06
CDH Jeff's Avatar
CDH Jeff CDH Jeff is offline
Registered User
FRC #2450 (Raiderbots)
Team Role: Electrical
 
Join Date: Feb 2008
Rookie Year: 2008
Location: St. Paul
Posts: 35
CDH Jeff is an unknown quantity at this point
Switch to OI

does anyone know how to wire a basic toggle switch to the OI board? I'm not even sure if it's possible, but if it is and someone knows how to do it that would be sweet. also if someone knows how you can do it without a resistor that would be helpful. I found the thread kind of about this, but it was from a different season without the new system. heres a picture of the toggle I'm trying to wire, left pin is ground, ACC in the middle, and theres a + on the right pin.
__________________
"why are 'standard' and 'metric' different?! metric should be the standard!"
Reply With Quote
  #2   Spotlight this post!  
Unread 10-01-2009, 17:08
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 6,979
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: Switch to OI

My suggestion is to wire the switch between one of the Digital Input pins on the side and ground. Your cRio can then read the status of that pin and behave accordingly.

For details on the pins on the side of the OI, see the OI documentation please.

Don
__________________

I am N2IRZ - What's your callsign?
Reply With Quote
  #3   Spotlight this post!  
Unread 10-01-2009, 23:09
whitetiger0990's Avatar
whitetiger0990 whitetiger0990 is offline
Registered User
no team
Team Role: Programmer
 
Join Date: Mar 2006
Rookie Year: 2006
Location: Earth
Posts: 157
whitetiger0990 is a glorious beacon of lightwhitetiger0990 is a glorious beacon of lightwhitetiger0990 is a glorious beacon of lightwhitetiger0990 is a glorious beacon of lightwhitetiger0990 is a glorious beacon of light
Re: Switch to OI

http://www.usfirst.org/uploadedFiles...s-Rev-0-5a.pdf Page 4

Wire the + to the 5V, wire Vcc to ground, wire the other pin to signal.

When it's off, Vcc and signal will be connected, which pulls the value to 0 and will be a false in the code.

When it's on, + and signal will be connected, which makes value 5V and will be a true in the code.

The "resistor" you might have heard of is often including in the innards of the OI. This year's DS does not have one, so all three pins are used (and thus you shouldn't use 2 pin switches on the DS). You can learn about why here: http://en.wikipedia.org/wiki/Pull-down_resistor
__________________
print$q=chr(ord($q)+$1)while("7443-0201-8465130105-12-03135-82482113-06-7672-070208-0613-70"=~/(-?\d\d)/g);

Last edited by whitetiger0990 : 10-01-2009 at 23:12.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Help Wiring Micro Switch/Limiting Switch Windward Electrical 2 07-02-2006 18:26
toggle switch Windward Programming 31 27-01-2006 22:38
Switch BillyJ Programming 1 13-04-2005 16:39
pressure switch Michael Long Pneumatics 1 11-02-2003 11:21


All times are GMT -5. The time now is 05:21.

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