Learn how to control a motors speed based on a sensors input
ALL students will: Be able to control a motors speed based on a the color sensors brightness levels
MOST students will: Be able to control a motors speed based on a the ultrasonic & infrared levels
SOME students may: Be able to control a motors speed based on a the gyro's angle level
Color sensor light intensity: This works by shining a white light at an object and then recording the reflected brightness
Ultrasonic sensor: Measures the distance of a target object by emitting ultrasonic sound waves, and converts the reflected sound into an electrical signal.
Infrared sensor: Measures infrared light radiating from objects in its field of view
Gyro sensor: Measures the robot's rotational motion and changes in its orientation
Try this!
Color Sensor's reflected light = mapped to the speed of motor 1
Ultrasonic sensor distance = mapped to the speed of motor 2
Infrared sensor distance = mapped to the speed of motor 3
Gyro rate = mapped to the speed of motor 4
Now you should have 4 sensors and 4 motors. Take a video of all motors running.
Choose one sensor from today. Provide at least 3 sentences explaining where this system could be used in the real world today.
Can you apply two sensors to control one motor?
E.g. if the gyro rate was 20 AND ultrasonic distance is 20 - run the motor
As usual, don't forget to do your portfolio! Make sure of the following:
Screencast - not a mobile phone recording your screen
Make sure the video is embedded into your page
Make sure the video is large enough to read the code
Have a supporting sentence explaining your code