Go to Post This our big chance to spread the word and change the culture, let's not waste it. So in the words of one Leroy Jenkins, "Time's up, let's do this." - Frenchie461 [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 28-01-2002, 18:27
DanL DanL is offline
Crusty Mentor
FRC #0097
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: Somerville, MA
Posts: 682
DanL is just really niceDanL is just really niceDanL is just really niceDanL is just really niceDanL is just really nice
Send a message via AIM to DanL
Wiring custom toggle switches into operator interface

Hey guys, I want to basically wire custom toggle switches (i.e. SPST's) into one of the ports on the operator interface, so that when you flip one switch, say, pin 3 returns a 1. I did a quick and dirty (but interactive ) flash movie of basically what we want - http://nervae.phenominet.com/first/whatwewant.html. Doing the wiring isn't exactly hard, just knowing how to wire it is a trick.

I'm not sure how these ports work, but I'm guessing each pin is some kind of 'mini-circuit' that if closed returns a 1 and if open returns a 0, meaning one of the pins is the power and the others are 'circuit pins'? ...or am I completely ouyt there? Check out my flash movie to see basically what we want to do. Any links or explinations on how to wire it would be helpful.
__________________
Dan L
Team 97 Mentor
Software Engineer, Vecna Technologies
  #2   Spotlight this post!  
Unread 28-01-2002, 19:05
Unsung FIRST Hero
Nate Smith Nate Smith is offline
FRC Key Volunteer Trainer
AKA: CrazyNate
no team
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Old Town, Maine
Posts: 1,029
Nate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to behold
Send a message via AIM to Nate Smith Send a message via Yahoo to Nate Smith
Hope this Helps

Basically, what you're looking at is something like this...
In the simplest form, a digital input on the OI could be a wire running between a signal pin and a ground pin. In that case, you would always have a value of 1. So, putting a switch in between the two pins lets you control the value(off/open = 0, on/closed=1)
__________________
Nate Smith
nsmith@smythsoft.com
12 seasons, 4 teams, and more time logged behind the scorekeeper's table than I care to remember...
returning for 2011? only time will tell...
  #3   Spotlight this post!  
Unread 28-01-2002, 19:20
DanL DanL is offline
Crusty Mentor
FRC #0097
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: Somerville, MA
Posts: 682
DanL is just really niceDanL is just really niceDanL is just really niceDanL is just really niceDanL is just really nice
Send a message via AIM to DanL
Hmm, electrics isn't exactly my thing - atleast word-wise it isn't. I think I understand what you're talking about, but can you draw up a small dirty diagram?

Also, in the case of the operator interface, where does the power come from? Does it come from one of the pins? If no, how much power do we use?
__________________
Dan L
Team 97 Mentor
Software Engineer, Vecna Technologies

Last edited by DanL : 28-01-2002 at 19:29.
  #4   Spotlight this post!  
Unread 28-01-2002, 19:42
DanL DanL is offline
Crusty Mentor
FRC #0097
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: Somerville, MA
Posts: 682
DanL is just really niceDanL is just really niceDanL is just really niceDanL is just really niceDanL is just really nice
Send a message via AIM to DanL
Okay, I was thinking about it, and through the powers of god, I came up with this diagram. Is this right? Also, what are the voltages, and whats the ohm rating of the resistor that we should use?
Attached Thumbnails
Click image for larger version

Name:	pindiagram.gif
Views:	124
Size:	2.0 KB
ID:	294  
__________________
Dan L
Team 97 Mentor
Software Engineer, Vecna Technologies
  #5   Spotlight this post!  
Unread 28-01-2002, 21:05
RebAl's Avatar
RebAl RebAl is offline
ISee It When I Believe It
None #0329 (The R.A.I.D.)
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: N.Y.
Posts: 215
RebAl will become famous soon enough
Send a message via ICQ to RebAl Send a message via AIM to RebAl
here are the pinouts for port 3:
(PIN)
(2) Joystick Trigger Switch Digital (bit) p3_sw_trig Relay 3 Forward SW05 [5]
(7) Joystick Thumb Switch Digital (bit) p3_sw_top Relay 3 Reverse SW06 [5]
(10) Aux Switch1 Digital (bit) p3_sw_aux1 Relay 6 Forward SW07 [5]
(14) Aux Switch2 Digital (bit) p3_sw_aux2 Relay 6 Reverse SW08 [5]

pin 4 and 12 are grounds

so if you want p3_sw_aux1 in the code (for example) to be 1, you wire a switch from pin 4(or 12) to pin 10 which is the imput, so basically for a switch to work you wire it from the pin you want to the switch then the switch to ground

so

pin 10 on oi----->switch------->ground

/
---------------------------------
| |
| The Switch |
| (SPST) ]
___________________
| |
pin 10 ground

