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, using loops, conditionals and subroutines where appropriate.

 

 
 

Lesson 4 - Obstacle detection

Add a touch sensor to the front of your robot. This is one way to start, but you can

do it another way, if you like.

sound sensor

Part 1:

Watch this lesson.

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

Program your robot to start moving when the touch sensor is pressed.

 

 

Part 2:

Add the ultrasonic sensor to your robot.

ultrasonic

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

Make sure that the program works.