Case 01: Move Forward at Full Speed and Lateral Driving
Contents
4. Case 01: Move Forward at Full Speed and Lateral Driving#
4.1. Purpose#
Programme to make Wonder Rugged Kit move forward at full speed or drive laterally.
4.2. Products Link#
4.3. Background Knowledge#
4.4. Software#
4.5. Program#
Step 1#
Click “Advanced” in the drawer of MakeCode to see more choices.
For programming, we need to add a package. Click “Extensions” at the bottom of the drawer and then search “Wukong” in the dialogue box to download it.
Note: If you get a warning indicating some packages will be removed because of incompatibility issues, you can follow the prompts or create a new project in the menu.
Step 2#
Click Wukong
to choose mecanum
block.
Step 3#
Drag mecanum
into on start
block and set the connection for servos accordingly.
Step 4#
Set the car moving left while pressing buttonA
, right while pressing button B
, forward while pressing A+B
and stopping while on logo down
.
Program#
Links: https://makecode.microbit.org/_hmd77raCzXTd
You can also download it directly:
Result#
The car moves left while pressing buttonA
, right while pressing button B
, forward while pressing A+B
and stops while on logo down
.