Learning Goal: Understand how to write a program to control a robot.
Lesson 8 - Touch sensor
Add a touch sensor to the front of your robot.
A simple way to do this is to attach the touch sensor to a beam, and attach the beam to the brick body. Use at least two pegs to keep it stable.
..........................................
Watch this video lesson:
Open the Touch Sensor Worksheet in 'Shared with me' in your Google Drive.
1. Program your robot to move forward until the touch sensor is pressed, then stop.
Answer questions 1-3 on the Touch Sensor Worksheet in your Google Drive.
2. Program the robot to start when you press the touch sensor, drive forward for 3 rotations, , then spin.
Answer question 4 on the Touch Sensor Worksheet in your Google Drive.
3. Program your robot to move forwards while barking (or making another noise) until the touch sensor is pressed. Then it should stop, move backwards, then spin. Use the switch block. Answer questions 5 and 6 on the Touch Sensor Worksheet.
You don't need to submit this because I shared it with you, so I can see it.
Reflect on what you learned in this assignment.
|