|
Re: Microphone?
Wouldn't you end up getting a sine wave (or similar)? Seems to me that you would have to sample the analog input fast enough to get a reliable set of data.
I remember talking to someone about oscilloscopes and they mentioned that your sample rate (samples per second) has to be roughly double your frequency (Hz) in order to get an accurate idea of the period of the sine wave. If you draw it out (draw a sine wave and then plot two points per period, connect those) you see that depending on where those points fall, you may not get a reliable measure of the amplitude of the sine wave.
Wikipedia says that the lowest audible frequency (for humans) is 20 Hz, meaning you would need a sample rate of at least 40 samples/second. Of course, most sounds you would want to measure are much above this.
I'm not sure how fast the robot controller can actually sample the analog inputs, so this may or may not work.
__________________
"Time is an illusion, lunchtime doubly so."
-Douglas Adams
“Why is it that I can walk into Wal-Mart and buy boxes of bullets and black powder, but I can’t buy potassium perchlorate to do science because it can also be used to make explosives?”
-Theodore Gray
|