ev3block  

 

 

 
  LEGO Robotics lessons ::

RETURN

Learning Goal: Understand how to write a program to control a robot, using loops, conditionals and subroutines where appropriate.

 

 
 

Lesson 7 - Obstacle detection

Add a touch sensor to the front of your robot. Attach it to a beam, and attach the beam so that
the sensor sticks out in front of the robot.

 

This is the Power Point we used in class.

Introduction to the touch sensor.

 

Part 1:

Program your robot to move forward until the touch sensor is pressed, then stop.

Answer the questions on the Obstacle Touch Sensor Worksheet.

 Turn it in to Shared - Student - pereira - FLL Class - Assignment 3 as touchYourname

Part 2:

Add the ultrasonic sensor to your robot (skip to near the end, don't add the grippers).

 

Program your robot to move forward, until the Ultrasonic sensor senses an obstacle 20 cm ahead.

Make sure that the program works.

Answer the questions on the Obstacle Ultrasonic Sensor Worksheet.

Turn it in to Shared - Student - Pereira - FLL Class - Assignment 3 as ultrasonicYourname

 

Part 3

Program your robot to move forward 50 cm using the ultrasonic sensor.

Turn the annotated program in to

shared - students - Pereira - FLL Class - Assignment 3 as 50cmyourname.