ArtsAutosBooksBusinessEducationEntertainmentFamilyFashionFoodGamesGenderHealthHolidaysHomeHubPagesPersonal FinancePetsPoliticsReligionSportsTechnologyTravel

Sensors for the Lego Mindstorms NXT Robotics System

Updated on December 17, 2015

Lego Mindstorms Robotics

Teaching kids logic using robotics and programming at the AVA Gallery in Lebanon, NH
Teaching kids logic using robotics and programming at the AVA Gallery in Lebanon, NH

Sensors for the Lego Mindstorms NXT

I've been teaching kids robotics for a number of years in Maine and New Hampshire. I'm constantly impressed by the seemingly endless variations and capabilities of the Mindstorms platform. Not only is the number of machines, robots, devices and creations that can be constructed

The following is a review of all the sensors available for the Lego Mindstorms Robotics including official Lego products and sensors from third party manufacturers.

Lego Mindstorms Sound Sensor

The sound sensor measures relative sound levels in a percent scale - 0 to 100 with 0 being silence and 100 being the loudest sound in the environment. Often in my robotics classes the kids get confused about the function of the sound sensor. Its not some kind of intelligent spoken word to command device. Like you can't say "Move forward" and the robot would understand what you are saying, rather it's a simple switch that response to sound. You set the parameters such as "wait until the sound is above 50 percent" and then the robot will wait until it hears a loud sound before it does the next command. You can fool people into thinking it is responding to your words by shouting "Move" and then it will magically move but its only responding to the sound level and not the actual English word spoken.

The sound sensor was included in the original NXT kits but in newer Lego Mindstorms NXT 2.0 (8547) kits Lego has replaced the sound sensor with a second touch sensor and upgraded the light sensor to a more powerful color sensor.

So if you have the NXT 2.0 kit you could buy this sensor as another sensor to play with.

Mindstorms Light Sensor

This basic light sensor was included in the original NXT 1.0 release. The NXT 2.0 kit upgraded this sensor with a color sensor that also can be used as a basic light sensor.

The light sensor measures relative light levels on a scale from 0 - 100. It needs to be calibrated to the light levels in the room otherwise it will act differently when its moved from room to room.

Mindstorms Touch Sensor

The original NXT kit came with one touch sensor. The latest version, 2.0 comes with two touch sensors. The touch sensors can detect three things - push, release and bump which is a push and release. They can be used for all sorts of things like a push button, a wall detector or even a table edge.

Mindstorms Ultrasonic Detector

The Ultrasonic sensor looks like its two eyes but it doesn't see anything except for distance. Its a distance sensor for detecting obstacles, walls and objects. The way it works is sending out ultrasonic sounds and timing how long it takes for the sound to bounce off objects. Those "eyes" are really speakers with one working in the reverse as a microphone.

Just like a bat with echo location, with the Ultrasonic Sensor your Mindstorms robot can measure distance very accurately and up close to about two or three inches. When using multiple robots and Ultrasonic sensors the robot can be confused by multiple sounds bouncing around but for the most part the ultrasonic sensor is one of the most useful sensors for navigation. This sensor can be used to avoid walls for find openings in mazes.

Third Party Sensors

A great number of advance sensors are available from third party (non-Lego) manufacturers.

The Gyro Sensors from HiTechnic Products measure the additional dimension of rotation, the NXT Gyro Sensor returns the number of degrees per second of rotation as well as indicating the direction of rotation. You can build robots that that can balance, swing or perform other functions where measurement of rotation is essential.

Also from HiTechnic, the NXT Acceleration or Tilt Sensor measures acceleration in three axes. It also measures tilt along each axis.With this sensor you can build you can build self-leveling robots.

The NXT Compass Sensor is a digital compass that measures the earth's magnetic field and outputs a value representing the current heading. The magnetic heading is calculated to the nearest 1° and returned as a number from 0 to 359.

Mindsensors is another company that sells sensors for the NXT Mindstorms system. Their real clock sensor counts seconds, minutes, hours, date of the month, month, day of the week, and year with leap-year compensation which is handing for data logging applications.

Their NXTSumoEyes sensorcan detect obstacles in front-left, front-right or straight ahead which makes it perfect for NXT Sumo contests.

The Mindsensors Line Sensor Array makes line following robots more accurate by using an array of eight sensors. Using the light sensor that comes with the NXT you could only have four light sensors running but this has eight and they are very compact.

The Thermal Probe of the Mindstorms NXT can be used in data collection experiments and has a temperature operating range: -50C to 150C.

If you have an extremely complex robot you might need the Sensor Multiplexer which allows four sensors to be attached to a single sensor port.

