Go to Post The amount of sense this rule makes is irrelevant. It is still the rule, and breaking this rule violates something that i'm sure all of you have heard of. Does gracious professionalism ring a bell? - Kate00 [more]
Home
Go Back   Chief Delphi > Technical > Control System
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 13-02-2006, 21:21
cdennisxlx2's Avatar
cdennisxlx2 cdennisxlx2 is offline
Team San Diego Web Liaison
AKA: Cameron Dennis
FRC #1266 (The Devil Duckies)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: San Diego
Posts: 188
cdennisxlx2 is a splendid one to beholdcdennisxlx2 is a splendid one to beholdcdennisxlx2 is a splendid one to beholdcdennisxlx2 is a splendid one to beholdcdennisxlx2 is a splendid one to beholdcdennisxlx2 is a splendid one to beholdcdennisxlx2 is a splendid one to behold
Question OI Port Y-Cable and switch hook up!?

Ok i must not be seing something right, i need to hook more then 2 switches to ports 3 and 4, so far thats all i can figure out how to do. Would i use the Y-cable (that is described in the oi ref guide on IFI) to make it possable to hook 4 switches to that port? or what? Help Please!!! thanks!
__________________
Team San Diego Robotics Web Liaison
Webmaster and Technical Advisor for the San Diego Regional Planning Committee.
Official Score Keeper for the San Diego Regional
www.sandiegoregional.com
www.frc1266.com
  #2   Spotlight this post!  
Unread 13-02-2006, 21:50
DanDon's Avatar
DanDon DanDon is offline
ohhh MY god
AKA: Dan Hoizner
FRC #0375 (The Robotic Plague)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Staten Island, NY
Posts: 1,432
DanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond repute
Send a message via ICQ to DanDon Send a message via AIM to DanDon Send a message via MSN to DanDon
Re: OI Port Y-Cable and switch hook up!?

Quote:
Originally Posted by ghhs_1527
Ok i must not be seing something right, i need to hook more then 2 switches to ports 3 and 4, so far thats all i can figure out how to do. Would i use the Y-cable (that is described in the oi ref guide on IFI) to make it possable to hook 4 switches to that port? or what? Help Please!!! thanks!
All the joystick ports can have up to 4 two-position switches per port hooked up (trig, top, aux1, and aux2). Let's say you're hooked up to port 3:
Code:
p3_sw_trig;//switch 1
p3_sw_top;//switch 2
p3_sw_aux1;//switch 3
p3_sw_aux2;//switch 4
The joystick port pinouts can be found here. (Pages 7-10)
__________________
  #3   Spotlight this post!  
Unread 13-02-2006, 21:59
cdennisxlx2's Avatar
cdennisxlx2 cdennisxlx2 is offline
Team San Diego Web Liaison
AKA: Cameron Dennis
FRC #1266 (The Devil Duckies)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: San Diego
Posts: 188
cdennisxlx2 is a splendid one to beholdcdennisxlx2 is a splendid one to beholdcdennisxlx2 is a splendid one to beholdcdennisxlx2 is a splendid one to beholdcdennisxlx2 is a splendid one to beholdcdennisxlx2 is a splendid one to beholdcdennisxlx2 is a splendid one to behold
Arrow Re: OI Port Y-Cable and switch hook up!?

well the switches we have are on-off-on switches and we need 3 of them then an on-off-on momentary then just 2 on-off switches. And on the pinout sheet it shows that p3-aux 1 is relay fwd and p3-aux 2 is relay rev, so how can i connect all my switches to the ports when all there is is just 2 relay fwd and 2 relay rev to each port?
__________________
Team San Diego Robotics Web Liaison
Webmaster and Technical Advisor for the San Diego Regional Planning Committee.
Official Score Keeper for the San Diego Regional
www.sandiegoregional.com
www.frc1266.com
  #4   Spotlight this post!  
Unread 13-02-2006, 22:09
DanDon's Avatar
DanDon DanDon is offline
ohhh MY god
AKA: Dan Hoizner
FRC #0375 (The Robotic Plague)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Staten Island, NY
Posts: 1,432
DanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond repute
Send a message via ICQ to DanDon Send a message via AIM to DanDon Send a message via MSN to DanDon
Re: OI Port Y-Cable and switch hook up!?

Quote:
Originally Posted by ghhs_1527
well the switches we have are on-off-on switches and we need 3 of them then an on-off-on momentary then just 2 on-off switches. And on the pinout sheet it shows that p3-aux 1 is relay fwd and p3-aux 2 is relay rev, so how can i connect all my switches to the ports when all there is is just 2 relay fwd and 2 relay rev to each port?
Ok, just to make sure that I understand. You need to hook up a total of 5 switches? 3 center-off and 2 two-position?

