1. Record the sound value for "quiet".
- 4%
2. Record the sound value for "loud".
- 70%
3. Record the threshold value you calculated.
- 60%
4. Write a brief description of what each block in your program does.
- The first block is the sound sensor. It recognizes the sound threshold that I programed and
- The second block is a sound sensor also. It recognizes a lower threshold than the first one.
- The third block is a motor block. It runs Port B, the right wheel.
- The fourth block is another motor block that runs Port C, the left wheel.
-The fifth block is a sound sensor block.
-The sixth block is another sound sensor.
- The seventh block is a motor block that makes Port B brake.
- The eighth block is another motor block that makes Port C brake.
5. Define the "Wait for Clap" behavior you built in the program
- The "Wait for Clap" just means that my robot has to "wait for" a "clap"before it begins doing what I programed. Clever how people name these blocks, eh?
6. What does the threshold for the sound sensor do? What would happen if you set the threshold higher? Lower?
- The threshold is like an invisible line on a hypothetical floor. If the line is crossed, it produces a result, but when things are safely staying away from the line, my robot stays immobile. If I set my threshold higher it would require more nose to trigger a response from my robot.
7. Why did you use a value from the sound sensor that was halfway between silence and clapping for your threshold value?
- I need to program my robot's sound threshold to be above the sound of silence, other wise it would go off too easily and too early. However, I had to program it a bit below my clap so that I could be sure it would respond.
8. Does your robot only respond to claps, or do other sounds trigger starting and stopping as well? Why do you think this is?
- My robot responded to other stuff, too. That's because it was only programmed to recognize a sound level, not a specific sound.
9. Mrs. Wood would like to use a robot as an actor in a class play. She wants the robot to start running across the stage on cue. The cue will be the sound of a door slamming as another (human) actor goes offstage.
a. How should she go about programming her robot to recognize the correct sound and begin its performance at the right time?
- Assuming the door slamming is the loudest part of the scene, she should program the robot to activate when the sound threshold is passed.
b. What possible problems might there be with this plan?
- Drama students can be very... dramatic. Things could get out of control and the sound threshold could be passed before it is supposed to be.
10. Someone has come up with an idea to keep order in the LLSC by turning off the lights whenever the room gets too noisy. They have a thought that a robot may be able to help them out. Explain briefly how a sound sensor-equipped robot might be able to simplify or automate this task.
- Well, first of all this is an awful idea. Have you seen what happens to classrooms when the power goes out? It's pretty much counterproductive to turn light off in a room full of loud teenagers. But if someone really thought this would help... they should take note of the noise level of "too loud" and then see the noise level of "loud, but alright". Somewhere in between "too loud" and "okay" should be the threshold where, if the noise level of "okay" is passed, the lights go out. A sound sensor should be placed somewhere in the student center to sense when the threshold is passed. When the threshold is passed and the noise becomes too loud, the lights will be triggered to go off.
11. How did the loop change the robot's behavior?
- Instead of having to press the orange button to run the program, the loop will keep the robot going on when I clap and off when I clap again.
12. How many times will the loop run?
- The loop will keep the robot going until the batteries die or class ends.
No comments:
Post a Comment