Alphabot2 for micro:bit User Manual
OBSTACLE AVOIDING
With the ultrasonic sensor, we can make Robot stop if there is obstacle in the front
Robot keeps forward if the distance of obstacle in the front is longer than 15cm at the
beginning. and stop when the distance is less than 15cm.
Modify the late script, we can let Robot turn right if obstacle is detected.
68 / 76