Preskoči na glavni sadržaj
Prijava
Sign up for FREE
arrow_back
Biblioteka

🦾 EV3 102: #07 - EV3 Sensors: Ultrasonic

star
star
star
star
star
Posljednje ažuriranje over 3 years ago
15

The Sensors lessons introduce the Touch, Ultrasonic, Gyro, and Color Sensors. You will gain an understanding of the appropriate sensors to use to accomplish different tasks.

🔊 Introduction with Ultrasonic Sensor

🎓 Learn It

Carefully read and/or watch the instructional media and respond to the related questions.

10
10
10
10
10

This course includes resources provided by the following:

  • LEGO Education

  • CS-STEM Network from Carnegie Mellon University

  • EV3-Scratch documentation provided by Raphael Holzer

  • Joe Olayvar & Evelyn Lindberg in association with the Washington State Library

🌏 Click here to access the LEGO Education website.

📑 Click here to access the EV3-Scratch documentation.

🎓 Click here to access the online EV3 course from CS2N.

📕 Click here to access the LEGO Mindstorms EV3 Programming Basics document in its entirety.

▶️ Click here to access the entire LEGO Mindstorms EV3 YouTube playlist from the Washington State Library.

⬇️ Install It

Before continuing, ensure that your computer has the EV3 Classroom app installed.

🔧 Build It

Before you continue, ensure that you have completed the following builds:

Color Cube (aka Cuboid)

Base Unit (aka Driving Base)

Ultrasonic Sensor

Pitanje 1
1.

Why might the Rangefinders (Laser or Ultrasonic) be preferred over Touch Sensors for detecting walls and obstacles?

📏 Wait for Near:

In this section, you will build a simple proximity detector that plays a sound when someone passes near the sensor.

Robot Configuration: Ultrasonic Drive Base

Ultrasonic Sensor Configuration

For this chapter, the Ultrasonic Sensor is required to complete sections of this chapter as well for the final challenge. Ultrasonic Sensor Driving Base build instructions:

https://drive.google.com/file/d/1HdjMBLyfRvVz9tNQjpcWWVzvrgkxuiI9/view?usp=share_link

Step 1: Create New Project

Start with a new project and program.

Step 2: Add Wait Until Block

Go to the light blue Sensors palette, and add an Ultrasonic Sensor “wait until distance” Block to your program.

You can leave the “less than (<)” and “15 cm” threshold default settings.

Step 3: Add a Play Sound Block

After the Wait, go to the purple Sound Palette and add a “play sound until done” Block.

The Sound Block plays a sound through the EV3's speakers. Specifically, it plays the sound that is selected in the drop-down menu. In this case, it is going to say “Hello!”.

Step 4: Add Exit Block

Drag a “stop [and exit program]” block from the Control palette, and place it at the bottom of the stack.

Step 5: Rename Project

Rename the program as “UltrasonicHello”.

Step 6: Download and Run Project

Download your program and set up the robot in an area with nothing in front of it. Run the program, then walk or wave your hand in front of the robot!

Pitanje 2
2.

Which of the following blocks should be used to wait until the Ultrasonic Range Finder senses an object less than 10 cm away?

Pitanje 3
3.

The Ultrasonic Sensor uses the speed that

Pitanje 8
8.

Which of the following block combinations correctly shows the robot to move forward until it is exactly 25 cm away from an object?

🏆 Mini-Challenge:

📏 Backward Until Far

Using an Ultrasonic Sensor, program the robot to move backward until it is far enough from the wall!

Place a robot close to a wall with the Ultrasonic Sensor facing directly at it. Program the robot to move backward until the Ultrasonic Sensor reads a value greater than 30cm, and then stop.

🌐 A virtual version of this challenge is available HERE.

100
20
Pitanje 10
10.

📸 Document It: Capture a screenshot (or multiple screenshots) of your completed program and upload or paste it onto the Formative canvas.

20
Pitanje 11
11.

⬆️ Upload It: Upload your completed program.

🏆 Challenge:

📏 Maze

Challenge Overview

For this challenge, create a maze with walls, similar to the one illustrated below. Then program your robot to navigate the maze, from start to end, using the Ultrasonic Sensor AND not touching any walls.

Challenge Details

Rules and Procedures:

  1. Recreate the maze with tall objects, such as books or binders.

  2. The robot must start entirely within the start box (1), as well as stop entirely inside the end box (2).

  3. Walls marked by gray lines can move slightly.

  4. Walls marked by dark black lines cannot be moved.

  5. The robot must not touch any walls as it navigates throughout the maze.

Hints:

  • The patterns of turns cannot change, so you don’t need to worry about using a sensor (other than Rotation) during turns.

  • Look carefully at what distances in the maze are guaranteed not to change. Try to use those distances in combination with the Ultrasonic Sensor to orient yourself.

🌐 A virtual version of this challenge is available HERE.

100
20
Pitanje 13
13.

📸 Document It: Capture a screenshot (or multiple screenshots) of your completed program and upload or paste it onto the Formative canvas.

20
Pitanje 14
14.

⬆️ Upload It: Upload your completed program.

10
Pitanje 15
15.

🧠 Retrieval Practice:

Summarize the content of this lesson. What topics, ideas, and vocabulary were introduced?