How to attach an Ultrasonic sensor to a LEGO Mindstorms EV3 robot

When attaching an Ultrasonic sensor to a LEGO Mindstorms EV3 robot it is important to follow a number of rules to make sure that the sensor is stable and usable.

  • #943
  • 17 Aug 2018

Requirements and considerations when attaching EV3 Ultrasonic sensor to the robot:

  • It should be stable – the sensor should not be loose or change its position compared to the ground.
  • There should be no obstacles in front of the sensor, such as cables, parts etc, that might prevent the sensor from "seeing".
  • It should be horizontal. Otherwise it will always "see" the ground.
  • You should always bear in mind the position of the sensor in order to have the correct results. So if you put the sensor at the back of the robot and make it stop when it sees a wall less then 10 cm away, will the program work?

Courses and lessons with this Tutorial

This Tutorial is used in the following courses and lessons

Image for Level A2. "Space exploration". Robotics with LEGO
Course icon fllcasts
  • 62
  • 3:02
  • 114
Image for Lesson 4 - Ultrasonic sensor
  • 5
  • 3
  • 3
  • 3d_rotation 1
Image for Level A2. "Space exploration". Robotics with LEGO
Course icon fllcasts
  • 62
  • 3:02
  • 114
Image for Lesson 5 - Navigation in a Labyrinth
  • 10
  • 3
  • 2
  • 3d_rotation 1
Image for Robotics with LEGO - Level 1.0 - Adventure in Space
  • 125
  • 123:52
  • 150
Image for Lesson 5 - Ultrasonic sensor
  • 9
  • 5
  • 4
  • 3d_rotation 1