Tab Electronics sumo-bot
James D. Lane
Posts: 12
Hi all,
I have 8 Tab electronics sumo-bots for teaching my students robotics.· I can't seem to get the robot to respond to programs that I am writing.· Simple programs.· For example, I want the sumo-bot to drive forward continuously, until its right or left IR sensor detects an obstacle, then I want it to steer right or left to avoid the obstacle and continue driving forward, I developed the code that I believe should do that and the robot drives forward for x seconds then reverses and turns a little bit and then drives forward a little bit.· I did not have any code in the program telling it to drive backwards.· It does not even seem to be running the program that I developed.· I have tried this on two robots and get the same results.· It seems to me there are two processors on this robot, the BS2 and another that actually handles the motors and IR sensors.· Then the BS2 and this other processor handshake with each other based upon the commands that I use in the program.· Is this correct?· So, consequently, it seems this other processor is overriding my programming.· What do I need to do to get it to do what I want? I've put several hours into figuring this machine out so I can start teaching my students how to program it and am growing frustrated.
thanks,
James D. Lane
I have 8 Tab electronics sumo-bots for teaching my students robotics.· I can't seem to get the robot to respond to programs that I am writing.· Simple programs.· For example, I want the sumo-bot to drive forward continuously, until its right or left IR sensor detects an obstacle, then I want it to steer right or left to avoid the obstacle and continue driving forward, I developed the code that I believe should do that and the robot drives forward for x seconds then reverses and turns a little bit and then drives forward a little bit.· I did not have any code in the program telling it to drive backwards.· It does not even seem to be running the program that I developed.· I have tried this on two robots and get the same results.· It seems to me there are two processors on this robot, the BS2 and another that actually handles the motors and IR sensors.· Then the BS2 and this other processor handshake with each other based upon the commands that I use in the program.· Is this correct?· So, consequently, it seems this other processor is overriding my programming.· What do I need to do to get it to do what I want? I've put several hours into figuring this machine out so I can start teaching my students how to program it and am growing frustrated.
thanks,
James D. Lane
Comments
Your best bet is to join the Tab Robot Kit Group on Yahoo, here:
http://groups.yahoo.com/group/tabrobotkit/
You are correct that there are two processors, only one of which is a Basic Stamp.
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
<!--StartFragment -->
Thank you, thank you, thank you. I could not find any evidence of a posting forum at Tab's website for some reason.
thanks,
James D. Lane
And yes, you do need to program the BS2 to send messages to it to tell it what to do -- the first command being to quit doing the built-in behaviors. The Template.BS2 file has the BS2 interface code in it, so if you use that file as a starting place for your own code you're halfway there.
Does the template BS2 program already have the code in it to command the PIC16C505 to stop doing what it is preprogrammed to do?
thanks,
James D. Lane
For example, the attached file should turn off the 'native' behaviors, then sit there blinking the LED once a second.
Note PBasic allows you to define pins and 'CON' values anywhere in the file.· The Template file takes advantage of this by defining them very late (far down) in the file.· But they still work.