... | ... | @@ -42,10 +42,11 @@ Try to play music and make mappings from the sound sensor to the two motors that |
|
|
|
|
|
As seen in the video the car moves forward when it detects a sound higher than 50 db. We have done this since the sound level that is detected by the microphone, when the room is totally quiet, differs between 10 and 20 db. We do not know exactly why this is, but could relate to a bad microphone or a too sensitive one.
|
|
|
We also notice that when the robot detects a decibel of eg. 60, the power that we have mapped to the motors are not enough for making robot drive. We did not manage to get a dynamic flow of the speed in relation to the distance of the sound source, it seemed like it only differed between three types om movement; backward, no movement, and full-power.
|
|
|
-
|
|
|
|
|
|
|
|
|
|
|
|
![Billed af afstand](http://gitlab.au.dk/uploads/u4099/legolabtimadala/3e8dd693b1/Billed_af_afstand.png)
|
|
|
##### Picture 1 Approximative distances - 0.5 cm. distance VS. 5 cm. distance
|
|
|
-
|
|
|
|
|
|
Another interesting aspect we found in regards to the detected db level by the microphone, was that when speaker was in almost as close as it could be to the sensor (see Picture 1), the db level was around 85, however when sound source was moved further away from the sensor, the decibel level increased to around 95. Again, we are not quite sure if this a result of weird behaving microphone or there are other factors or aspects that we have missed.
|
|
|
|
... | ... | @@ -99,3 +100,5 @@ The above code snippet shows the two different ways we have mapped the sound lev |
|
|
### Conclusion
|
|
|
We managed to get the robot to behave to the environmental sounds. We have mapped these sounds to the power of the motor and experimented with using some of the values as negative values resulting in backward movement of the robot.
|
|
|
From the experiments we can see that the robot has a hard time reading values when the sound source is too close to the microphone. Furthermore is it hard to get a dynamic flow of the speed in relation to the distance of the sound source. This could be due to the quality of the microphone. Never the less gave this a inconsistency in the measurement when the sound source came too close to the microphone. The next time we look at this experiment it would beneficial to replace the microphone with another one, to see if the problem still exists.
|
|
|
|
|
|
|