EasyManua.ls Logo

Makeblock mBot2 - SumoBot Operations; SumoBot Sensor Integration; Basic SumoBot Code Structure; Line Detection Logic

Makeblock mBot2
22 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
19 | P a g e
H. SumoBot
SumoBots use the ultrasonic sensor to seek and destroy another robot vehicle in the Sumo ring, while using the color
sensor to sense the white border and avoid falling off the edge.
H1. Basic Sumo Code
The basic actions of a SumoBot are:
A three second wait before doing anything
Move forward from the edge 20cm
Rotate until the ultrasonic sensor locates the other vehicle (less than 80cm away)
Drive full speed toward the other vehicle
If the white edge is detected (high reflectance value) then stop, back up and rotate to locate the other
vehicle

Related product manuals