Basic Motor control in Microbit for the maqueen
The video is a tutorial on using MakeCode to control a Maqueen robot with a microBIT It demonstrates how to start a new project, add Maqueen-specific commands, and ensure your work is saved by signing in. The tutorial covers setting up basic commands to make the Maqueen's motors move forward continuously.
Getting Started:
Open MakeCode and notice the simulator showing a happy face.
The simulator works for micro
but not for the Maqueen robot commands.
Dark green blocks are specific to the Maqueen robot.
Adding Maqueen Commands:
Find the Maqueen commands under the Maqueen category.
Drag and drop motor commands to control the robot's motors.
Saving Your Work:
Always sign in to save your work.
Click "Sign in" at the top right and use your school account.
Starting a New Project:
Begin a new project by naming it and clicking "Create."
Notice that initially, the Maqueen commands are not available.
Adding Maqueen Extension:
Click on "Extensions" and search for "Maqueen."
Select the "Maqueen" extension to add it to your project.
The Maqueen commands will now appear in your toolbox.
Programming the Maqueen:
In the "on start" block, add any initial commands (e.g., show an icon).
In the "forever" block, set both motors to move forward at half speed (around 100).
Optionally, add a pause command to control the movement duration.
Example Code:
Show a smiley face on start.
Continuously move the Maqueen forward at half speed with a pause.
By following these steps, you can start controlling your Maqueen robot using MakeCode.
21 окт 2024