Go to Post I believe with every fiber of my being that Engineering is an Art. It is a beautiful, wonderful, delightful art. - Joe Johnson [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 18-04-2002, 15:59
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
Sounds hard...you will have to replicate the entire OI as a Palm program? Sounds like a lot of work, and how are you going to control the robot? The only inputs you can use will be the stylus & buttons, so it seems like driving would be kind of clumsy.

Good luck, just some things I was wondering about
  #2   Spotlight this post!  
Unread 18-04-2002, 16:12
Jnadke Jnadke is offline
Go Badgers!
#0093
Team Role: Alumni
 
Join Date: Jan 2002
Location: Appleton, WI
Posts: 775
Jnadke is on a distinguished road
Send a message via ICQ to Jnadke Send a message via AIM to Jnadke Send a message via Yahoo to Jnadke
Okay... first major setback.

The radio modems and the OI/RC use RS-422 ports. They communicate differently than standard serial RS-232 ports found in your computer. In short, no radio modems unless you figure out a way to work around this problem... I'll research it more... Converters are available to convert it electrically, but it'll cost ya $80.

I don't know if the tether port also uses this method of communication...
__________________
The best moments of our lives fall in two categories: those that did happen and those that did not.
  #3   Spotlight this post!  
Unread 18-04-2002, 17:35
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.
well, for controlling it with a palm, after i get that done, i'd be able to do more thnigs with it. have to start somewhere. also, could you use the O/I as a go through, and just put everything on one port? you have the 4 analog and 4 digital switches. you can run something on that me thinks.
__________________
AIM --> Woloi
Email --> ian@woloschin.com
  #4   Spotlight this post!  
Unread 18-04-2002, 17:54
rbayer's Avatar Unsung FIRST Hero
rbayer rbayer is offline
Blood, Sweat, and Code
no team (Teamless Orphan)
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Minnetonka, MN
Posts: 1,087
rbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of light
Send a message via AIM to rbayer
Quote:
you have the 4 analog and 4 digital switches. you can run something on that me thinks.
True, but how would you get the data to the joystick port? A joystick uses one pin for each axis and each button. On the standard CH joysticks, thats eight pins. Serial only uses one pin for the actual data. Just something to think about.

Not trying to be a pessimist, but I don't see how the tether could be official RS-232 because it can power the OI. Who knows? Maybe I'm just wrong and it actually is. Only time will tell.
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php
  #5   Spotlight this post!  
Unread 18-04-2002, 18:10
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.
grr, so many problems. we'll find a way though.
__________________
AIM --> Woloi
Email --> ian@woloschin.com
  #6   Spotlight this post!  
Unread 18-04-2002, 18:10
Jnadke Jnadke is offline
Go Badgers!
#0093
Team Role: Alumni
 
Join Date: Jan 2002
Location: Appleton, WI
Posts: 775
Jnadke is on a distinguished road
Send a message via ICQ to Jnadke Send a message via AIM to Jnadke Send a message via Yahoo to Jnadke
Quote:
Originally posted by Ian W.
well, for controlling it with a palm, after i get that done, i'd be able to do more thnigs with it. have to start somewhere. also, could you use the O/I as a go through, and just put everything on one port? you have the 4 analog and 4 digital switches. you can run something on that me thinks.
Standard serial port is just recieve/transmit. You'll have to write your own module to take control of the serial port at the hardware level in order to use it as some way to communicate over the other pins through the OI...

I thought you meant turning the entire computer into the operator interface... Hrmm... to me it still seems like a waste to have to go through the operator interface... also it makes the project a whole lot easier...

I'm thinking this isn't the project to jump on. It runs so many potential risks/problems. Someone could use something like this for not-so-good tendencies/revenge during a competition.
__________________
The best moments of our lives fall in two categories: those that did happen and those that did not.
  #7   Spotlight this post!  
Unread 18-04-2002, 18:19
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.
how could someone use this during competition? they would immediately be DQ'd if they start using the laptop. of course, i do see your point. why is everything so hard?
__________________
AIM --> Woloi
Email --> ian@woloschin.com
  #8   Spotlight this post!  
Unread 19-04-2002, 10:27
rbayer's Avatar Unsung FIRST Hero
rbayer rbayer is offline
Blood, Sweat, and Code
no team (Teamless Orphan)
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Minnetonka, MN
Posts: 1,087
rbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of light
Send a message via AIM to rbayer
Has anyone figured out if the tether is RS-232? I don't have access to any RC/OIs this time of year, so I haven't been able to check.

If it is, you could try writing a quick-and-dirty two-way serial port passthrough/capture program. My idea is to hook the OI and RC up to different serial ports on the computer. The program would then capture everything sent between the two, and forward the packets out the other interface. Doing it that way, the RC/OI would think they are still directly connected.
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php
  #9   Spotlight this post!  
Unread 19-04-2002, 12:20
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.
well, i can try to find out for you in week. but by then, you'll have figured out too.
__________________
AIM --> Woloi
Email --> ian@woloschin.com
  #10   Spotlight this post!  
Unread 19-04-2002, 12:26
rbayer's Avatar Unsung FIRST Hero
rbayer rbayer is offline
Blood, Sweat, and Code
no team (Teamless Orphan)
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Minnetonka, MN
Posts: 1,087
rbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of light
Send a message via AIM to rbayer
Yeah...I'll slap together a program on my way to nationals. Try it out on a real robot.
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php
  #11   Spotlight this post!  
Unread 19-04-2002, 12:49
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.
hmm, i guess i'll have to come and raid your pit then. seems like an interesting project, wish i knew more about C++ (i've only been doing it one year).
__________________
AIM --> Woloi
Email --> ian@woloschin.com
  #12   Spotlight this post!  
