SENSORS
Sesnors Sensors on a Robot take in DATA and then REACT based on the DATA.
LEARNING OBJECTIVE (1) I will be able to display a text, an image, a sound, a recorded sound, and display color on the status light by using the display and wait for block. (2) I will be able to use port view on my robot to read the values of each sensor and use it to inform my program.
Download the Sensors Powerpoint from the Website Download the Sensors Powerpoint from the Website. Follow the instructions on each slide. And Complete each challenge Save each challenge as a separate Program I am going to check the completion of them on Friday
Challenge 1 Part a: Have your robot say “go” and have it travel 15cm, then have it stop and say “stop”. Part B: Have your robot travel 15cm, then have it display an image. Part C: Have your robot travel 15cm, then have it display a text.
Challenge 2 Design your robot to move forward, stop, then reverse with a warning light and warning sound indicating it is moving in reverse using the brick status light.
Challenge 3 Deliver a message to Mr. Fava using your robot. Record your own message and have the robot stop and say it once Mr. Fava “bumps” the touch sensor.
The Touch Sensor November 28 and November 30th I will be able use the touch sensor to have my robot recognize when it has been touch then react given a challenge.
Challenge 1 Design and program your robot to move forward and stop when the touch sensor is touched. Hint: You will combine: Move Steering + Wait Block
Challenge 2 Program your robot to move until it hits the edge of a wall. Then back up and stop
Challenge 3 Program your robot to move until it hits the edge of a wall. Then back up and make an alert sound and stop
Challenge 4 Place both touch sensors on your bot. Design and program a robot that moves forward, and when the robot “bumps” into another object the robot will back up and turn and continue in a different direction.
Challenge 5 Drive your bot with your touch sensors as a remote control. Have the right touch sensor control the right motor and the left touch sensor control the left motor.
Ultra Sonic Sensor (Wall-e) Unattached the touch sensors and place them in your bins. Next attach the ultra sonic sensor to the Front of your bot. Make sure the ultrasonic sensor is attached securely – it should not move around. Help each other out attaching. Look at the next slide for ideas
Top of Bot Bottom of Bot
Ultra Sonic Challenge 1 Make the robot move until it is 20 cm away from the wall. Hint: Use the wait for block
Ultra Sonic Challenge 2 Part a: Make the robot move until it is 20 cm then stop, back up and make a warning sound with a flashing light. Part B: Make the robot move until it is 10 cm then stop, back up and turn around and head in a different direction for 5 seconds.
Ultra Sonic Challenge 3 – “Luke I am your father” Use the force to control your robot! If the robot is closer than 20cm away from your hand move backward, otherwise move forward. Hint you will need a Loop