... | ... | @@ -32,7 +32,7 @@ We began by rebuilding the robot, looking at the illustrations for the building |
|
|
|
|
|
|
|
|
### Vehicle 1
|
|
|
We started by writing a program, **SoundLover.java** to have the robot drive forward proportional to sound received by a single sound sensor. The sound sensor appears to measure the dB value somewhere between 0 and 100. We base this on the fact that the absolute highest value seen in our most extreme experiments in our Lesson 3 exercises (where we also used the sound sensor), was a value of 92. As a result, we deem it reasonable to simply map the read sound value directly to motor power, so we pass the measured sound by *readValue()* along as a parameter to the motor power. Ideally we would run some more thorough experiments to figure out the exact range that the sound sensor can measure, but we opted not to do this. The result of running this program can be seen in (TODO: INSERT VIDEO)
|
|
|
For the first part of the exercise we wrote a program, **SoundLover.java** [TODO: ref], that made the robot drive with motor power proportional to the sound level measured by a single sound sensor. We could not find specifications on what the sound sensor measures, or what the range of these measurements are, but the readings returned from it appear to be (dB?) values somewhere between 0 and 100. We base this on the fact that the absolute highest value seen in our most extreme experiments in the Lesson 3 exercises (where we also used the sound sensor), was a value of 92. Since the interval appears to be [0, 100], we deemed it reasonable to simply map the read sound value directly to motor power and so we pass the measured sound level returned by *readValue()* along as the value for the motor power parameter. Ideally we would run some more thorough experiments to figure out the exact range that the sound sensor can measure, but we opted not to do this. The result of running this program can be seen in (TODO: INSERT VIDEO)
|
|
|
|
|
|
[Video goes here]
|
|
|
|
... | ... | |