Go to Post Being a good engineer isn't all about engineering. It's about being able to use engineering for a practical application, and to successfully communicate your research or development results to people who aren't engineers - Jon Stratis [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 27-01-2006, 22:59
zachriggle zachriggle is offline
Registered User
FRC #1940
 
Join Date: Jan 2006
Location: Michigan
Posts: 37
zachriggle is infamous around these parts
Joystick Ports as Duplex Data Port

Is it possible to not only transmit data through the joystick port, but to also receive it? I understand that this may not (most likely will not, I think I remember reading something along those lines) be allowed during the competition, but it would help immensely for debugging purposes.

My reason for asking is that I want a diagnostic system that will work when the FRC isn't hooked up directly via parallel port, and can't afford (the Team can't) to shell out $100+ on a wireless radio set for the RS232 port.
  #2   Spotlight this post!  
Unread 27-01-2006, 23:00
Adam Richards's Avatar
Adam Richards Adam Richards is offline
I'm baaaaaaack.
FRC #1902 (Exploding Bacon)
Team Role: College Student
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Orlando, FL
Posts: 1,062
Adam Richards has a reputation beyond reputeAdam Richards has a reputation beyond reputeAdam Richards has a reputation beyond reputeAdam Richards has a reputation beyond reputeAdam Richards has a reputation beyond reputeAdam Richards has a reputation beyond reputeAdam Richards has a reputation beyond reputeAdam Richards has a reputation beyond reputeAdam Richards has a reputation beyond reputeAdam Richards has a reputation beyond reputeAdam Richards has a reputation beyond repute
Send a message via AIM to Adam Richards
Re: Joystick Ports as Duplex Data Port

Quote:
Originally Posted by zachriggle
Is it possible to not only transmit data through the joystick port, but to also receive it? I understand that this may not (most likely will not, I think I remember reading something along those lines) be allowed during the competition, but it would help immensely for debugging purposes.

My reason for asking is that I want a diagnostic system that will work when the FRC isn't hooked up directly via parallel port, and can't afford (the Team can't) to shell out $100+ on a wireless radio set for the RS232 port.
Have you looked into hooking a laptop up to the dashboard port?
  #3   Spotlight this post!  
Unread 31-01-2006, 22:06
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 6,991
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: Joystick Ports as Duplex Data Port

Quote:
Originally Posted by zachriggle
Is it possible to not only transmit data through the joystick port, but to also receive it? I understand that this may not (most likely will not, I think I remember reading something along those lines) be allowed during the competition, but it would help immensely for debugging purposes.

My reason for asking is that I want a diagnostic system that will work when the FRC isn't hooked up directly via parallel port, and can't afford (the Team can't) to shell out $100+ on a wireless radio set for the RS232 port.
The short answer is no. The four Joystick ports on the OI are inputs to the OI only (with the exception of a small amount of +5 volts coming out of the OI to read the joystick potentiometers).

The Dashboard port is exactly what you are looking for, however.

Don
__________________

I am N2IRZ - What's your callsign?
  #4   Spotlight this post!  
Unread 31-01-2006, 23:12
Matt Krass's Avatar
Matt Krass Matt Krass is offline
"Old" and Cranky. Get off my lawn!
AKA: Dark Ages
FRC #0263 (Sachem Aftershock)
Team Role: Mentor
 
Join Date: Oct 2002
Rookie Year: 2002
Location: Long Island, NY
Posts: 1,187
Matt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond repute
Send a message via AIM to Matt Krass
Re: Joystick Ports as Duplex Data Port

To be entirely honest, some of them have LED outputs, but that allows a very limited amount of data and you can view the LEDs right on the OI, default code I believe makes them show which way the joystick inputs are pointed for calibration, but you can change that.
__________________
Matt Krass
If I suggest something to try and fix a problem, and you don't understand what I mean, please PM me!

I'm a FIRST relic of sorts, I remember when we used PBASIC and we got CH Flightsticks in the KoP. In my day we didn't have motorized carts, we pushed our robots uphill, both ways! (Houston 2003!)
  #5   Spotlight this post!  
Unread 01-02-2006, 07:32
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,112
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: Joystick Ports as Duplex Data Port

Quote:
Originally Posted by zachriggle
...for debugging purposes...
Yes, the Dashboard port is probably what you want to use.

But if you want simple debugging without the need for a computer, you can send a single number to the numeric display on the OI. See the very end of the Default_Routine() in the default code, where it formats the backup battery voltage to be displayed as the User Byte. Last year, I used one of the joystick wheels to select among several feedback values as diagnostic display.
  #6   Spotlight this post!  
Unread 03-02-2006, 23:15
zachriggle zachriggle is offline
Registered User
FRC #1940
 
Join Date: Jan 2006
Location: Michigan
Posts: 37
zachriggle is infamous around these parts
Re: Joystick Ports as Duplex Data Port

Has anyone written any software that converts the dashboard to a terminal (even if readonly)? There are 7 (8?) user-settable bits. 8 bits in an ASCII character (you can get by with 6, using a modified character table)... how fast is the refresh rate? Assuming it's faster than 26ms (ms = thousandths... so 40 chars\s max if limited to 26ms), you could have a relatively simple readonly text print-out of whatever you wanted.

Writing the software wouldn't be hard, especially if you used Linux (Serial port access is simpler).

@Edit
Where is the code that controls the joystick wheels? I can't seem to locate that little bit, and it's driving me INSANE. I want to use it as a toggle switch... I figure you could get 3-4 states out of it with relative precision... 2 at least (top and bottom). Also, will we have to use FIRST-provided joysticks, or will we be able to use our own (assuming I do a mod to said wheels to make them click into place).

Last edited by zachriggle : 03-02-2006 at 23:17.
  #7   Spotlight this post!  
Unread 06-02-2006, 17:09
chickensofdoom chickensofdoom is offline
Registered User
AKA: Eric Thompson
#0818 (Genesis '02)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Warren, MI
Posts: 1
chickensofdoom is an unknown quantity at this point
Send a message via AIM to chickensofdoom Send a message via MSN to chickensofdoom Send a message via Yahoo to chickensofdoom
Re: Joystick Ports as Duplex Data Port

Yeah, we're trying to do something similar on our team. We have a palm pilot, and some software that emulates an LCD screen with it, and we're hoping to be able to use it to remotely display statistics (wheel speed, pot positions, etc.)

We just started working on it, so I'm still having trouble figuring out exactly how to output to the LCD manually and everything.

Anyway... I'd probably just plug it into the Dashboard port if I plan to interface to it, then?
  #8   Spotlight this post!  
Unread 06-02-2006, 21:17
zachriggle zachriggle is offline
Registered User
FRC #1940
 
Join Date: Jan 2006
Location: Michigan
Posts: 37
zachriggle is infamous around these parts
Re: Joystick Ports as Duplex Data Port

Yeah, you probably need a RS232 converter cable, though. Luckily, Axim x50 series RS232 cables are readily available (but for the steep-arse price of $50).
  #9   Spotlight this post!  
Unread 07-02-2006, 01:35
ForgottenSalad's Avatar
ForgottenSalad ForgottenSalad is offline
In search of a home...
AKA: Michael Wessler
no team
 
Join Date: Feb 2005
Rookie Year: 2005
Location: Bethlehem, NH
Posts: 136
ForgottenSalad will become famous soon enoughForgottenSalad will become famous soon enough
Send a message via AIM to ForgottenSalad
Re: Joystick Ports as Duplex Data Port

Quote:
Originally Posted by zachriggle
Has anyone written any software that converts the dashboard to a terminal (even if readonly)? There are 7 (8?) user-settable bits. 8 bits in an ASCII character (you can get by with 6, using a modified character table)... how fast is the refresh rate? Assuming it's faster than 26ms (ms = thousandths... so 40 chars\s max if limited to 26ms), you could have a relatively simple readonly text print-out of whatever you wanted.

Writing the software wouldn't be hard, especially if you used Linux (Serial port access is simpler).
If anyone out there has anything like this please post or PM it... While having a full-fledged dashboard is nice, I would much prefer a terminal type readout.

A dashboard port related question, the data transfer through it is output only, correct?
  #10   Spotlight this post!  
Unread 07-02-2006, 18:19
devicenull devicenull is offline
Robot? We need a robot?
no team
 
Join Date: Sep 2004
Rookie Year: 1234
Location: n/a
Posts: 359
devicenull is just really nicedevicenull is just really nicedevicenull is just really nicedevicenull is just really nicedevicenull is just really nice
Re: Joystick Ports as Duplex Data Port

A better idea would be a sort of lookup table. You would have a table in your dashboard program, with stuff like:
"Battery voltage %i"
"Doing something - %i %i"
"I broke something"

Then, the RC would set say User_Byte1 to the correct value, and the rest of the user bytes to the parameters for that message. The dashboard program would then read those and display the proper message. Just using User_Byte1, you could have 255 messages..
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
Updated: Serial Port Driver Code Kevin Watson Programming 4 05-02-2005 18:39
New Serial Port Driver Kevin Watson Programming 16 09-01-2005 01:56
heres the code. y this not working omega Programming 16 31-03-2004 15:18
Fried program slots? Jeff Waegelin Programming 18 19-03-2003 18:08
Limiting PWM in pbasic archiver 2001 4 24-06-2002 00:38


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

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