Go to Post I'm Getting Old. - MrForbes [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 08-03-2004, 09:25
Ian W. Ian W. is offline
College? What?
no team (Gompei and the Herd)
Team Role: College Student
 
Join Date: Jan 2002
Rookie Year: 2002
Location: Worcester, MA | Smithtown, NY
Posts: 1,464
Ian W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to all
Send a message via AIM to Ian W.
Re: need some help with the OI, and wiring a display

Quote:
Originally Posted by pryoplasm
well, its not necessary, but something nice that i thought up for one of the drivers. in practice during the 6 weeks of hell (an affecionate name i assure you) she was able to listen to the compressor that creates a vacuum (which uses the helicopter theroy of engineering, where if you can't make it silent, then make it loud as hell) and was able to know whether or not the compressor was on or not.

in short, whenever the compressor is on, i want it to have a light or something go on at the drivers station.

thanks for listening
No problem, this should be pretty easy, I had a similar problem two years ago and came up with a easy answer.

Know those LEDs right on the OI? Those are controlled by two bytes, led_byte1 and led_byte2, that are broken up into their bits. I'm not sure off the top of my head what the bits are called, but look it up in ifi_aliases.h, I seem to remember it being fairly obvious what the variables were for.

Once you find those variables, drop something like this into the code that controls you compressor (I'm writing pseudo-code, don't copy and paste )...

Code:
 if compressor is on:
    led_1 = 1;
 else:
    led_1 = 0;
That way, when your compressor turns on (I'm assuming by the pressure switches), an LED on the OI comes on, when the compressor turns off, the LED turns off.

I'd write more, but I've got to run to my next class now, hopefully this is helpful, otherwise I'll check back this afternoon if you need more help .
__________________
AIM --> Woloi
Email --> ian@woloschin.com
  #2   Spotlight this post!  
Unread 08-03-2004, 09:34
Greg McCoy's Avatar
Greg McCoy Greg McCoy is offline
boiler up!
FRC #3940 (CyberTooth)
Team Role: Engineer
 
Join Date: Feb 2002
Rookie Year: 2002
Location: Kokomo, IN
Posts: 484
Greg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond repute
Send a message via AIM to Greg McCoy
Re: need some help with the OI, and wiring a display

We use our "user byte" selectable in the little display on the OI to show the pressure from the sensor, nicely converted to PSI in the software. We also have a telemetry select switch on our OI that lets us select different data (the pressure, arm sensor positions) to send to the user byte...another simple solution...
  #3   Spotlight this post!  
Unread 08-03-2004, 23:38
pryoplasm's Avatar
pryoplasm pryoplasm is offline
Pit Crew/Electrical
AKA: Russ
#0069
 
Join Date: Jan 2004
Location: Quincy, Ma
Posts: 73
pryoplasm can only hope to improve
Re: need some help with the OI, and wiring a display

Quote:
Originally Posted by Greg McCoy
We use our "user byte" selectable in the little display on the OI to show the pressure from the sensor, nicely converted to PSI in the software. We also have a telemetry select switch on our OI that lets us select different data (the pressure, arm sensor positions) to send to the user byte...another simple solution...

for our compressor, its for a vacuum, so psi isnt that hard, thanks for the info, and i talked to one of our programmers, and he should be able to spit something up by the next regional

thanks everyone
__________________
Cut these eyes, but I will see,
Kiss these lying lips for me,
Stroke this skin, and I will kneel,
Brutalize me, I will heal...
-KMFDM
  #4   Spotlight this post!  
Unread 09-03-2004, 00:10
deltacoder1020's Avatar
deltacoder1020 deltacoder1020 is offline
Computer Guy
AKA: Dav
#1020 (The Indiana Prank Monkeys)
Team Role: Programmer
 
Join Date: Jan 2004
Location: Muncie, Indiana
Posts: 340
deltacoder1020 has a spectacular aura aboutdeltacoder1020 has a spectacular aura about
Send a message via AIM to deltacoder1020
Re: need some help with the OI, and wiring a display

just take a look in the default code - down at the bottom of Default_Routine there's code the sets the state of the LEDs on the OI - play around with that to your hearts content.
__________________
Team 1020, the Indiana Prank Monkeys (www.team1020.org)
  #5   Spotlight this post!  
Unread 10-03-2004, 20:46
pryoplasm's Avatar
pryoplasm pryoplasm is offline
Pit Crew/Electrical
AKA: Russ
#0069
 
Join Date: Jan 2004
Location: Quincy, Ma
Posts: 73
pryoplasm can only hope to improve
Re: need some help with the OI, and wiring a display

well, i dont have a problem with the programming, but more of not having the interface in front of me, so i dont know where to place something. also, i found out i can use the RS232 port for output on the OI, but it needs its own power source, and i am worried of toasting the OI with too much ampage...
__________________
Cut these eyes, but I will see,
Kiss these lying lips for me,
Stroke this skin, and I will kneel,
Brutalize me, I will heal...
-KMFDM
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


All times are GMT -5. The time now is 15: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