Unread 19-04-2002, 15:43
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
A more useful project: A full control system emulator. One of these would be handy for testing code out when you don't have the robot handy. Also, a good way to test before downloading to the robot.

If you could make the PWM/Relay outputs so that you could label them (so you know what's going on with the "motors") and visualize their output, while also being able to control the OI, that would be awesome.

Good project for someone with more time and patience then me!

Quote:
Originally posted by Jnadke
Okay... first major setback.

The radio modems and the OI/RC use RS-422 ports. They communicate differently than standard serial RS-232 ports found in your computer. In short, no radio modems unless you figure out a way to work around this problem... I'll research it more... Converters are available to convert it electrically, but it'll cost ya $80.

I don't know if the tether port also uses this method of communication...
I forgot about that. Another very good point.
  #13   Spotlight this post!  
Unread 19-04-2002, 17:23
Dave Flowerday Dave Flowerday is offline
Software Engineer
VRC #0111 (Wildstang)
Team Role: Engineer
 
Join Date: Feb 2002
Rookie Year: 1995
Location: North Barrington, IL
Posts: 1,366
Dave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond repute
The tether port does use RS-232. HOWEVER: don't hook a laptop up to this port as +12v from the robot battery is provided on one of the pins. In theory this shouldn't damage anything since RS-232 has a range of -25v to +25v, but I think it would be extremely unwise to try it.

If you're interested in this kind of thing though you should come check out the Wildstang pit and ask an electrical person to show you the Mini Controller we made. We built a little circuit with a microcontroller on it that speaks directly to the robot controller over the tether port. It has a couple of momentary switches on it to retract the hooks and a push button to perform a robot reset. We use it to unhook from the goal after the end of a match rather than carrying out the whole control system onto the field.
  #14   Spotlight this post!  
Unread 30-04-2002, 16:21
VanWEric VanWEric is offline
Registered User
#0250 (Dynamos)
 
Join Date: Feb 2002
Location: NY
Posts: 86
VanWEric is an unknown quantity at this point
help

If any one can point me in the direction of a good library to play with the serial port, i WILL eventually get this working. as soon as boring summer sets in, i will have nothing but time on my hands. BTW -- this has a very good potential to violate every rule imaginable, but that isnt my goal. I just want to have the ability to break every rule imaginable and feel smug about it.
  #15   Spotlight this post!  
Unread 30-04-2002, 19:15
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.
LOL!!!

Well, if we made something like that, it would make FIRST have to police the control systems/dashboard programs a lot more carefully. it would still be cool to do though, and an emulator for me to test the code without a robot would be godly.
__________________
AIM --> Woloi
Email --> ian@woloschin.com
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
How to communicate both through radio and serial port? JC Denton Programming 1 08-02-2003 23:43
Problem with communicating with STAMP through serial port Skabana159 Technical Discussion 2 06-02-2003 21:10
Ever seen this serial port problem before??? Aidan F. Browne Programming 5 05-02-2003 12:03
organized way of communication with FIRST? archiver 2001 0 24-06-2002 04:20
Serial Port Communication White Paper rbayer Programming 87 14-06-2002 16:10


All times are GMT -5. The time now is 23:33.

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