... | @@ -16,12 +16,33 @@ The plan is to follow the instructions given in the instructions for Lesson 2 [1 |
... | @@ -16,12 +16,33 @@ The plan is to follow the instructions given in the instructions for Lesson 2 [1 |
|
|
|
|
|
## Results
|
|
## Results
|
|
|
|
|
|
### Exercise 1
|
|
### Exercise 1 and 2
|
|
|
|
|
|
|
|
TBD: Tilføj billede af test setup.
|
|
|
|
|
|
![Measured sound level as a function of sound level from a mac pc](https://gitlab.au.dk/rene2014/lego/raw/ffd008e7c3df32eb42b20f306dc2ff655fd9a17b/Week5/Measurements/SoundLevelMeasurements.png)
|
|
![Measured sound level as a function of sound level from a mac pc](https://gitlab.au.dk/rene2014/lego/raw/ffd008e7c3df32eb42b20f306dc2ff655fd9a17b/Week5/Measurements/SoundLevelMeasurements.png)
|
|
|
|
|
|
|
|
### Exercise 3
|
|
|
|
The SoundCtrCar.java program have four states. Whenever a loud sound is recorded, the state will be change.
|
|
|
|
As it is shown in the video below, the four states are driving forward, turning right, turning left and stopping.
|
|
|
|
|
|
|
|
TBD: Add video.
|
|
|
|
|
|
|
|
### Exercise 4
|
|
|
|
TBD: Add codesnippet of ButtonListener implementation
|
|
|
|
|
|
|
|
|
|
|
|
### Exercise 5
|
|
|
|
The figure below shows four consecutive claps, measured with the nxt sound sensor.
|
|
|
|
The figure shows that the length of claps vary between 85 and 175 ms.
|
|
![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?
|
|
|
|
|
|
|
|
### Exercise 6
|
|
|
|
TBD: Code snippet, video, calibration:-30, raw values are inverted compared to percent readings, PID control and gain choice.
|
|
|
|
|
|
|
|
|
|
## Conclusion
|
|
## Conclusion
|
|
|
|
|
|
## References
|
|
## References
|
... | | ... | |