Facebook Twitter Gplus YouTube RSS
Home » Tutorials » EV3 Programming » Tutorial: Installing Gyro and Ultrasonic Sensor blocks in EV3 Home Edition

Tutorial: Installing Gyro and Ultrasonic Sensor blocks in EV3 Home Edition


You can use the Ultrasonic Sensor and the Gyro Sensor with the EV3 Home Edition Programming Software.

When you buy a LEGO MINDSTORMS EV3 Set, you can choose between the LEGO MINDSTORMS EV3 Home Edition and the EV3 Education Core Set (learn more about the differences here). The selection of sensors you get with each kit is slightly different. For example, the Home Edition set includes an Infrared Sensor and an Infrared Beacon, while the Education Core set comes with an Ultrasonic Sensor and a Gyroscopic sensor.

The EV3 brick in both sets is the same, making it possible to use any of these sensors regardless of which base set you have. However, the free LEGO MINDSTORMS EV3 Home Edition software does not come with programming blocks to control the Ultrasonic Sensor and the Gyroscopic sensor by default. Fortunately, LEGO offers these blocks as a free download from their website. These steps demonstrate how you can install these programming blocks in order to add full support for all your sensors.

In this example, I’ll demonstrate how you can install the Gyro Sensor block. Repeat the procedure to install additional Sensor blocks, such as the Ultrasonic Sensor block, the Temperature Sensor block, and the Sound Sensor block. You can follow the same steps to install blocks from third party sensor manufacturers, such as HiTechnic, Mindsensors, and Dexter Industries.

Step 1: Download the Block File

  • Go to MINDSTORMS.com
  • Navigate to Downloads and scroll down to EV3 Software Block Download . Then, choose the Gyro Sensor, and click Download, as shown in the figure below.
  • Save the file (Gyro.ev3b) to your computer, and remember the download location.


Step 2: Import the Block

  • Launch the LEGO MINDSTORMS EV3 software
  • Navigate to Tools, and click Block Import, as shown in the figure below.


  • Click Browse, and select the file you downloaded earlier.
  • Select Gyro.ev3b in the dialog, as shown in the figure below.


  • Click Import.


  • Close and restart the EV3 software when prompted.

Step 3: Use the new Block

Once the software has restarted, you should be able to control the Gyro Sensor just like your others sensors, using Wait, Loop, Switch and Sensor blocks. In the following example program, the EV3 begins by playing a sound. Once you rotate the Gyro Sensor by 90 degrees, you’ll hear another sound and the program ends.


 Share on Facebook Share on Twitter Share on Reddit Share on LinkedIn
30 Comments  comments 

30 Responses

  1. yongyuth phasukyued

    This is very helpful for me(new Lego Robot builder), thanks again.

  2. Cserryox

    That was very helpful!! Thanks!!!

  3. Gianci

    Thanks Laurens!

  4. gerome ang

    This is very helpful. Thanks!

  5. gerome ang

    This was very helpful. Thanks!

  6. Patricia Escalante

    Extremely helpful post. Just what I needed. Instructions so clear & i did it in couple minutes. Thanks

  7. Taufik

    Excellent help for new comer like me. Thanks a LOT.

  8. Anupam

    Thank you!

  9. Diego

    Thank you! It was very, very, very hepfull!!

  10. […] will first need to install the EV3 Gyro Sensor block (driver) before you can program your robot. Here is a manual how to do it. If you have Education Software version, the Gyro Sensor block is already […]

  11. R.D.

    Thank you very, very much.

  12. Ward

    Outstanding. Now how about finding the sensor blocks for NXT sensors (light sensor) that can be used on EVS bricks.

  13. Arnulfo Hernandez

    Excellent information and easy to follow!! thank you very much!

  14. Arnulfo Hernandez

    Excellent information and very easy to follow~ thanks!!

  15. Access Academy

    for some reason I was only able to install the gyro block after clicking the + button to create a new program and only THEN was I able to import the block. Small hiccup for me but your guide saved me nonetheless.

  16. ThatHobo

    How do you download the BrickButtons block?

  17. Dave

    You’re a life saver, thank you very much.

  18. Rajan

    Very Very Helpful………

  19. bana

    nice very helpful

  20. […] At Robot Square – Adding Sensors it describes, step by step, how to add the Sensor blocks. One quick hint, here is a direct link to the Sensor Blocks download at Lego.com. The sensor blocks are about halfway down the page. […]

  21. algator

    fore get the gyro bric do you must have the paid versone or the home versone?

  22. eduardo

    Thanks for all the instructions.
    I get a message “ERROR” when I try the program, with no explanation. If I disconnect the cable to the HYTech Gyro, I do nt get the error (but of course, it is then useless).
    I installed HTGyro.ev3b from the new distribution, downloading block.
    Any help would be greatly appreciated!

  23. Ralf

    Genau die Information die ich gesucht habe!
    Danke und Gruß Ralf

    Exact the information i am looking for!
    Thanks and regards Ralf

  24. J.T

    This not really helpfull to me because I have the mac version and on the mac it dosen’t work like that. Can you post adding EV3 gyro and ultrasonic sensor for mac please.

    • G

      To get to tools, you bring your mouse to the top of the page.
      Also, you have to press plus and have the editor page open for it to let you click “Block import”.

  25. Max

    Ich habe ein halbes Yahr dran rumprobiert, diesen blöden Block in meine Software zu kriegen!Ich war kurz davor den Sensor zurückzuschicken!Du warst die Rettung!Danke!

  26. John

    Works great, thanks

  27. Rich

    I appreciate the work you did to make this so simple to use. Thanks for your effort.

  28. eayan


Leave a Reply

Your email address will not be published. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>