BOE-Bot Code Help!
SPMex
Posts: 1
Can some one help me write a simple code? Im new to my Robotics Tem and dont know much about programing in C or C++
To make long story short my Robotics Teacher made me program the Science Olympiad BOE-bot for some reason. Acording to the sicence olympiad teacher I got to make the wheels go certain Revs, the revs the teacher needs it to go. so i need to be able to change it anytime.
' {$STAMP BS2}
' {$PBASIC 2.0}
REVS····· VAR BYTE
···· REVS =·20······ '·twenty complete revolutions
Thats my code but its not working
So if some one can help me with this I would really apreciate it THANKS!!!
To make long story short my Robotics Teacher made me program the Science Olympiad BOE-bot for some reason. Acording to the sicence olympiad teacher I got to make the wheels go certain Revs, the revs the teacher needs it to go. so i need to be able to change it anytime.
' {$STAMP BS2}
' {$PBASIC 2.0}
REVS····· VAR BYTE
···· REVS =·20······ '·twenty complete revolutions
Thats my code but its not working
So if some one can help me with this I would really apreciate it THANKS!!!
Comments
1) This is Basic, not C or C++. It's a particular version of Basic specifically for programming the Parallax Stamps.
2) No one here will write the program for you, but we will offer advice. To help you with that, you need to tell us what you do understand about your project.
3) Make sure you've downloaded (or have a paper copy) of two tutorials from Parallax, the "What's a Microcontroller?" and "Robotics with the BOE-BOT". You can find them here: www.parallax.com/tabid/535/Default.aspx. Start reading them ... now.
The Stamp can only control the direction and speed of the motors. How would that translate into number of revolutions. What else would your Stamp have to know to control the number of revolutions of the motor (and the wheel attached to it)?
Phil D