Search  
Sunday, November 23, 2008 ..:: Forum ::.. Register  Login
 HomePage Minimize

 Print   

 Products Minimize

 Print   

 MSRS Minimize

 Print   

      
 RoboticsConnection Forum Minimize
SearchForum Home
  Discussions  Robot Sensors  Line Following ...
 Re: Line Following Sensor question
 
 10/17/2007 1:40:07 PM
jason
158 posts
5th


Re: Line Following Sensor question

Steve,

We just got a Brainstem in today...I will test one of our line followers with it by Sunday, and let you know what I discover.

Best Regards!


Jason Summerour
President,
Summerour Robotics Corp
Microsoft MVP
www.roboticsconnection.com
 10/27/2007 9:24:56 AM
steve
5 posts


Re: Line Following Sensor question
Jason,
How have you been doing coming upto speed on the Brainstem?  If it would be of any help I can send over what code I've got ect.

Steve
ps maybe I should return the line follower I've got and try another?
 10/27/2007 10:14:55 AM
jason
158 posts
5th


Re: Line Following Sensor question

Steve,

We have been slammed w/ orders over the last three weeks, and I'm having a hard time staying caught up.  If you could send your code, it would defnitely be a big help to me! :)


Jason Summerour
President,
Summerour Robotics Corp
Microsoft MVP
www.roboticsconnection.com
 10/28/2007 4:50:13 PM
steve
5 posts


Re: Line Following Sensor question
/* Copy the code below to a    */
/* file named LineSensor.tea   */
/*                             */
/* Save that file to the aUser */
/* folder under your brainstem */
/* directory                   */
/*                             */


/* The Following Console       */
/* Commands compile, load      */
/* and Execute the program     */

/* run: aBinary\console.exe    */
/*                             */

/* from the console:           */
/*                             */
/* steep "LineSensor"          */
/* load "LineSensor" 2 0       */
/* launch 2 0                  */

/* To reset the
/* brainstem if needed:        */
/* 2 24                        */


#include <aAPI.tea>
#include <aCore.tea>
#include <linesensor.tea>
#include <aPrint.tea>
#include <aI2C.tea>

void main(){
char y;
char result;

aCore_Outportc(aPortIICBaud, 0); /*set bus to slowest speed (std iic)*/
aPrint_String("Starting...\n");


for (y = 1; y <= 20; y++) //change the value, It locks up after 6 iterations for me
{
    result = aI2C_ReadChar((unsigned char)0x50,0);
    aPrint_String("y=");
    aPrint_CharDec(y);
    aPrint_String(" Result=");
    aPrint_CharDec(result);
    aPrint_String("\n");
    aCore_Sleep(10000);
};

aPrint_String("Done\n");
}
 jason wrote

Steve,

We have been slammed w/ orders over the last three weeks, and I'm having a hard time staying caught up.  If you could send your code, it would defnitely be a big help to me! :)

 10/28/2007 4:52:28 PM
steve
5 posts


Re: Line Following Sensor question
#include <linesensor.tea>

Should be removed: (I was trying an asembler routine to access the device, but it didn't work either)
Steve
  Discussions  Robot Sensors  Line Following ...

SearchSearch  Forum HomeForum Home    Print   

Copyright 2004-2007 Summerour Robotics Corp   Terms Of Use  Privacy Statement
DotNetNuke® is copyright 2002-2008 by DotNetNuke Corporation