summaryrefslogtreecommitdiff
path: root/docs/reference
diff options
context:
space:
mode:
authorDan Halbert <halbert@halwitz.org>2017-12-13 13:12:49 -0500
committerScott Shawcroft <scott@tannewt.org>2017-12-13 10:12:49 -0800
commit43650b689674a18b95d520921d10a91b67f64c84 (patch)
tree092ac3a864b6ccdd08896865df528bc4c57aba47 /docs/reference
parent3c49f53eac8d39c0681f4b38d71d1b854b870fe0 (diff)
Fix PDMIn MEMS microphone support (#479)
Changes: * New faster filter loop, by @ladyada. New filter coefficients as well. * Turn on microphone clock when PDMIn object is created, and run it all the time, so the user code doesn't have to wait for microphone startup, which can be 10ms or even 100ms. * Wait for microphone startup when PDMIn is first created, based on new optional parameter microphone_startup in seconds (takes a float). * record() returns number of samples actually recorded, so you can see if it's not keeping up. * Fix buffer overflow errors when buffer size was not a multiple of 16 or something like that. * Tweak a few peripheral settings. * Minimum sampling frequency is now 16kHZ or so, because 8kHz runs microphone at only 0.5MHz, which is too slow for many mics. Note: I tried 128x oversampling instead of 64x, but the code cannot keep up at 24kHz or above sampling. 128x would reduce the high-frequency noise by 6db.
Diffstat (limited to 'docs/reference')
0 files changed, 0 insertions, 0 deletions