Ultrasonic defiance


#1

Hello,
i’m totally new in the robotic’s world, i have received my mBot today and after few try , i want to make my robot use his ultrasonic sensor. So i do this command (see image) and my robot just stay stuck , beeping like hell.
In my mind, this command should make him run forward until the distance detected is 5cm. What is wrong?


#2

Hi Thralor,

Please try the following example program have a try (the mBot will not run if the speed set lower than 100):


#3