|
|
##Group-22: Lab Notebook 2 - Installing PID controller on Megatron
|
|
|
# Group-22: Lab Notebook 2 - Installing PID controller on Megatron
|
|
|
|
|
|
**Date:** 03/3/2015
|
|
|
|
... | ... | @@ -17,7 +17,7 @@ Jesper Kurtzmann Svith |
|
|
**Overall plan**
|
|
|
|
|
|
|
|
|
#Exercise 1
|
|
|
# Exercise 1
|
|
|
|
|
|
**Task**
|
|
|
To mount the sound sensor and run a test using a modified version of SonicSensorTest.java. Test the sensor with different loudness and under different circumstances and describe the readings.
|
... | ... | @@ -60,25 +60,13 @@ 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:
|
|
|
|
|
|
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.
|
|
|
References![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)
|
|
|
|
|
|
Distance (approx metres)
|
|
|
Sensor Readings (dB)
|
|
|
0
|
|
|
81
|
|
|
0.5
|
|
|
40
|
|
|
1
|
|
|
35
|
|
|
2
|
|
|
20
|
|
|
3
|
|
|
15-20
|
|
|
4
|
|
|
9-11
|
|
|
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.
|
|
|
|
|
|
![Skærmbillede 2015-03-02 kl. 09.57.22](http://gitlab.au.dk/uploads/group-22/lego/4ffeca0d1e/Sk%C3%A6rmbillede_2015-03-02_kl._09.57.22.png)
|
|
|
|
|
|
#Exercise 2
|
|
|
# Exercise 2
|
|
|
|
|
|
**Task**
|
|
|
To use the datalogger to record data from the sound sensor.
|
... | ... | @@ -145,7 +133,3 @@ In order to make the program terminate we use the S |
|
|
|
|
|
|
|
|
Conclusion |
|
|
|
|
|
|
|
|
References
|
|
|
|