View Single Post
  #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).