Go to Post I'm still trying to find a way to get FIRST to dump the Chicken Dance song. :p - Koko Ed [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
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 19-04-2004, 04:35
punarhero's Avatar
punarhero punarhero is offline
Registered User
#0696 (Clark Magnet Robotics)
Team Role: Programmer
 
Join Date: Jan 2002
Location: la crescenta
Posts: 67
punarhero is an unknown quantity at this point
Send a message via AIM to punarhero Send a message via Yahoo to punarhero
Interfacing a PC with last year's Robot Controller

Hi all,
On this project that our team is working on to build a robot for a museum, we have connected a PC onboard with the RC from last year, running PBASIC, through the program port on the RC. Sean from Team 116 wrote a program for us that runs on the computer, which looks for serial data from the RC, and plays a track according. I have the following code:

IF picturedetected THEN
SEROUT 16, N19200, [picnumber]
ENDIF

The program on the computer looks for the pic number and plays a track corressponding to the pic number.

However, it is not working!!! As soon as I start runniing the porgram on the comp, the controller gives me a BasicRunError.
Has anyone ever interfaced a PC with a Robot Controller before. If so, please help us because we are in a serious crunch.
Thanks a lot
__________________
Punar Sikka
Clark Magnet Robotics
Team 696
www.team696.org
  #2   Spotlight this post!  
Unread 19-04-2004, 06:52
seanwitte seanwitte is offline
Registered User
None #0116
Team Role: Engineer
 
Join Date: Nov 2002
Location: Herndon, VA
Posts: 378
seanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant future
Send a message via AIM to seanwitte
Re: Interfacing a PC with last year's Robot Controller

The host program running on the PC uses the MSCOMM control from a VB 6.0 GUI. Punardeep says that the RC crashes with a Basic Run Error whenever the serial port on the PC is open.

I tested the program with a BS2 and it works correctly. The only caveat is that whenever the serial port is initially opened on the PC is resets the stamp by asserting the reset pin. Is there a modification to the reset circuit that would cause the problem hes having?
  #3   Spotlight this post!  
Unread 21-04-2004, 00:05
seanwitte seanwitte is offline
Registered User
None #0116
Team Role: Engineer
 
Join Date: Nov 2002
Location: Herndon, VA
Posts: 378
seanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant future
Send a message via AIM to seanwitte
Re: Interfacing a PC with last year's Robot Controller

In order to open a serial connection with a 2003 RC using the MSCOMM control you need to set the DTREnable property to false before you open the port. With a regular basic stamp you get a reset when the port opens, but the RC goes into a permanent error state. The documentation claims that the default value for the DTREnable property is false, but that is incorrect.
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 much planning goes into your robot? Jnadke General Forum 41 29-01-2006 21:29
2003 robot controller & interface LGuY Control System 3 04-04-2004 16:01
Public apology from myself (Team 830) Don Wright Rules/Strategy 13 14-03-2004 22:02
Using part of last years EduRobot controller m0rph3us Robotics Education and Curriculum 0 05-12-2003 17:09
Edu Robot Controller Balbinot Inventor 0 10-01-2003 13:51


All times are GMT -5. The time now is 05: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