ev3block  

 

If you missed a day, this is where you go to catch up

Go at your own pace, but check each assignment with me before you go on to the next one.

 
  LEGO Robotics lessons ::

RETURN

 

 

 
 

Learning Goal: Understand how to write a program to control a robot.

Daily Objective: Understand how to program the ultrasonic sensor.

Lesson 7 - Obstacle detection with the Ultrasonic sensor

Add an ultrasonic sensor to the front of your robot.

A simple way to do this is to attach the ultrasonic sensor to the block.

You could also attach it to a beam, as you did with the touch sensor.

..........................................ultrasonic

 

Watch this video lesson:

 

There are moveable pictures of the programming blocks on the notebook pages to help you.

 

Part 1. Program your robot to move forward, until the Ultrasonic sensor senses the wall 20 cm ahead.

Make sure that the program works. Make sure it is annotated. Save it as Ultra1Yourname.

To turn it in

  • Go to Google Drive or watch this video:
  • Open the Class Assignments LEGO folderin 'Shared with me'
  • Open your class folder and assignment folder
  • Click on the "New" button on the top left
  • Upload the program from your computer as Ultra1yourname.

 

Part 2. Use the program from Part 1. Change the power to 10%. Run the program, and measure
how far it stops from the wall.

Fill in the form called Ultrasonic Power Test in 'Shared with me' in your Google Drive.
(If it isn't there, click on this link - it will prompt you to make a copy. Use that document
and follow the instructions on the document about turning it in.
Continue
to change the power and fill in the form.

 

Reflect on what you learned in this assignment.