sparkfun / Arduino_Apollo3

Arduino core to support the Apollo3 microcontroller from Ambiq Micro
83 stars 38 forks source link

Issue with PDM examples1_MicrophoneOutput for Sparkfun Edge #420

Closed Batwho closed 3 years ago

Batwho commented 3 years ago

I could successfully upload the examples1_MicrophoneOutput under the PDM example. However, the output in the Serial Monitor for the loudest frequency is always 0. This issue also happens to example2 and 3. Screenshot 2021-07-25 134715 For example 4, the python received data is also always 0.

I've checked the mic through the micro_speech example provided by the Sparkfun, the one could detect "Yes" and "No", and it works fine.

Batwho commented 3 years ago

Now I could use Example 4 to get the possible audio data. However, the config is the Edge is running under 500kbps and the python script is receiving data at 115200. If I change the python to 500K or downsample the Edge to 115200, it can not get any data, which is always 0. But for 115200, there is a start spike and then always 0. 115200

metanav commented 3 years ago

I guess Sparkfun edge does not have a PDM mic. It is analog one.

Wenn0101 commented 3 years ago

This is correct. The edge does not have a PDM microphone. This example will work for devices that have a PDM microphone.