Motors - Waveshare Alphabot2 User Manual

For micro:bit
Table of Contents

Advertisement

Alphabot2 for micro:bit User Manual

MOTORS

We create a new project to control the motors of Alphabot2 by buttons.
1. Place
If then
and
2. Place
Motor speed
- This block is used to control one motor, the range of speed is -255 to 255, bigger
the number, fast the speed. Positive to forward, and negative to backward.
3. Duplicate and complete the script
4. Download the script to micro:bit and test
5. Expected result is that: press A, motor M1 moving and stop when release, press B,
motor M2 moving and stop when release
button is pressed
blocks in
block after then
forever
37 / 76

Hide quick links:

Advertisement

Table of Contents
loading

Related Products for Waveshare Alphabot2

Table of Contents