... | @@ -45,12 +45,11 @@ TBD: Add codesnippet of ButtonListener implementation |
... | @@ -45,12 +45,11 @@ TBD: Add codesnippet of ButtonListener implementation |
|
|
|
|
|
|
|
|
|
### Exercise 5
|
|
### Exercise 5
|
|
The figure below show four consecutive claps, measured with the nxt sound sensor.
|
|
The figure below shows four consecutive claps, measured with the NXT sound sensor. The pattern starts out at low amplitude and rises quickly (within the 25ms) to an amplitude above 85%. The length of the four claps varies between approximately 85ms and 175ms and then returns back to low (below 50%).
|
|
The length of the four claps vary between 85 and 175 ms with a sound level above 85%.
|
|
|
|
|
|
|
|
![Clap characteristics](https://gitlab.au.dk/rene2014/lego/raw/master/Week5/Measurements/ClapMeasurements.png)
|
|
![Clap characteristics](https://gitlab.au.dk/rene2014/lego/raw/master/Week5/Measurements/ClapMeasurements.png)
|
|
|
|
|
|
TBD: Code snippet? Limits: 80 and 200ms?
|
|
In the SoundCtrCar.java a state change occurs whenever a sound level is recorded as 90% or above. The duration of the sound is not taken into account thus a constant sound above this limit would also trigger a state change. A sleep functionality has been implemented in order to keep the program from running quickly through every state at high sounds.
|
|
|
|
|
|
### Exercise 6 - Party Finder Robot
|
|
### Exercise 6 - Party Finder Robot
|
|
In this exercise we mount two sound sensors on the Lego car and create a java application that will drive towards loud sound.
|
|
In this exercise we mount two sound sensors on the Lego car and create a java application that will drive towards loud sound.
|
... | | ... | |