Go to Post How about "Lebron"? Wait, no, you'll be dooming yourselves to failure the last 30 seconds of every match. - Travis Hoffman [more]
Home
Go Back   Chief Delphi > Technical > Programming
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 22-01-2006, 11:35
DanDon's Avatar
DanDon DanDon is offline
ohhh MY god
AKA: Dan Hoizner
FRC #0375 (The Robotic Plague)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Staten Island, NY
Posts: 1,432
DanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond repute
Send a message via ICQ to DanDon Send a message via AIM to DanDon Send a message via MSN to DanDon
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   Spotlight this post!  
Unread 22-01-2006, 11:56
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
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.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #3   Spotlight this post!  
Unread 22-01-2006, 11:59
Andrew Blair's Avatar
Andrew Blair Andrew Blair is offline
SAE Formula is FIRST with Gasoline.
FRC #0306 (CRT)
Team Role: Alumni
 
Join Date: Feb 2005
Rookie Year: 2004
Location: Corry
Posts: 1,193
Andrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond repute
Send a message via AIM to Andrew Blair Send a message via Yahoo to Andrew Blair
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.
__________________
Reading makes a full man, conference a ready man, and writing an exact man.
-Sir Francis Bacon

"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction."
-Albert Einstein
  #4   Spotlight this post!  
Unread 22-01-2006, 12:23
DanDon's Avatar
DanDon DanDon is offline
ohhh MY god
AKA: Dan Hoizner
FRC #0375 (The Robotic Plague)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Staten Island, NY
Posts: 1,432
DanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond repute
Send a message via ICQ to DanDon Send a message via AIM to DanDon Send a message via MSN to DanDon
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,
__________________
  #5   Spotlight this post!  
Unread 22-01-2006, 12:38
JBotAlan's Avatar
JBotAlan JBotAlan is offline
Forever chasing the 'bot around
AKA: Jacob Rau
FRC #5263
Team Role: Mentor
 
Join Date: Sep 2004
Rookie Year: 2004
Location: Riverview, MI
Posts: 723
JBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond repute
Send a message via AIM to JBotAlan Send a message via Yahoo to JBotAlan
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!
__________________
Aren't signatures a bit outdated?

Last edited by JBotAlan : 22-01-2006 at 12:41. Reason: More info
  #6   Spotlight this post!  
Unread 22-01-2006, 12:49
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
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.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 22-01-2006 at 12:59.
  #7   Spotlight this post!  
Unread 22-01-2006, 13:40
phrontist's Avatar
phrontist phrontist is offline
Proto-Engineer
AKA: Bjorn Westergard
FRC #1418 (Vae Victus)
Team Role: College Student
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Falls Church, VA
Posts: 828
phrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond repute
Send a message via AIM to phrontist
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.
__________________

University of Kentucky - Radio Free Lexington

"I would rather have a really big success or a really spectacular crash and failure then live out the warm eventual death of mediocrity" - Dean Kamen
  #8   Spotlight this post!  
Unread 23-01-2006, 17:39
cbolin's Avatar
cbolin cbolin is offline
Programming & Electrical
FRC #0342 (Burning Magnetos)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Charleston, SC
Posts: 72
cbolin is a splendid one to beholdcbolin is a splendid one to beholdcbolin is a splendid one to beholdcbolin is a splendid one to beholdcbolin is a splendid one to beholdcbolin is a splendid one to beholdcbolin is a splendid one to behold
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
__________________
Team 342 Programming & Control Systems
Good luck and have fun!
  #9   Spotlight this post!  
Unread 23-01-2006, 18:03
Billfred's Avatar
Billfred Billfred is offline
...and you can't! teach! that!
FRC #5402 (Iron Kings); no team (AndyMark)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: The Land of the Kokomese, IN
Posts: 8,547
Billfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond repute
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.
__________________
William "Billfred" Leverette - Gamecock/Jessica Boucher victim/Marketing & Sales Specialist at AndyMark

2004-2006: FRC 1293 (D5 Robotics) - Student, Mentor, Coach
2007-2009: FRC 1618 (Capital Robotics) - Mentor, Coach
2009-2013: FRC 2815 (Los Pollos Locos) - Mentor, Coach - Palmetto '09, Peachtree '11, Palmetto '11, Palmetto '12
2010: FRC 1398 (Keenan Robo-Raiders) - Mentor - Palmetto '10
2014-2016: FRC 4901 (Garnet Squadron) - Co-Founder and Head Bot Coach - Orlando '14, SCRIW '16
2017-: FRC 5402 (Iron Kings) - Mentor

94 events (more than will fit in a ChiefDelphi signature), 14 seasons, over 61,000 miles, and still on a mission from Bob.

Rule #1: Do not die. Rule #2: Be respectful. Rule #3: Be safe. Rule #4: Follow the handbook.
  #10   Spotlight this post!  
Unread 23-01-2006, 21:55
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
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.
  #11   Spotlight this post!  
Unread 24-01-2006, 14:17
cbolin's Avatar
cbolin cbolin is offline
Programming & Electrical
FRC #0342 (Burning Magnetos)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Charleston, SC
Posts: 72
cbolin is a splendid one to beholdcbolin is a splendid one to beholdcbolin is a splendid one to beholdcbolin is a splendid one to beholdcbolin is a splendid one to beholdcbolin is a splendid one to beholdcbolin is a splendid one to behold
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
__________________
Team 342 Programming & Control Systems
Good luck and have fun!
  #12   Spotlight this post!  
Unread 24-01-2006, 15:04
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
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.
  #13   Spotlight this post!  
Unread 26-01-2006, 15:08
cbolin's Avatar
cbolin cbolin is offline
Programming & Electrical
FRC #0342 (Burning Magnetos)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Charleston, SC
Posts: 72
cbolin is a splendid one to beholdcbolin is a splendid one to beholdcbolin is a splendid one to beholdcbolin is a splendid one to beholdcbolin is a splendid one to beholdcbolin is a splendid one to beholdcbolin is a splendid one to behold
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
__________________
Team 342 Programming & Control Systems
Good luck and have fun!
  #14   Spotlight this post!  
Unread 26-01-2006, 15:17
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
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.
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
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


All times are GMT -5. The time now is 20:48.

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