Go to Post You don't have enough money, you're under-staffed, you're not quite sure what the customer wants, requirements change, and they want it yesterday. - Kimmeh [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 11-02-2008, 23:46
Cullen Team 372 Cullen Team 372 is offline
Registered User
FRC #0372
 
Join Date: Jan 2008
Location: Don't know, they don't let me out
Posts: 2
Cullen Team 372 is an unknown quantity at this point
Hooking up a custom OI panel

We are planning a panel of switches for our pneumatics, but might have a problem. I found the pinout guide at http://www.chiefdelphi.com/media/photos/26381 and it looks like there are only 4 digital outputs; we are needing eight. We could hook up a second serial connector, but I was wondering if the analog outputs could be used. I'll admit I am mostly a programming guy, so this may be an incredibly stupid question.

I know the analog outputs have a range of 0-255. If we hooked up our on off switch to them, would they return 0 or 255, depending on the switch position, or would they fry our OI?

I'm hoping I can be lazy without killing anything.
  #2   Spotlight this post!  
Unread 12-02-2008, 00:18
Racer26 Racer26 is offline
Registered User
no team
Team Role: Alumni
 
Join Date: Apr 2003
Rookie Year: 2003
Location: Beaverton, ON
Posts: 2,229
Racer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond repute
Re: Hooking up a custom OI panel

Quote:
Originally Posted by Cullen Team 372 View Post
We are planning a panel of switches for our pneumatics, but might have a problem. I found the pinout guide at http://www.chiefdelphi.com/media/photos/26381 and it looks like there are only 4 digital outputs; we are needing eight. We could hook up a second serial connector, but I was wondering if the analog outputs could be used. I'll admit I am mostly a programming guy, so this may be an incredibly stupid question.

I know the analog outputs have a range of 0-255. If we hooked up our on off switch to them, would they return 0 or 255, depending on the switch position, or would they fry our OI?

I'm hoping I can be lazy without killing anything.

If you look at the IFI OI guide on www.ifirobotics.com, they show the full pinouts of those ports.

There are on ports 3 and 4 I believe, passthroughs of the 4 buttons on port 1/2. Thusly if you werent using the buttons on your p1 and p2 joys, you could use the passthroughs. I would just be a little worried about accidentally activating them from p1 (ie. driver accidentally clicks the trigger on the drive joy) Though that is easily remedied through a simple "modification" to the joy.
  #3   Spotlight this post!  
Unread 12-02-2008, 00:32
octothorpe's Avatar
octothorpe octothorpe is offline
Registered User
AKA: Nick Felt
FRC #0766 (MA Bears)
Team Role: Engineer
 
Join Date: Apr 2007
Rookie Year: 2006
Location: Menlo Park, CA
Posts: 72
octothorpe is a splendid one to beholdoctothorpe is a splendid one to beholdoctothorpe is a splendid one to beholdoctothorpe is a splendid one to beholdoctothorpe is a splendid one to beholdoctothorpe is a splendid one to beholdoctothorpe is a splendid one to behold
Re: Hooking up a custom OI panel

Quote:
Originally Posted by Cullen Team 372 View Post
We are planning a panel of switches for our pneumatics, but might have a problem. I found the pinout guide at http://www.chiefdelphi.com/media/photos/26381 and it looks like there are only 4 digital outputs; we are needing eight. We could hook up a second serial connector, but I was wondering if the analog outputs could be used. I'll admit I am mostly a programming guy, so this may be an incredibly stupid question.

I know the analog outputs have a range of 0-255. If we hooked up our on off switch to them, would they return 0 or 255, depending on the switch position, or would they fry our OI?

I'm hoping I can be lazy without killing anything.
Disclaimer: I have wired a custom OI panel before, but I am not an electronics expert.

I'm pretty sure you mean analog versus digital inputs if you're talking about the OI. As for using the analog inputs with on-off switches, there shouldn't be anything wrong with that, certainly not on the OI-frying level. If you hooked a potentiometer up to that same analog input, you'd just be varying the voltage between ground and +5 anyway, so doing it with a toggle switch is no different. I think it makes sense and would allow you to use only one cable.

The one caution I do have is that on the programming side, you should probably do input < 127 means 0, input >= 127 means 1, lest fluctuations in voltage cause the analog value to read a 1 or 2 instead of 0 (and likewise with the 255 end).
  #4   Spotlight this post!  
Unread 12-02-2008, 17:26
Cullen Team 372 Cullen Team 372 is offline
Registered User
FRC #0372
 
Join Date: Jan 2008
Location: Don't know, they don't let me out
Posts: 2
Cullen Team 372 is an unknown quantity at this point
Re: Hooking up a custom OI panel

Thank you for your responses. I figured it might be a little to weird to program, but thank you for confirming that it would work.
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
Hooking up a backup battery neoshaakti Control System 7 26-01-2008 22:09
hooking up potentiometers chippermonky Programming 1 05-02-2007 20:04
Hooking up 2 Servos kutty18 Programming 7 04-02-2005 09:26
Problems hooking up a joystick to edubot Salik Syed Programming 2 24-03-2004 23:56
hooking up sensors to controller? Oakridege_665 Technical Discussion 5 21-01-2002 14:55


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

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