You can get 2 of the center-off switches hooked up to port 3, the other on off hooked up to port 4, and the two on-off switches onto the two pins left on port 4.

Code:
Port 3

on-off-on
 |  |  |
pin pin pin
 2   4	 7
trig	   top

on-off-on
 |  |   |
pin  pin pin
10   12  14
aux1	 aux2
Code:
Port 4

on-off-on
 |  |   |
pin  pin pin
 2   4	 7
trig	  top

on-off
 |  |
pin  pin
10   12
aux1

on-off
 |   |
pin pin
14  12
aux2
Hope this helps,
__________________

Last edited by DanDon : 13-02-2006 at 22:11.
  #5   Spotlight this post!  
Unread 13-02-2006, 22:14
cdennisxlx2's Avatar
cdennisxlx2 cdennisxlx2 is offline
Team San Diego Web Liaison
AKA: Cameron Dennis
FRC #1266 (The Devil Duckies)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: San Diego
Posts: 188
cdennisxlx2 is a splendid one to beholdcdennisxlx2 is a splendid one to beholdcdennisxlx2 is a splendid one to beholdcdennisxlx2 is a splendid one to beholdcdennisxlx2 is a splendid one to beholdcdennisxlx2 is a splendid one to beholdcdennisxlx2 is a splendid one to behold
Re: OI Port Y-Cable and switch hook up!?

well thats not exactly it, i have 4 on-off-on switches (one of them is a momentary switch) and 2 on-off switches. at the moment i have the 4 on-off-on switches hooked up as top-trig and aux 1&2 on p3 and p4, i have no idea where to put the 2 on-off switches
__________________
Team San Diego Robotics Web Liaison
Webmaster and Technical Advisor for the San Diego Regional Planning Committee.
Official Score Keeper for the San Diego Regional
www.sandiegoregional.com
www.frc1266.com
  #6   Spotlight this post!  
Unread 13-02-2006, 22:15
DanDon's Avatar
DanDon DanDon is offline
ohhh MY god
AKA: Dan Hoizner
FRC #0375 (The Robotic Plague)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Staten Island, NY
Posts: 1,432
DanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond repute
Send a message via ICQ to DanDon Send a message via AIM to DanDon Send a message via MSN to DanDon
Re: OI Port Y-Cable and switch hook up!?

Quote:
Originally Posted by ghhs_1527
well thats not exactly it, i have 4 on-off-on switches (one of them is a momentary switch) and 2 on-off switches. at the moment i have the 4 on-off-on switches hooked up as top-trig and aux 1&2 on p3 and p4, i have no idea where to put the 2 on-off switches
I guess you're using 2-joystick (tank style) drive? (which puts ports 1 and 2 out of the question)
__________________
  #7   Spotlight this post!  
Unread 13-02-2006, 22:20
cdennisxlx2's Avatar
cdennisxlx2 cdennisxlx2 is offline
Team San Diego Web Liaison
AKA: Cameron Dennis
FRC #1266 (The Devil Duckies)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: San Diego
Posts: 188
cdennisxlx2 is a splendid one to beholdcdennisxlx2 is a splendid one to beholdcdennisxlx2 is a splendid one to beholdcdennisxlx2 is a splendid one to beholdcdennisxlx2 is a splendid one to beholdcdennisxlx2 is a splendid one to beholdcdennisxlx2 is a splendid one to behold
Re: OI Port Y-Cable and switch hook up!?

yeah
__________________
Team San Diego Robotics Web Liaison
Webmaster and Technical Advisor for the San Diego Regional Planning Committee.
Official Score Keeper for the San Diego Regional
www.sandiegoregional.com
www.frc1266.com
  #8   Spotlight this post!  
Unread 13-02-2006, 22:26
DanDon's Avatar
DanDon DanDon is offline
ohhh MY god
AKA: Dan Hoizner
FRC #0375 (The Robotic Plague)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Staten Island, NY
Posts: 1,432
DanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond repute
Send a message via ICQ to DanDon Send a message via AIM to DanDon Send a message via MSN to DanDon
Re: OI Port Y-Cable and switch hook up!?

What about using something like a potentiometer and hooking it up to an analog input on one of the joystick ports? Maybe devide the pot's range into a three steps, one step for on in one direction, one for off, and one for on in the other direction?

Or if you're not using all the buttons on your drive joysticks, then use pins 5, 8, 9, and 15 on port 4 which correspong to port 1 trig, top, aux1, and aux2.
__________________
  #9   Spotlight this post!  
