Ugh, Robotics!!
See that annoying textbook on the left? Well don't! You would hate this book as much as I do! I guess you could say the only thing I loved about this unit was the adorable Boe-Bot we had to use. Other than that, we had to program our Boe-Bots to move. An example program we had to start with was;
PULSOUT 12, 750
PULSOUT 13, 750
END
PULSOUT just means the wheels or the servos. There are a total of three wheels. The 12 and 13 mean the wheels on each side of the Boe-Bot. The third wheel is located at the back and does not have a number as a name. If we look at the Boe-Bot from the front, wheel 12 is on one side and wheel 13 on the other. The number 750 is the program to make the wheels stop. If the wheels slowly move, you have to adjust the wheels so they are stable. But there are more programming codes. Here is a list of a few:
DEBUG - When you want to output a message.
DO/LOOP - This makes the program loop.
For Counter - This is a timed loop.
PULSOUT 12, 750
PULSOUT 13, 750
END
PULSOUT just means the wheels or the servos. There are a total of three wheels. The 12 and 13 mean the wheels on each side of the Boe-Bot. The third wheel is located at the back and does not have a number as a name. If we look at the Boe-Bot from the front, wheel 12 is on one side and wheel 13 on the other. The number 750 is the program to make the wheels stop. If the wheels slowly move, you have to adjust the wheels so they are stable. But there are more programming codes. Here is a list of a few:
DEBUG - When you want to output a message.
DO/LOOP - This makes the program loop.
For Counter - This is a timed loop.
The Boe-Bot
When programming the Boe Bot to move, there are different codes to do so. For example:
To go straight:
PULSOUT 12, 850
PULSOUT 13, 650
END
850 is the number that commands the Boe-Bot to move forward. (It depends on which Boe-Bot you had, and how much battery power is left. This could make a big difference)
To Turn:
PULSOUT 12, 850
END
Commanding only one wheel to move can make the Boe-Bot turn. This is because when one wheel stops, the other wheel is turning and whichever way that wheel is turning will be the way the Boe-Bot turns.
To stop:
PULSOUT 12, 750
PULSOUT 13, 750
END
Like stated before, 750 makes the Boe-Bot stop moving.
Um, there really was not a lot to this unit. This is all there was to it.
To go straight:
PULSOUT 12, 850
PULSOUT 13, 650
END
850 is the number that commands the Boe-Bot to move forward. (It depends on which Boe-Bot you had, and how much battery power is left. This could make a big difference)
To Turn:
PULSOUT 12, 850
END
Commanding only one wheel to move can make the Boe-Bot turn. This is because when one wheel stops, the other wheel is turning and whichever way that wheel is turning will be the way the Boe-Bot turns.
To stop:
PULSOUT 12, 750
PULSOUT 13, 750
END
Like stated before, 750 makes the Boe-Bot stop moving.
Um, there really was not a lot to this unit. This is all there was to it.