Touch Sensor
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 Part A: Program your robot to move until it hits the edge of a wall. Then back up and stop Part B: Program your robot to move until it hits the edge of a wall. Then back up and stop
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.
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.
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
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
Avoiding objects Challenge Have your bot move through the straight away portion of the track on its own, without knocking into any of the objects.
Color/Light Sensor
What is the Color Sensor? What are they? Sensors that detect the intensity of light that enters it Three modes: Color, Reflected Light Intensity and Ambient Light Intensity Color Mode: Recognizes 7 colors (black, brown, blue, green, yellow, red, white) and No Color Reflected Light: Measures the intensity of the light reflected back from a lamp that emits a red light. (0=very dark and 100=very light) Ambient Light: Measures the strength of the light that enters the sensor from the environment. (0=very dark and 100=very light)
Attach your color sensor You want you color sensor facing the ground, and to be as close as possible to the ground.
Colors and Numbers
Challenge 1 Part A Have your bot move forward and stop at the green line. Part B Have your bot move forward then turn around in the other direction when it reaches the blue line.
Challenge 2 Part A Have your bot move forward, and as it reaches each color line, have it stop and say the color of line it has just passed. Part B Same as part a, but have it stop on each line, say the color, then continue to move.