12. How to Measure the Distance With the Ultrasonic Sensor

This guide applies to:
mBot2 and mBot Neo.


In a Nutshell



Step by Step

If the reading changes when moving, the ultrasonic sensor works properly.
If the number remains unchanged at 0 or 300, the ultrasonic sensor may be faulty.
You can refer to the steps below to troubleshoot:
For details, please see this guide:
If you want to know how to connect mbot2 to mBlock 5, refer to these steps:
For details, please see this guide:


Related Knowledge


Got Questions?

Feel free to contact us at:



Help Us Solve Faster

We have listed some useful information you can provide to us. When you contact us, the more information you provide, the better informed we will be and the quicker we can advise and answer your questions.
Not sure where to find the version info?


Was this article helpful?
0 out of 0 found this helpful



Article is closed for comments.