Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Sending data back to the OI (http://www.chiefdelphi.com/forums/showthread.php?t=42421)

DanDon 22-01-2006 11:35

Sending data back to the OI
 
Hi all,

I was wondering if it would be possible to send data back to the operator interface in order to fire a sound alert. Can I send back any data through any of the pins on the joystick ports or the dashboard port (to a custom circuit that would fire the alert)?


Thanks,

Mark McLeod 22-01-2006 11:56

Re: Sending data back to the OI
 
No, not really.

The problem isn't sending a signal to a joystick port, there are some LED level lines available to you to light some LEDs if you like, the problem is there isn't enough power available that way to power an alarm. Outside power sources aren't allowed to be used in conjunction with the joystick ports.

However, you can send data to the dashboard port and have something like a laptop hooked there sound an alarm.

Andrew Blair 22-01-2006 11:59

Re: Sending data back to the OI
 
The other problem is, it's very unlikely that you'll be able to hear an alarm during competition anyways, unless you use headphones. It's so loud in the driver's staion that even while screaming to the person next to you, they don't always hear you.

DanDon 22-01-2006 12:23

Re: Sending data back to the OI
 
Quote:

Originally Posted by Mark McLeod
No, not really.

The problem isn't sending a signal to a joystick port, there are some LED level lines available to you to light some LEDs if you like, the problem is there isn't enough power available that way to power an alarm. Outside power sources aren't allowed to be used in conjunction with the joystick ports.

However, you can send data to the dashboard port and have something like a laptop hooked there sound an alarm.

Just to get it working, even if not for use at a competition, how would I send the signal? (Assuming that I can power the alert)

Thanks,

JBotAlan 22-01-2006 12:38

Re: Sending data back to the OI
 
From what I remember (and if you wait a few minutes I'll dig up the whitepapers) the Dashboard program can receive the status of the PWM lights. In your code, there are lines that look like this:
Pwm1_green = 1;
Pwm2_red = 0;

And so on. They aren't in that order, but you get the point. These are what cause the red/green lights on the OI to change. You can write a program for the computer (hopefully you can do this) to get the Dashboard packets (again, I'll dig up the applicable whitepaper in a moment). That program can play a sound if the lights are in a certain state. I'm sorry I don't have specifics at the moment, but I will edit this as soon as I do.

I also might write a program to do this soon, just to see what I can do.

JBotAlan

EDIT: I found the list of whitepapers. http://www.chiefdelphi.com/forums/pa... ESC&sort=date
I might write something to do this, I might not. Hopefully you have someone on your team that can write programs for the computer. Good luck!

Mark McLeod 22-01-2006 12:49

Re: Sending data back to the OI
 
See pages 5, 7, and 9 of the OI Reference Guide.
It's from 2005 but applies to 2006 as is.
It gives you both the proper pinout and the variable names accessable from with the RC user program to set the lines high or low.

Just be sure not to attempt to draw any power from the joystick port or it could permanently damage your OI.

phrontist 22-01-2006 13:40

Re: Sending data back to the OI
 
Don't bother with sound, but I would highly reccomend a laptop for the dashboard port. Try to integrate it nicely in your controls.

cbolin 23-01-2006 17:39

Re: Sending data back to the OI
 
Hi,
We connected an opto-isolator chip to the OI port 3. We connected pin 15 to the LED anode on the opto...and pin 12 to LED cathode. The OI provides current limiting. We connected the transistor to +12V (provided from outside the OI...another battery). Connected the opto transistor emitter to a 4.7K resistor to 0V. We tapped the emitter to drive a MOSFET. Used external 12V on one end of MOSFET...and a 12V lamp on the other. Voila!!

It worked well.

Regarding rules, are we allowed to bring a battery to the operator station to provide power for external circuits??

Regards,
ChuckB

Billfred 23-01-2006 18:03

Re: Sending data back to the OI
 
Quote:

Originally Posted by cbolin
Regarding rules, are we allowed to bring a battery to the operator station to provide power for external circuits??

Regards,
ChuckB

Check with Q&A to be sure, but since you're allowed to bring batteries for Dashboard-like devices, I'd imagine that they're fair game for that.

Alan Anderson 23-01-2006 21:55

Re: Sending data back to the OI
 
Quote:

Originally Posted by cbolin
Regarding rules, are we allowed to bring a battery to the operator station to provide power for external circuits??

Yes, but...

Quote:

Originally Posted by <R78>
All equipment connected to the Joystick Ports of the IFI Operator Interface must be powered solely through the power available through the port. External power sources of any type are not permitted on any equipment connected to the Joystick Ports. Portable computing devices may not be connected to Joystick input ports on the Operator Interface. Power-passive devices (e.g. joysticks that draw their power solely through the IFI Operator Interface joystick port) are permitted.


cbolin 24-01-2006 14:17

Re: Sending data back to the OI
 
Alan,
Do you suppose connecting an opto-isolator is okay with this rule? The OI power supply is driving and LED and no other circuits. The isolation ensures no electrical connection. The external battery would then support 100% of external circuitry.

Billfred, I'll check the Q&A.

Regards,
ChuckB

Alan Anderson 24-01-2006 15:04

Re: Sending data back to the OI
 
I "suppose" that the words
Quote:

External power sources of any type are not permitted on any equipment connected to the Joystick Ports.
mean that if your device connects to the Joystick Ports, it cannot get power from anything other than the Joystick Ports. The words "isolation" and "electrical connection" are not present in the rule.

However, what I "suppose" is not relevant. If you want an official answer, submit an official question. Which I see you're planning to do, which is good. Now we can all find out the correct answer.

cbolin 26-01-2006 15:08

Re: Sending data back to the OI
 
The Q&A site says "No exceptions!" in response to using opto-isolators on the OI ports.

http://forums.usfirst.org/showthread.php?t=278

Regards,
Chuck

Alan Anderson 26-01-2006 15:17

Re: Sending data back to the OI
 
Quote:

Originally Posted by GDC
There are no exceptions to <R78>.

That's what I expected, and what I feared. If you want to get feedback from the OI into a powered device, you'll have to find some way to do it other than the LED driver outputs.


All times are GMT -5. The time now is 09:38.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi