A - Explorer Program
A step-by-step explanation of how to programming Tobbie II to explore the world by itselves!
Last updated
A step-by-step explanation of how to programming Tobbie II to explore the world by itselves!
Last updated
You can specify what Tobbie will do when it just start out by using the block below
Variable is valuable for any type of programming. In this case GO variable is acting as a counter to help Tobbie keep track of how many task its has on hand
You can declare variable by following the below screen
You can specified a value of a variable by using the block below
Don't worry if you cannot see the variable you just name. You can choose from a list of available variable by click on the down arrow
You can specify what Tobbie will do once the button A is pressed using the block below
You can specify what Tobbie will do once the button B is pressed using the block below
You can program Tobbie to do the same task forever by using the block
1 - We want to create Logic component for Tobbie. Tobbie now can check if its has a task on hand or not & proceed with the program or if not, stop its program on the course
You can using Logic Block to check the status of variable GO
2 - If the condition is being satisfied, then Tobbie can proceed to go forward
You can check the Installation guide for Tobbie II Extension on Makecode
3 - Next, let's utilise the IR sensor that Tobbie II equipped with to detect obstacle!
There are two case for Tobbie, so you can using If-else statement
4 - First scenario: Programming Tobbie what to do once its receive IR sensor data (mean they found obstacle)
5 - Second Scenario: Programming Tobbie to continue walking and not showing any warning.
6 - If Tobbie II receive the signal that the GO variable = 0, means that Tobbie II doesnt't have any task to perform, Tobbie II will stop rotating & walking altogether