Programming Thinking
Set the control pin of left infrared obstacle avoiding sensor to P2; the right one set to P11.
1
Measure the HIGH/LOW level of both sensors' control end. Obstacle detected, signal end LOW; no
2
obstacle, signal end HIGH.
Judge whether there is obstacles according to the level feedback of sensor's signal end; make the
3
micro:bit LED matrix show the patterns.
Source Code
78
Need help?
Do you have a question about the Micro:bit Mini Smart Robot Car V2 and is the answer not in the manual?