... | @@ -177,18 +177,31 @@ |
... | @@ -177,18 +177,31 @@ |
|
> sample (say above 85) within 25 milliseconds, and then returns back to low (below 50) within another 250
|
|
> sample (say above 85) within 25 milliseconds, and then returns back to low (below 50) within another 250
|
|
> milliseconds.
|
|
> milliseconds.
|
|
>
|
|
>
|
|
> ---
|
|
> #### Plan
|
|
>## Exercise 6 - Party Finder Robot
|
|
> To use his method to detect claps and compare it to the method used in the program SoundCtrCar.java. Use the
|
|
|
|
> DataLogger class to record and investigate clap pattern.
|
|
>
|
|
>
|
|
> ---
|
|
> ---
|
|
>## Conclusion
|
|
> ## Exercise 6 - Party Finder Robot
|
|
>Through this lab lesson we’ve gained experience with the sound sensor and how it can be used as an alternate >navigation method. We found out that the sensor is able to detect sound in distances between 0-4 metres and that the >obtained value will vary dependently on the distance. We used the sound input to navigate the car in various ways. >First we made it drive, turn and stop after it detects a clap. Furthermore we installed to sound sensors on the car, >and made it drive towards the direction where most sound was detected.
|
|
|
|
>
|
|
|
|
>By logging data from the sound sensor we found out that different sounds result in different sound profiles. This >means that we are able to detect and distinguish different sounds based on the sound profile. For example it is >possible to program the robot to listen for claps as it emits a certain sound pattern.
|
|
|
|
>
|
|
>
|
|
>Lastly we implemented a ButtonListener on the robot and found out how we can terminate the program under different >circumstances. This was necessary as the one of the exercises involved four inner loops which prevented the program >from terminating once the escape button was pressed. By implementing the ButtonListener we made the program >terminate properly.
|
|
> ---
|
|
>
|
|
> ## Conclusion
|
|
># References
|
|
> Through this lab lesson we’ve gained experience with the sound sensor and how it can be used as an alternate
|
|
|
|
> navigation method. We found out that the sensor is able to detect sound in distances between 0-4 metres and that
|
|
|
|
> the obtained value will vary dependently on the distance. We used the sound input to navigate the car in various
|
|
|
|
> ways. First we made it drive, turn and stop after it detects a clap. Furthermore we installed to sound sensors on
|
|
|
|
> the car, and made it drive towards the direction where most sound was detected.
|
|
|
|
>
|
|
|
|
> By logging data from the sound sensor we found out that different sounds result in different sound profiles. This
|
|
|
|
> means that we are able to detect and distinguish different sounds based on the sound profile. For example it is
|
|
|
|
> possible to program the robot to listen for claps as it emits a certain sound pattern.
|
|
|
|
>
|
|
|
|
> Lastly we implemented a ButtonListener on the robot and found out how we can terminate the program under different
|
|
|
|
> circumstances. This was necessary as the one of the exercises involved four inner loops which prevented the program
|
|
|
|
> from terminating once the escape button was pressed. By implementing the ButtonListener we made the program
|
|
|
|
> terminate properly.
|
|
|
|
>
|
|
|
|
> # References
|
|
>
|
|
>
|
|
>
|
|
>
|
|
>
|
|
>
|
... | | ... | |