Alphabot2 for micro:bit User Manual
INFARED SENSOR STATUS
1. Place
if then
block in
2. Replace
true
with
3. Put
Infrared
block to both sides of
4. Place
show string
5. Duplicate and complete the scrip
6. Download the script to micro:bit and test it.
7. After downloading, LEDs of micro:bit will display "A" if obstacle is detected by
both infrared sensors, "L" if obstacle is detected by the left infrared sensor and
"R" if obstacle is detected by the right sensor.
forever
and
block
and
block
43 / 76