Walter the Microbot Bot Basic Movement
by Aidan-Corrales in Circuits > Robots
512 Views, 0 Favorites, 0 Comments
Walter the Microbot Bot Basic Movement
![Walter 2.1.png](/proxy/?url=https://content.instructables.com/FZE/333Z/KCKIQQXF/FZE333ZKCKIQQXF.png&filename=Walter 2.1.png)
We will be programming Walter the Micro:Bot.
Supplies
- Micro:Bot
- Computer
- You!
This is a video tutorial of how to write the program but you can also choose to just follow the step by step procedures.
![Walter 1.png](/proxy/?url=https://content.instructables.com/FNX/4FCR/KCKIQQ00/FNX4FCRKCKIQQ00.png&filename=Walter 1.png)
Go to makecode.microbit.org
![Walter 2.png](/proxy/?url=https://content.instructables.com/FR7/LBDC/KCKIQQT8/FR7LBDCKCKIQQT8.png&filename=Walter 2.png)
![Walter 2.1.png](/proxy/?url=https://content.instructables.com/FR3/HU81/KCKIQQT9/FR3HU81KCKIQQT9.png&filename=Walter 2.1.png)
Create a new project.
![Walter 3.png](/proxy/?url=https://content.instructables.com/FJF/KILP/KCKIQR41/FJFKILPKCKIQR41.png&filename=Walter 3.png)
Click on advanced.
![walter 26.png](/proxy/?url=https://content.instructables.com/FGN/EF1M/KCLY6FOL/FGNEF1MKCLY6FOL.png&filename=walter 26.png)
Click on Extensions.
![walter 27.png](/proxy/?url=https://content.instructables.com/F0B/UTZF/KCLY6FS8/F0BUTZFKCLY6FS8.png&filename=walter 27.png)
Click On Servo which is on the right with the bright green background.
![Walter 6.png](/proxy/?url=https://content.instructables.com/FV2/JIA5/KCKIQRG0/FV2JIA5KCKIQRG0.png&filename=Walter 6.png)
A tab should appear saying Servos.
![Walter 8.png](/proxy/?url=https://content.instructables.com/FTJ/EAWS/KCLY660W/FTJEAWSKCLY660W.png&filename=Walter 8.png)
Right click on start and then click on delete block.
![walter 9.png](/proxy/?url=https://content.instructables.com/F7Y/QG6H/KCLY6674/F7YQG6HKCLY6674.png&filename=walter 9.png)
Click on the logic tab and select the piece that I have highlighted.
![walter 10.png](/proxy/?url=https://content.instructables.com/FOI/M81B/KCLY66AM/FOIM81BKCLY66AM.png&filename=walter 10.png)
Drag the box and drop it into the forever box and it should snap.
![7.png](/proxy/?url=https://content.instructables.com/FI3/1TPG/KCNDLVRF/FI31TPGKCNDLVRF.png&filename=7.png)
Next click on the input tab and select the block I have highlighted.
![walter 29.png](/proxy/?url=https://content.instructables.com/F79/NCA9/KCLY6G74/F79NCA9KCLY6G74.png&filename=walter 29.png)
Drag the box and snap it to the if then statement.
![walter 30.png](/proxy/?url=https://content.instructables.com/FD6/8OKI/KCLY6GLH/FD68OKIKCLY6GLH.png&filename=walter 30.png)
![walter 31.png](/proxy/?url=https://content.instructables.com/FZ2/R830/KCLY6GLI/FZ2R830KCLY6GLI.png&filename=walter 31.png)
![walter 32.png](/proxy/?url=https://content.instructables.com/FQR/7RD4/KCLY6GLJ/FQR7RD4KCLY6GLJ.png&filename=walter 32.png)
Click on the plus sign 2 times so that it matches the final picture.
![walter 33.png](/proxy/?url=https://content.instructables.com/F33/8U9N/KCLY6GPB/F338U9NKCLY6GPB.png&filename=walter 33.png)
Using the input tab add more button presses like we did before.
![walter 34.png](/proxy/?url=https://content.instructables.com/F8E/TOF6/KCLY6I6R/F8ETOF6KCLY6I6R.png&filename=walter 34.png)
Next click on the servo tab and select the continuous servo function which I highlighted.
![walter 35.png](/proxy/?url=https://content.instructables.com/FHR/AH1L/KCLY6KIP/FHRAH1LKCLY6KIP.png&filename=walter 35.png)
Drag the continuous servo function under the if statement like I did.
![walter 36.png](/proxy/?url=https://content.instructables.com/FJD/CQER/KCLY6L98/FJDCQERKCLY6L98.png&filename=walter 36.png)
Repeat this process for the else if statements so that your blocks match mine.
![walter 37.png](/proxy/?url=https://content.instructables.com/F1B/3VKD/KCLY6LM3/F1B3VKDKCLY6LM3.png&filename=walter 37.png)
Click on the servos tab again and select stop servo which I have highlighted.
![walter 39.png](/proxy/?url=https://content.instructables.com/FML/AVXP/KCLY6NOU/FMLAVXPKCLY6NOU.png&filename=walter 39.png)
![walter 40.png](/proxy/?url=https://content.instructables.com/FCC/K9VW/KCLY6NOV/FCCK9VWKCLY6NOV.png&filename=walter 40.png)
Put to stop servo commands under the else statement.
![walter 41.png](/proxy/?url=https://content.instructables.com/FYJ/ACUI/KCLY6PJB/FYJACUIKCLY6PJB.png&filename=walter 41.png)
![walter 42.png](/proxy/?url=https://content.instructables.com/FU8/EDVK/KCLY6PJC/FU8EDVKKCLY6PJC.png&filename=walter 42.png)
Click on the A and select A+B. When we are done programming pressing A and B at the same time Walter will move forward.
![walter 43.png](/proxy/?url=https://content.instructables.com/FV5/NGQ7/KCLY6TPD/FV5NGQ7KCLY6TPD.png&filename=walter 43.png)
![walter 44.png](/proxy/?url=https://content.instructables.com/F5A/GXP5/KCLY6TZJ/F5AGXP5KCLY6TZJ.png&filename=walter 44.png)
Change the first else if statement to button B.
![walter 45.png](/proxy/?url=https://content.instructables.com/FYT/ZY6X/KCLY6Y7J/FYTZY6XKCLY6Y7J.png&filename=walter 45.png)
Click on the second block of each command that's labeled P0.
![walter 46.png](/proxy/?url=https://content.instructables.com/FAR/PKS8/KCLY6YHX/FARPKS8KCLY6YHX.png&filename=walter 46.png)
Change every other P0 to P2 so that your code matches mine. P0 is the back left motor and P2 is the back right motor.
![walter 47.png](/proxy/?url=https://content.instructables.com/FH2/PGHC/KCLY786T/FH2PGHCKCLY786T.png&filename=walter 47.png)
![walter 48.png](/proxy/?url=https://content.instructables.com/F5O/UUAP/KCLY79RY/F5OUUAPKCLY79RY.png&filename=walter 48.png)
![walter 49.png](/proxy/?url=https://content.instructables.com/FIS/3H4C/KCLY7B9N/FIS3H4CKCLY7B9N.png&filename=walter 49.png)
Next we are going to change the power and direction of the motors so they work together.
![walter 50.png](/proxy/?url=https://content.instructables.com/F15/N3YW/KCLY7CIE/F15N3YWKCLY7CIE.png&filename=walter 50.png)
Your power values should match the code.
Here Are Video Instructions If You Prefer That! :)
![Walter The Microbot programming basic movement tutorial](/proxy/?url=https://content.instructables.com/FGX/CF2B/KCVY921O/FGXCF2BKCVY921O.jpg&filename=Walter The Microbot programming basic movement tutorial)