Robot Inventor

LEGO 51515 Distance Sensor – Everything You Must Know

The distance sensor, A.K.A ultrasonic sensor, is the LEGO MINDTORMS Robot Inventor’s tool for measuring distance and detecting obstacles. Ultrasonic sensors are commonly used by an FLL robot or a WRO robot to locate the robot on the competition field. The ultrasonic sensor has been redesigned for the LEGO MINDSTORMS Robot Inventor. I use the terms distance sensor and ultrasonic sensor interchangeably. That’s because the LEGO MINDSTORMS Robot Inventor distance sensor is indeed an ultrasonic sensor. It measures distance by emitting pulses of inaudible ultrasonic sound.

The distance sensor that comes with LEGO MINDSTORMS ROBOT INVENTOR is shared with the distance sensor from the LEGO Spike Prime platform.

Today’s LEGO MINDSTORMS programming tutorial teaches you everything you need to know to master the new LEGO MINDSTORMS distance sensor. I conceptually explain how an ultrasonic sensor works, demonstrate the operating modes, explain the best practices for using an ultrasonic sensor, and walk you through programming three examples of using the LEGO MINDSTORMS distance sensor in the context of a program: events, conditionals, and numerical sensor values.

🔴 Watch my LEGO MINDSTORMS 51515 Review.

🤖 See all of my LEGO 51515 Tutorials here.

📕 Check out my book, “Building Smart LEGO MINDSTORMS EV3 Robots,” available on Amazon.

🔴 Subscribe to Builderdude35 on YouTube.

📷 Follow me on Instagram.

🦸‍♂️ My supporters on Patreon contribute additional funding that allow me to build up and improve this channel and to make more videos. If you would like to help, you can support me on Patreon here.

🎵 Thank you to my friend OTT for producing the beats and music used in this video. You can check him out on Instagram here.

📽 Thank you to my friend Preston Nichols for designing Builderdude35’s intro animation and logo!