Material:
mBot
Procedure:
1. Write the code to program mBot to move, choosing the direction (forward – positive - or backward – negative - ) and the speed (positive or negative, otherwise acting on motors’ power).
2. Load the code on mBot and run it.
3. Does mBot goes forward or backward? Try all the possible combinations of direction and speed, and register the result, depending on the set direction and speed
Extensions
1. Use variables to define direction and speed.
2. Make mBot flashing different colours depending on the moving direction.