Go to Post It would be a lot easier if students would quit being so magnificent. Really. - JaneYoung [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-2003, 15:28
Steven Carmain Steven Carmain is offline
Bit Twiddler
FRC #2832
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Westland, MI
Posts: 92
Steven Carmain will become famous soon enough
Programming Port

Has any of you teams figured out how the programming port can help your robot performance?

The only thing I can think of is using DEBUG statements in the code, and then you custom circuit board can use the input. The problems with this is that you slow down your code greatly, and you have to make a circuit that can decode your DEBUGS and make it in less than 4 weeks. Then you would have to feed your outputs to the switches in the RC or feed it back through the programming port, and then download your code again. I think it would be faster just to do everything in the code and don't fool with a circuit.:

So is it even worth all this hassle?
  #2   Spotlight this post!  
Unread 22-01-2003, 15:29
Raven_Writer's Avatar
Raven_Writer Raven_Writer is offline
2004 Detroit & Pittsburgh Winners
AKA: Eric Hansen
FRC #0005 (RoboCards)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Melvindale
Posts: 1,549
Raven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really nice
Send a message via ICQ to Raven_Writer Send a message via AIM to Raven_Writer Send a message via MSN to Raven_Writer Send a message via Yahoo to Raven_Writer
I think this belongs in the Programming board.
__________________
AIM: wisprmylastbreth
EMail: nightskywriter@gmail.com
Y!: synsoflife

"ai yoru ga" -- "Love the nights"
  #3   Spotlight this post!  
Unread 22-01-2003, 15:34
Steven Carmain Steven Carmain is offline
Bit Twiddler
FRC #2832
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Westland, MI
Posts: 92
Steven Carmain will become famous soon enough
I put it here because it also has to do with electical.
__________________
2017 - Team 2832 Mentor
2016 - Team 6013 Mentor
2002-05 - Team 45 Software/Electrical

A robot is like a campfire: it takes a while to bulid it, and then everyone surounds it!
A world without standards is chaos. A world with standards is chaos.
  #4   Spotlight this post!  
Unread 22-01-2003, 15:42
Raven_Writer's Avatar
Raven_Writer Raven_Writer is offline
2004 Detroit & Pittsburgh Winners
AKA: Eric Hansen
FRC #0005 (RoboCards)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Melvindale
Posts: 1,549
Raven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really nice
Send a message via ICQ to Raven_Writer Send a message via AIM to Raven_Writer Send a message via MSN to Raven_Writer Send a message via Yahoo to Raven_Writer
Quote:
Originally posted by Steven Carmain
I put it here because it also has to do with electical.
Out of topic: I hope someone replies here soon..or else it'll be breaking the rules.

Back in topic: True, and I'm glad you didn't do what most do...add it in both boards. As for your DEBUG deal, it's mainly used to test certain values. Like you put:
Code:
DEBUG ? p1_y
It'll output the value of p1_y
__________________
AIM: wisprmylastbreth
EMail: nightskywriter@gmail.com
Y!: synsoflife

"ai yoru ga" -- "Love the nights"
  #5   Spotlight this post!  
Unread 22-01-2003, 16:24
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
The Programming port is a standard RS232 port used for serial communications. It directly connects to the Stamp chip's serial port, unlike the digital inputs. It's not just for programming, it also allows one to communicate. With this, a external circuit can communicate directly with the Stamp.

With the information provided, you can just use the Basic stamp manual for the serin and serout commands.
__________________
The best moments of our lives fall in two categories: those that did happen and those that did not.
  #6   Spotlight this post!  
Unread 22-01-2003, 16:28
Steven Carmain Steven Carmain is offline
Bit Twiddler
FRC #2832
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Westland, MI
Posts: 92
Steven Carmain will become famous soon enough
How would you do this? Could anyone find any documentation?
__________________
2017 - Team 2832 Mentor
2016 - Team 6013 Mentor
2002-05 - Team 45 Software/Electrical

A robot is like a campfire: it takes a while to bulid it, and then everyone surounds it!
A world without standards is chaos. A world with standards is chaos.
  #7   Spotlight this post!  
Unread 22-01-2003, 16:30
Raven_Writer's Avatar
Raven_Writer Raven_Writer is offline
2004 Detroit & Pittsburgh Winners
AKA: Eric Hansen
FRC #0005 (RoboCards)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Melvindale
Posts: 1,549
Raven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really nice
Send a message via ICQ to Raven_Writer Send a message via AIM to Raven_Writer Send a message via MSN to Raven_Writer Send a message via Yahoo to Raven_Writer
Quote:
Originally posted by Steven Carmain
How would you do this? Could anyone find any documentation?
For putting in the serin/serout commands, it's in the default code.
__________________
AIM: wisprmylastbreth
EMail: nightskywriter@gmail.com
Y!: synsoflife

"ai yoru ga" -- "Love the nights"
  #8   Spotlight this post!  
Unread 22-01-2003, 16:52
Aidan F. Browne's Avatar Unsung FIRST Hero
Aidan F. Browne Aidan F. Browne is offline
Engineer
AKA: The Aidan-bot
no team
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1999
Location: Charlotte, NC
Posts: 220
Aidan F. Browne has a reputation beyond reputeAidan F. Browne has a reputation beyond reputeAidan F. Browne has a reputation beyond reputeAidan F. Browne has a reputation beyond reputeAidan F. Browne has a reputation beyond reputeAidan F. Browne has a reputation beyond reputeAidan F. Browne has a reputation beyond reputeAidan F. Browne has a reputation beyond reputeAidan F. Browne has a reputation beyond reputeAidan F. Browne has a reputation beyond reputeAidan F. Browne has a reputation beyond repute
Check the PBasic manual. DEBUG is basically just an alias for "Serout" to a specific pin on the port.
  #9   Spotlight this post!  
Unread 22-01-2003, 16:59
Steven Carmain Steven Carmain is offline
Bit Twiddler
FRC #2832
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Westland, MI
Posts: 92
Steven Carmain will become famous soon enough
I see what you guys are talking about, but how is this better than just programming your robot to just do what its told?
__________________
2017 - Team 2832 Mentor
2016 - Team 6013 Mentor
2002-05 - Team 45 Software/Electrical

A robot is like a campfire: it takes a while to bulid it, and then everyone surounds it!
A world without standards is chaos. A world with standards is chaos.
  #10   Spotlight this post!  
Unread 22-01-2003, 17:01
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
You don't NEED to use it at all...


Using the serial input is only if you have EXTERNAL microchips that need to feed input to the robot controller. Some teams have shaft encoders and magnetic compasses that feed data to faster microprocessors. Then, the processors evaluate the data and send correction information to the Robot controller. The robot controller uses this info to correct its course.


If you don't know what it does, or what you're doing... the general rule is DON'T TOUCH IT. Messing with it will void your warranty, as stated in the manual. If you break it, you won't get a new one....
Don't get me wrong, I'm not opposed to trying new things. However, asking just enough questions so that you can tinker with it will only get it broken. I strongly suggest you read some manuals to [try] to fully understand how it works.


You can start at the Stamp Documentation V2.0. Believe it or not, but I've looked over much of this stuff front-to-back.
__________________
The best moments of our lives fall in two categories: those that did happen and those that did not.

Last edited by Jnadke : 22-01-2003 at 17:11.
  #11   Spotlight this post!  
Unread 22-01-2003, 17:37
Rickertsen2 Rickertsen2 is offline
Umm Errr...
None #1139 (Chamblee Gear Grinders)
Team Role: Alumni
 
Join Date: Dec 2002
Rookie Year: 2002
Location: ATL
Posts: 1,421
Rickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant future
Send a message via AIM to Rickertsen2 Send a message via Yahoo to Rickertsen2
it would take a true idiot to break the thing. These pins are no more sensitive than the others. warranties. I void then on everthing i own. warranties are made to be broken
__________________
1139 Alumni
  #12   Spotlight this post!  
Unread 22-01-2003, 17:45
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:
Originally posted by Rickertsen2
it would take a true idiot to break the thing. These pins are no more sensitive than the others. warranties. I void then on everthing i own. warranties are made to be broken

Agreed. While writing RoboCon, I had NO idea what the pinout of the programming port was, so I just plugged it into my computer. It worked just fine. If you want an example PBASIC program that sends and receives data through this port, grab RoboCon from my website, http://www.robbayer.com, and look at the BSX file that comes with it.

--Rob
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php
  #13   Spotlight this post!  
Unread 22-01-2003, 18:11
Steven Carmain Steven Carmain is offline
Bit Twiddler
FRC #2832
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Westland, MI
Posts: 92
Steven Carmain will become famous soon enough
I see you would have had a hard time making that. I still don't see the point of doing this, especially this late in build season
__________________
2017 - Team 2832 Mentor
2016 - Team 6013 Mentor
2002-05 - Team 45 Software/Electrical

A robot is like a campfire: it takes a while to bulid it, and then everyone surounds it!
A world without standards is chaos. A world with standards is chaos.

Last edited by Steven Carmain : 22-01-2003 at 19:28.
  #14   Spotlight this post!  
Unread 23-01-2003, 20:18
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
Quote:
Originally posted by rbayer
While writing RoboCon, I had NO idea what the pinout of the programming port was, so I just plugged it into my computer. It worked just fine.
Rob, I'm surprised to hear this from you. This is terrible advice to pass on to other teams. Encouraging this kind of "experimenting" will only cause lots of damaged $1500 control systems and $1000+ laptops.

You essentially got lucky because the programming port happens to be a standard RS232 port.

Please everyone, never just hook up to a port when you don't know what the pins on it do.
  #15   Spotlight this post!  
Unread 23-01-2003, 20:39
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:
Originally posted by Dave Flowerday
Rob, I'm surprised to hear this from you. This is terrible advice to pass on to other teams. Encouraging this kind of "experimenting" will only cause lots of damaged $1500 control systems and $1000+ laptops.

You essentially got lucky because the programming port happens to be a standard RS232 port.

Please everyone, never just hook up to a port when you don't know what the pins on it do.

Sorry, I guess I shouldn't have said "no idea". Based on how I saw everything working, I took an educated guess. Probably wasn't the best idea, but since you're supposed to plug computers into the programming port, I just guessed that plugging a computer in would be OK...

Dave's point is definately important: don't go plugging random things in to other random things. Especially if you haven't at least asked people here first.

Again, my apologies. Please note that I do NOT do this kind of thing on a regular basis--the programming port just happened to be a special case. I haven't TOUCHED the tether, or anything else undocumented and never plan on it either. $1145 is a little more than I'm willing to shell out in the name of science.
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php
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
Fried program slots? Jeff Waegelin Programming 18 19-03-2003 18:08
Horror Story - Laptop com port again Lloyd Burns Programming 3 17-03-2003 07:33
Dashreader.dll: A Visual Basic .NET user control to read the dashboard port Ameya Programming 4 12-01-2003 23:40
Change to Initializing Inputs and Outputs Jferrante Programming 4 07-01-2003 11:36
Programming Port GreenDice Programming 12 10-01-2002 09:14


All times are GMT -5. The time now is 04:30.

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