ArmDeveloperEcosystem / microphone-library-for-pico

Capture audio from a microphone on your Raspberry Pi Pico or any RP2040 based board. 🎤
Apache License 2.0
253 stars 50 forks source link

No sound, and not sure what to try #19

Closed petercwallis closed 2 years ago

petercwallis commented 2 years ago

I believe I have followed the instructions for the analog mic and then installed the usb example. I could not find the hello_analog_microphone example source to see what it is meant to do. After building and transferring the uf2 file for usb_microphone, unpluging it, and plugging it into the pi4 on my desk in place of the commercial usb mic, it appears under lsusb as "cafe 4010" but when I record a wav file with arecord, I hear (using aplay) a click, but nothing else. I have grepped the code for "cafe" and "4010" to no effect but expect the code is designed to give a slightly more informative usb device description?

issue 1) where is hello_analog_micrphone source and what is it meant to do? I am guessing it tests the mic without going via usb. 2) what should we expect from lsusb? 3) and (of course) it doesn't work as expected on the pi 4!

petercwallis commented 2 years ago

Hmm. My java background was showing: I was trying to find hello_analog_microphone.c - it is (I assume) analog_microphone example and called "main.c"

"cafe xxxx" seems to be right - the 4010 changes so that the host machine doesn't use the cashed driver.

Still can't get it to work - changed hardware. Now trying to find where the adc is read in the code...

The structure of the examples could be better or could do with more explanation.