Advanced Level 1
Lesson 3
Build a Sense-ational Robot
Step 2: Let's review sensors
Watch these videos about using the distance and touch sensors.
Push the debris
Follow along on your robot. When you're ready move on to the challenges below.
Step 3: More Sensing!
Bump Switch
-
Program your robot to stop driving if it bumps into an object
-
Program your robot to drive in reverse if it bumps into an object.
Using the Ultrasonic Sensor
-
Program your robot to stop driving if it is 5 cm from the wall.
-
Program your robot to drive in reverse if it gets 5 cm from a wall.
-
Program your robot to turn in a different direction when it’s close to an obstacle.
Run through some of the activities on the left until you're comfortable using the bump switch and ultrasonic sensor.
Step 4: Define the Problem
We need your help! We can't see the obstacles in the way.
Challenge:
Robbie's friend works in a warehouse. A storm made the power go out and now they can't see anything. They need a robot that can navigate to the generator and turn it on, but there are obstacles blocking the path. Your robot will need to detect the obstacles and drive around them. It will need to use the distance and bump sensors since the lights are out. Can you help Robbie's friend get back to work?
Brainstorm
Brainstorm some designs for your robot. While brainstorming remember:
-
Will you use one type of sensor or both?
-
Where can you place the sensors to be most helpful?
Build
Choose a design, and build it onto your basebot.
Test
Move on to the next lesson to test your robot!