2019 First Robotics Teams Receive a MaxBotix Ultrasonic Sensor

2019 First Robotics Teams – Welcome!


We are excited to support your team this year with a free sensor! This year we are giving each team one of our best ultrasonic proximity sensors, the MB1013 MaxSonar Sensor from our HRLV-MaxSonar-EZ line. This small, lightweight sensor is designed for easy integration into your project, and it is a great starting point for beginners.

Take a look at our data sheet for more information on your sensor’s specs!

Below we have a tutorial to help you get started with your new sensor! This will hopefully give you a basic understanding of how ultrasonic sensors work and will help you set up your ultrasonic sensor to read analog voltage.


How Ultrasonics work

Using sound, the ultrasonic rangefinder measures distance for you. The diagram below shows how the sensor sends and receives the sound waves. It measures the distance using the time it takes for the sound wave to leave, reflect off of a surface or object, and travel back to the sensor.
Basic Sonar Illustration


Using Your Ultrasonic Sensor in Your Project



We used an Arduino in this example, but you can use another controller and program of your choice.Direct HRLV AV Arduino Wiring


Install Arduino Sketch coding software onto your PC. This is where you type the code you want to compile and send to the Arduino board.



Plug your Arduino into the USB cable and into your computer. Once you upload Arduino, you can then compile and activate the code.



The code below will allow you to read distance in centimeters. Compile and run this code to obtain real-time distance measurements to the closest object. (Please note: this code is not only for Arduino and will run on most controllers)


How This Helps You

How can you use this information? Glad you asked! There are quite a few applications in which this becomes very useful.

One, distance to objects data is extremely useful for the autonomous section of the contest. Your robot can actually use the distance when navigating to help avoid objects.

Another use is if you need to perform an action when your robot is a certain distance from an object. You can use the information to make the robot perform better and much more quickly even during the remote-controlled section of the contest.

Also, as good as Lidar sensors are, only ultrasonic sensors can reliably detect certain surfaces such as glass. Transparency and color of objects have no effect on if an ultrasonic sensor can see an object. This is especially useful if you don’t know what kind of environment your robot will be operating in.


Need More Help?

FIRST contestants, we proudly support all teams in this year’s 2019 FIRST Robotics Competition. If you find yourself in need of more information about your MaxSonar sensor, we at MaxBotix are more than happy to help you. Please call us or email our technical support team at [email protected].


Want to be Featured as a Testimonial?


MaxBotix Mascot 2

Do NOT follow this link or you will be banned from the site!