www.keyestudio.com
4) Test Result
Send the test code to micro:bit main board, then insert the micro:bit main board into the car shield and connect
a 18650 battery, turn the POWER switch ON.
When the front obstacle distance measured by ultrasonic sensor is greater than 10cm.
1
If detects an obstacle on the left side but not on the right side, the car will turn right at a certain angle then
go forward.
If detects an obstacle on the right side but not on the left side, the car will turn left at a certain angle then
go forward.
If detects no obstacle at both sides, the car will go forward.
If detects obstacles at both sides, the car will stop, passive buzzer will produce an audible beep, after
500ms, robot car goes backward, after 200ms, turns left at a certain angle and then goes forward.
When the front obstacle distance measured by ultrasonic sensor is less than or equal to 10cm, the car will
2
stop, passive buzzer will produce an audible beep, after 500ms, robot car goes backward, after 200ms, turns left at
70