Robot Inventor

Proportional Wall Follower for LEGO 51515

Use LEGO 51515 and the Distance sensor to program a proportional wall follower for your FLL robot or WRO robot. Today I use the LEGO MINDSTORMS 51515 Robot Inventor to re-introduce the proportional wall follower to the fourth generation of LEGO MINDSTORMS. A proportional wall follower is the algorithm of choice for programming an FLL robot or a WRO robot to smoothly follow a wall. The proportional wall follower uses the distance sensor, AKA ultrasonic sensor, included with the LEGO MINDSTORMS 51515 Robot Inventor to measure distance between the robot and the wall and applies a proportional algorithm to maintain a constant distance from the wall. By the end of this video, you will know everything you need to know to get your LEGO 51515 robot to start wall following!

Today’s LEGO MINDSTORMS 51515 programming tutorial teaches you everything you need to know to make a proportional wall follower for your LEGO 51515 project. I teach you how to optimally mount the distance sensor to your robot, conceptually explain how the proportional algorithm works, show you how to measure a target distance, walk you through writing the code, and teach you how to teach the proportional algorithm’s parameters (proportional constant and target distance).

🔴 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!