Other sensors for the NXT are coming on the market and are available including GPS sensors, pressure sensors, flexible sensors and wireless sensors.

Sensors used in Lego Smart House

Mindsensors Line Follower Sensor in use

Using all of your senses


    0 of 8192 characters used
    Post Comment
    • GetitScene profile image

      Dale Anderson 

      6 years ago from The High Seas


    • peanutroaster profile imageAUTHOR


      7 years ago from New England

      That is called "The NXT Brick". Motors go in the ABC ports (output) and sensors go in the 1234 ports (input).

    • profile image


      7 years ago

      can i have a nxt sensor ( the device in which all the other senosors are inserted, the one with 123 and abc ports)


    This website uses cookies

    As a user in the EEA, your approval is needed on a few things. To provide a better website experience, uses cookies (and other similar technologies) and may collect, process, and share personal data. Please choose which areas of our service you consent to our doing so.

    For more information on managing or withdrawing consents and how we handle data, visit our Privacy Policy at:

    Show Details
    HubPages Device IDThis is used to identify particular browsers or devices when the access the service, and is used for security reasons.
    LoginThis is necessary to sign in to the HubPages Service.
    Google RecaptchaThis is used to prevent bots and spam. (Privacy Policy)
    AkismetThis is used to detect comment spam. (Privacy Policy)
    HubPages Google AnalyticsThis is used to provide data on traffic to our website, all personally identifyable data is anonymized. (Privacy Policy)
    HubPages Traffic PixelThis is used to collect data on traffic to articles and other pages on our site. Unless you are signed in to a HubPages account, all personally identifiable information is anonymized.
    Amazon Web ServicesThis is a cloud services platform that we used to host our service. (Privacy Policy)
    CloudflareThis is a cloud CDN service that we use to efficiently deliver files required for our service to operate such as javascript, cascading style sheets, images, and videos. (Privacy Policy)
    Google Hosted LibrariesJavascript software libraries such as jQuery are loaded at endpoints on the or domains, for performance and efficiency reasons. (Privacy Policy)
    Google Custom SearchThis is feature allows you to search the site. (Privacy Policy)
    Google MapsSome articles have Google Maps embedded in them. (Privacy Policy)
    Google ChartsThis is used to display charts and graphs on articles and the author center. (Privacy Policy)
    Google AdSense Host APIThis service allows you to sign up for or associate a Google AdSense account with HubPages, so that you can earn money from ads on your articles. No data is shared unless you engage with this feature. (Privacy Policy)
    Google YouTubeSome articles have YouTube videos embedded in them. (Privacy Policy)
    VimeoSome articles have Vimeo videos embedded in them. (Privacy Policy)
    PaypalThis is used for a registered author who enrolls in the HubPages Earnings program and requests to be paid via PayPal. No data is shared with Paypal unless you engage with this feature. (Privacy Policy)
    Facebook LoginYou can use this to streamline signing up for, or signing in to your Hubpages account. No data is shared with Facebook unless you engage with this feature. (Privacy Policy)
    MavenThis supports the Maven widget and search functionality. (Privacy Policy)
    Google AdSenseThis is an ad network. (Privacy Policy)
    Google DoubleClickGoogle provides ad serving technology and runs an ad network. (Privacy Policy)
    Index ExchangeThis is an ad network. (Privacy Policy)
    SovrnThis is an ad network. (Privacy Policy)
    Facebook AdsThis is an ad network. (Privacy Policy)
    Amazon Unified Ad MarketplaceThis is an ad network. (Privacy Policy)
    AppNexusThis is an ad network. (Privacy Policy)
    OpenxThis is an ad network. (Privacy Policy)
    Rubicon ProjectThis is an ad network. (Privacy Policy)
    TripleLiftThis is an ad network. (Privacy Policy)
    Say MediaWe partner with Say Media to deliver ad campaigns on our sites. (Privacy Policy)
    Remarketing PixelsWe may use remarketing pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to advertise the HubPages Service to people that have visited our sites.
    Conversion Tracking PixelsWe may use conversion tracking pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to identify when an advertisement has successfully resulted in the desired action, such as signing up for the HubPages Service or publishing an article on the HubPages Service.
    Author Google AnalyticsThis is used to provide traffic data and reports to the authors of articles on the HubPages Service. (Privacy Policy)
    ComscoreComScore is a media measurement and analytics company providing marketing data and analytics to enterprises, media and advertising agencies, and publishers. Non-consent will result in ComScore only processing obfuscated personal data. (Privacy Policy)
    Amazon Tracking PixelSome articles display amazon products as part of the Amazon Affiliate program, this pixel provides traffic statistics for those products (Privacy Policy)
    ClickscoThis is a data management platform studying reader behavior (Privacy Policy)