Alphabot2 for micro:bit User Manual
67 / 76
ULTRASONIC SENSOR
It is similar to the infrared sensor, ultrasonic sensor has one sender and one receiver as
well. Ultrasonic sensor can detect the distances of front obstacles.
Let’s create a new project to read value from ultrasonic sensor.
-Ultrasonic block can be founded in AlphaBot2 package. This block is used to read the
distance value from Ultrasonic sensor, which is integer
We can also plot bar graph to show the distance value