Unread 13-02-2006, 22:30
cdennisxlx2's Avatar
cdennisxlx2 cdennisxlx2 is offline
Team San Diego Web Liaison
AKA: Cameron Dennis
FRC #1266 (The Devil Duckies)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: San Diego
Posts: 188
cdennisxlx2 is a splendid one to beholdcdennisxlx2 is a splendid one to beholdcdennisxlx2 is a splendid one to beholdcdennisxlx2 is a splendid one to beholdcdennisxlx2 is a splendid one to beholdcdennisxlx2 is a splendid one to beholdcdennisxlx2 is a splendid one to behold
Re: OI Port Y-Cable and switch hook up!?

Just open the sticks and cut the wires to 2 buttons and splice it with my switches and just use the joystick as a host for it?
__________________
Team San Diego Robotics Web Liaison
Webmaster and Technical Advisor for the San Diego Regional Planning Committee.
Official Score Keeper for the San Diego Regional
www.sandiegoregional.com
www.frc1266.com
  #10   Spotlight this post!  
Unread 13-02-2006, 22:33
DanDon's Avatar
DanDon DanDon is offline
ohhh MY god
AKA: Dan Hoizner
FRC #0375 (The Robotic Plague)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Staten Island, NY
Posts: 1,432
DanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond repute
Send a message via ICQ to DanDon Send a message via AIM to DanDon Send a message via MSN to DanDon
Re: OI Port Y-Cable and switch hook up!?

Quote:
Originally Posted by ghhs_1527
Just open the sticks and cut the wires to 2 buttons and splice it with my switches and just use the joystick as a host for it?
Not really. Actually, according to the IFI specs, if you hook up a switch to port 4:

Code:
pin 5 - same as OI Port 1 Joystick Trigger Switch - p1_sw_trig
pin 8 - same as OI Port 1 Joystick Thumb Switch - p1_sw_top
pin 9 - same as OI Port 1 Aux Switch1 - p1_sw_aux1
pin 15 - same as OI Port 1 Aux Switch2 - p1_sw_aux2
So the switches that are hooked up to port 4 would acutally be read using the port 1 variables.
__________________
  #11   Spotlight this post!  
Unread 13-02-2006, 22:35
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,113
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: OI Port Y-Cable and switch hook up!?

Quote:
Originally Posted by ghhs_1527
...i have no idea where to put the 2 on-off switches
You've used up all four of the switch inputs on both ports. The only thing left is to use analog inputs!

Connect the switches and some resistors in the following magical arrangement on port 3:
Code:
pin 1 ----+---- switch 1 ----+---- /\/\/\/ ----+---- /\/\/\/ ---- pin 11
          |                  |       20 k      |       33 k
          +---- /\/\/\/ -----+---- switch 2 ---|
                 10 k
Then read the value of p3_aux to see which combination of switches yields what number. That's very much like the way the white joystick's "hat" button works.
  #12   Spotlight this post!  
Unread 13-02-2006, 22:41
cdennisxlx2's Avatar
cdennisxlx2 cdennisxlx2 is offline
Team San Diego Web Liaison
AKA: Cameron Dennis
FRC #1266 (The Devil Duckies)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: San Diego
Posts: 188
cdennisxlx2 is a splendid one to beholdcdennisxlx2 is a splendid one to beholdcdennisxlx2 is a splendid one to beholdcdennisxlx2 is a splendid one to beholdcdennisxlx2 is a splendid one to beholdcdennisxlx2 is a splendid one to beholdcdennisxlx2 is a splendid one to behold
Re: OI Port Y-Cable and switch hook up!?

I get it now, all i have to do is just wire p4 as i did to it b4 but with those ports as the positive connections on my switches and just solder the gnd to pin 4 or 12
__________________
Team San Diego Robotics Web Liaison
Webmaster and Technical Advisor for the San Diego Regional Planning Committee.
Official Score Keeper for the San Diego Regional
www.sandiegoregional.com
www.frc1266.com
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
help: cannot get the picture in the labVIEW program .. (was: need help!! quickly!) liad LabView and Data Acquisition 8 18-01-2006 12:20
PRESSURE SWITCH Mr. Steve Pneumatics 20 01-12-2005 10:20
Pressure Switch wiring diagram robotjoe Electrical 1 08-02-2005 14:01
2 questions about LAN (10/100) cable. Elgin Clock IT / Communications 19 16-11-2004 12:04
Digital Inputs interfering with each other Bongle Programming 8 23-02-2004 11:18


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

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