_______________________________________
and check out the control system manual at:

MANUAL

page14-17 has the pin-outs for the others

______________
hope this helps
  #6   Spotlight this post!  
Unread 28-01-2002, 21:08
RebAl's Avatar
RebAl RebAl is offline
ISee It When I Believe It
None #0329 (The R.A.I.D.)
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: N.Y.
Posts: 215
RebAl will become famous soon enough
Send a message via ICQ to RebAl Send a message via AIM to RebAl
that diagram did not come out well , try this:
Attached Images
File Type: bmp example.bmp (151.9 KB, 111 views)
  #7   Spotlight this post!  
Unread 28-01-2002, 23:52
DanL DanL is offline
Crusty Mentor
FRC #0097
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: Somerville, MA
Posts: 682
DanL is just really niceDanL is just really niceDanL is just really niceDanL is just really niceDanL is just really nice
Send a message via AIM to DanL
Ahh, thanks, that makes everything clear, or so I hope. Thanks for the link - I was looking for that information (I was going to the "Operator Interface" link rather than the entire control systems link). Anyways, I think I have the electrics diagram right now that we know what pins do what, but then again, electrics isn't my strongest subject. Can you take a look and make sure it's right before I go and fry our OI? http://nervae.phenominet.com/first/whatwedo.html

Thanks for your help!
__________________
Dan L
Team 97 Mentor
Software Engineer, Vecna Technologies
  #8   Spotlight this post!  
Unread 29-01-2002, 07:26
RebAl's Avatar
RebAl RebAl is offline
ISee It When I Believe It
None #0329 (The R.A.I.D.)
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: N.Y.
Posts: 215
RebAl will become famous soon enough
Send a message via ICQ to RebAl Send a message via AIM to RebAl
That would be correct, if you need any more help im right in patchogue n.y., you can e-mail me here if you need anything else.
  #9   Spotlight this post!  
Unread 13-02-2002, 13:42
CaptainPlaid's Avatar
CaptainPlaid CaptainPlaid is offline
Registered User
#0314 (Megatron Oracles "Big MO")
 
Join Date: Jan 2002
Location: Flint, MI
Posts: 60
CaptainPlaid is an unknown quantity at this point
Nice animations. It really helped figure out what was going on. If you want do use more buttons you might consider using the y-cable on the control system. More info can be found in the White Pages.
__________________
I have not failed. I have just found 10,000 ways that won't work.
Thomas Edison
  #10   Spotlight this post!  
Unread 13-02-2002, 17:13
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,792
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
Ok, for those who did not get the message before...
Don't connect up to the input pins on the controller until you have investigated the input requirements of the controller on the Innovation First website. Damage to inputs (permanent, that is) can result and are not covered under the warranty. A simple pull up resistor with a switch is recommended for analog inputs acting as digital inputs. (i.e. ON/OFF) The Innovation First papers are much more descriptive than I can be here. Please read them before proceeding.
Good Luck All
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
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
Need help with custom switches archiver 2001 3 24-06-2002 00:35
Wiring Switches To the Operator Intrerface archiver 2000 2 23-06-2002 23:02
So what's in YOUR Custom Circuit this year? kmcclary Technical Discussion 7 10-04-2002 12:20


All times are GMT -5. The time now is 06:03.

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