User Tools

Site Tools


marvin:lab3

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
marvin:lab3 [2008/09/19 12:28] riepermarvin:lab3 [2008/10/09 21:33] (current) rieper
Line 4: Line 4:
 **Participants:** Bent and Johnny\\  **Participants:** Bent and Johnny\\ 
  
-In this lesson we will use the NXT sound sensor to turn the LEGO 9797 car into a sound controlled+**Purpose** In this lesson we will use the NXT sound sensor to turn the LEGO 9797 car into a sound controlled
 car. car.
  
Line 43: Line 43:
 The sound was that of Bent speaking directly into the microphone, thus utilizing the entire span of the power spectrum.\\ The sound was that of Bent speaking directly into the microphone, thus utilizing the entire span of the power spectrum.\\
 The recorded samples can be seen below (MatLab plot):\\ The recorded samples can be seen below (MatLab plot):\\
-{{:marvin:Lab3-micsamples.png}}+{{:marvin:Lab3-micsamples.png}}\\ 
 +Notice that the time resolution is poor due to the low sampling time. When playing back in Wave format it is impossible to recognize any spoken words. Yet the microphone is suitable for recognizing clapping sounds and the like, where you basically just want to measure the amplitude level.
  
-====Sound Control====+ 
 +====Sound Controlled Car====
 Below is the source code we used for testing the sound control: Below is the source code we used for testing the sound control:
 <code java> <code java>
Line 109: Line 111:
 [[http://www.youtube.com/v/o1V42sYXdH8|{{:marvin:lab3-movie.jpg}}]] [[http://www.youtube.com/v/o1V42sYXdH8|{{:marvin:lab3-movie.jpg}}]]
  
 +====Conclusion====
 +The microphone was sensitive towards the direction of the sound, see the figure under "Test of the Sound Sensor". We also found that the sampling time was far too low for recoring of speech, but the purpose of the microphone in this exercise was to detect clapping sounds, which it handles very well. By measurements on the readings from the sensor we found that the motors noise level was about 40-60, and therfore the threshold for handclap detection was set to 80.
marvin/lab3.1221820107.txt.gz · Last modified: 2008/09/19 12:28 by rieper