|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||||
|
|||||
|
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, |
|
#2
|
|||||
|
|||||
|
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. |
|
#3
|
|||||
|
|||||
|
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.
|
|
#4
|
|||||
|
|||||
|
Re: Sending data back to the OI
Quote:
Thanks, |
|
#5
|
|||||
|
|||||
|
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! Last edited by JBotAlan : 22-01-2006 at 12:41. Reason: More info |
|
#6
|
|||||
|
|||||
|
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. Last edited by Mark McLeod : 22-01-2006 at 12:59. |
|
#7
|
|||||
|
|||||
|
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.
|
|
#8
|
||||
|
||||
|
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 |
|
#9
|
|||||
|
|||||
|
Re: Sending data back to the OI
Quote:
|
|
#10
|
|||||
|
|||||
|
Re: Sending data back to the OI
Quote:
Quote:
|
|
#11
|
||||
|
||||
|
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 |
|
#12
|
|||||
|
|||||
|
Re: Sending data back to the OI
I "suppose" that the words
Quote:
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. |
|
#13
|
||||
|
||||
|
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 |
|
#14
|
|||||
|
|||||
|
Re: Sending data back to the OI
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| data packets | winners | Programming | 2 | 14-09-2006 01:25 |
| Fourier Transforms | phrontist | Math and Science | 14 | 30-11-2004 10:24 |
| First day back to school for myself and others is a full moon. Should we be scared? | Elgin Clock | Chit-Chat | 11 | 31-08-2004 10:42 |
| Time to give a little back to FIRST? | Elgin Clock | General Forum | 0 | 05-11-2001 19:15 |
| Taking the kits from Manchester on planes back to home base | Ken Leung | General Forum | 4 | 24-09-2001 22:47 |