Repeat until touch 1 is pressed
If light 2 is bright (as determined by the automatic setting) beep
Otherwise, no action
Save this program as m5DetectLightBeep then download and test your program on Program 4. Your tankBot should beep when placed over a white driving surface and quit when moved so the light sensor is directly over the black line or if the touch sensor is pressed. Then turn on a flashlight pointed at the white surface under the light sensor to start the beeps and record the results below.
| Automatic Bright Light Setting Response | ||||
| Surface: | White | Black | White w/ flashlight | Ambient Conditions: |
|
Beeps (yes/no): |
||||
Challenge: Use the view button on port 2 to determine the ambient light values when the tankBot light sensor is over black, white, then white with the flashlight on. Pick a light setting that may work, record your results below. Also note ambient lighting conditions in the room such as curtains open, lights on, sunny day, etc. Save as m5DetectLightBeepManual, download and test your program record which version gives preferred performance.
| Manual Bright Light Setting: ______ | ||||
| Surface: | White | Black | White w/ flashlight | Ambient Conditions: |
|
Beeps (yes/no): |
||||
| Manual Bright Light Setting: ______ | ||||
| Surface: | White | Black | White w/ flashlight | Ambient Conditions: |
|
Beeps (yes/no): |
||||
| Manual Bright Light Setting: ______ | ||||
| Surface: | White | Black | White w/ flashlight | Ambient Conditions: |
|
Beeps (yes/no): |
||||
Best results (circle one): Automatic / Manual with setting ___.
Write down your comments recording any
problems and their solution or any pertinent details learned during
execution of this mission.