Alphabot2 for micro:bit User Manual
43 / 76
INFARED SENSOR STATUS
1. Place if then block in forever
2. Replace true with and block
3. Put Infrared block to both sides of and
4. Place show string block
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.