|
# Group-22: Lab Notebook 2 - Installing PID controller on Megatron
|
|
# Group-22: Lab Notebook 3 - Installing the NXT sound sensor.
|
|
|
|
|
|
**Date:** 03/3/2015
|
|
**Date:** 03/3/2015
|
|
|
|
|
... | @@ -9,7 +9,7 @@ Rasmus Meldgaard Petersen, |
... | @@ -9,7 +9,7 @@ Rasmus Meldgaard Petersen, |
|
Claus Hedeager Rasmussen and
|
|
Claus Hedeager Rasmussen and
|
|
Jesper Kurtzmann Svith
|
|
Jesper Kurtzmann Svith
|
|
|
|
|
|
**Activity duration:** 3
|
|
**Activity duration:** 3+6
|
|
|
|
|
|
**Overall goal**
|
|
**Overall goal**
|
|
|
|
|
... | @@ -58,7 +58,7 @@ First we clapped at different distances to the sensor in order to measure from h |
... | @@ -58,7 +58,7 @@ First we clapped at different distances to the sensor in order to measure from h |
|
|
|
|
|
To compensate for the inconsistency we decided to use a smartphone and transmit a constant tone. The setup is showed in the picture below. The car was placed on a table in the middle of the room and loudness were measured from different distances:
|
|
To compensate for the inconsistency we decided to use a smartphone and transmit a constant tone. The setup is showed in the picture below. The car was placed on a table in the middle of the room and loudness were measured from different distances:
|
|
|
|
|
|
Reference![Skærmbillede 2015-03-02 kl. 09.56.58](http://gitlab.au.dk/uploads/group-22/lego/fcb16f422c/Sk%C3%A6rmbillede_2015-03-02_kl._09.56.58.png)
|
|
![Skærmbillede 2015-03-02 kl. 09.56.58](http://gitlab.au.dk/uploads/group-22/lego/fcb16f422c/Sk%C3%A6rmbillede_2015-03-02_kl._09.56.58.png)
|
|
|
|
|
|
Fig. 1: Picture of the setup. The robot was placed on a table and the phone was pointed towards the robot. After each sensor reading the distance to the phone was increased.
|
|
Fig. 1: Picture of the setup. The robot was placed on a table and the phone was pointed towards the robot. After each sensor reading the distance to the phone was increased.
|
|
|
|
|
... | @@ -84,7 +84,7 @@ We use the program DataLogger.java from lesson 1 to record data from the program |
... | @@ -84,7 +84,7 @@ We use the program DataLogger.java from lesson 1 to record data from the program |
|
**Result**
|
|
**Result**
|
|
The DataLogger was used to log data from the sound sensor. The experiment consisted of a period of 10 seconds in which consecutive snaps were made with the fingers. The graph below shows the results:
|
|
The DataLogger was used to log data from the sound sensor. The experiment consisted of a period of 10 seconds in which consecutive snaps were made with the fingers. The graph below shows the results:
|
|
|
|
|
|
|
|
![Skærmbillede 2015-03-02 kl. 10.34.35](http://gitlab.au.dk/uploads/group-22/lego/c97aea11de/Sk%C3%A6rmbillede_2015-03-02_kl._10.34.35.png)
|
|
Fig. Recording of a sequence of four finger snaps. The graph shows data logged from the NXT while running the SoundSampler program.
|
|
Fig. Recording of a sequence of four finger snaps. The graph shows data logged from the NXT while running the SoundSampler program.
|
|
|
|
|
|
The graph shows four distinct spikes in the sound level caused by the finger snapping. The spikes peak at 30-50 (db?) before the sound level goes back to its normal. The background noise measured is about 2-10 (db?).It is interesting to note that the spikes increase faster than they fade away. This observation can be due to resonance or echo from the sound waves which take some milliseconds to fade away.
|
|
The graph shows four distinct spikes in the sound level caused by the finger snapping. The spikes peak at 30-50 (db?) before the sound level goes back to its normal. The background noise measured is about 2-10 (db?).It is interesting to note that the spikes increase faster than they fade away. This observation can be due to resonance or echo from the sound waves which take some milliseconds to fade away.
|
... | @@ -139,4 +139,4 @@ In order to make the program terminate we use the S |
... | @@ -139,4 +139,4 @@ In order to make the program terminate we use the S |
|
# Exercise 6
|
|
# Exercise 6
|
|
|
|
|
|
|
|
|
|
Conclusion |
|
Conclusion |
|
|
|
\ No newline at end of file |