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

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 click on EV3 blocks. 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

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

8 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!

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>