Walter the Microbot Bot Basic Movement

by Aidan-Corrales in Circuits > Robots

484 Views, 0 Favorites, 0 Comments

Walter the Microbot Bot Basic Movement

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

Go to makecode.microbit.org

Walter 2.png
Walter 2.1.png

Create a new project.

Walter 3.png

Click on advanced.

walter 26.png

Click on Extensions.

walter 27.png

Click On Servo which is on the right with the bright green background.

Walter 6.png

A tab should appear saying Servos.

Walter 8.png

Right click on start and then click on delete block.

walter 9.png

Click on the logic tab and select the piece that I have highlighted.

walter 10.png

Drag the box and drop it into the forever box and it should snap.

7.png

Next click on the input tab and select the block I have highlighted.

walter 29.png

Drag the box and snap it to the if then statement.

walter 30.png
walter 31.png
walter 32.png

Click on the plus sign 2 times so that it matches the final picture.

walter 33.png

Using the input tab add more button presses like we did before.

walter 34.png

Next click on the servo tab and select the continuous servo function which I highlighted.

walter 35.png

Drag the continuous servo function under the if statement like I did.

walter 36.png

Repeat this process for the else if statements so that your blocks match mine.

walter 37.png

Click on the servos tab again and select stop servo which I have highlighted.

walter 39.png
walter 40.png

Put to stop servo commands under the else statement.

walter 41.png
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
walter 44.png

Change the first else if statement to button B.

walter 45.png

Click on the second block of each command that's labeled P0.

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
walter 48.png
walter 49.png

Next we are going to change the power and direction of the motors so they work together.

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