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

gyro-ultrasonic

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.

gyro_install_1

Step 2: Import the Block

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

gyro_install_2

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

gyro_install_3

  • Click Import.

gyro_install_4

  • 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.

sampleprogram3

This entry was posted in EV3 Programming. Bookmark the permalink.

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

  1. yongyuth phasukyued says:

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

  2. Cserryox says:

    That was very helpful!! Thanks!!!

  3. Gianci says:

    Thanks Laurens!

  4. gerome ang says:

    This is very helpful. Thanks!

  5. gerome ang says:

    This was very helpful. Thanks!

  6. Patricia Escalante says:

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

  7. Taufik says:

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

  8. Anupam says:

    Thank you!

  9. Diego says:

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

  10. Pingback: Build your own self-balancing (segway) robot with Lego Mindstorms - Matouš Havlena

  11. R.D. says:

    Thank you very, very much.

  12. Ward says:

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

  13. Arnulfo Hernandez says:

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

  14. Arnulfo Hernandez says:

    Excellent information and very easy to follow~ thanks!!

  15. Access Academy says:

    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 says:

    How do you download the BrickButtons block?

  17. Dave says:

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

  18. Rajan says:

    Very Very Helpful………

  19. bana says:

    nice very helpful

  20. Pingback: EV3 – Adding EV3 sensor blocks | Roboplex

  21. algator says:

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

  22. eduardo says:

    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 says:

    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 says:

    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 says:

      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 says:

    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 says:

    Works great, thanks

  27. Rich says:

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

  28. eayan says:

    Thanks!!!!

Leave a Reply

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


*