-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement a driver for the Microphone / audio sensor (MP23ABS1) in Sensotile.Box #32098
Comments
@jimakos96 I think this is already available using I2S. @avisconti do you confirm ? |
Unfortnately not. Th Sensortile.box board has a MP23ABS1 microphone with an analog output. All the work I have done was on STM digital microphone with pdm output (like MP34DT05). In the latter case the pdm output can be interfaced to I2S and there is a sample here: zephyr/samples/shields/x_nucleo_iks02a1/microphone In case of analog microphone I think that the only way is infact to use the ADC to convert from analog to digital, but I do not have much experience on it. So, it would be an interesting exercise for @jimakos96 |
@jimakos96 instead of the HAL driver, I'd suggest using the ADC zephyr driver |
ok I will try to implement it using the adc driver for getting audio out of the internal microphone . |
Hello #include <zephyr.h> #include <drivers/gpio.h> #include <drivers/adc.h> static const struct adc_channel_cfg channel_cfg_0 = { const struct adc_sequence sequence = { void main(void)
} aliases { But i am not getting anything .In the board folder i have added the above. |
Is your feature request related to a problem? Please describe.
I would like to develop an application which can do audio sampling from the audio sensor in the Sensotile Box
Describe the solution you'd like
I simply like to use the Zephyr ADC API for audio receiving .
Describe alternatives you've considered
I tried to use the STM32HAL drivers functions for the ADC but i wasn't succesful
The text was updated successfully, but these errors were encountered: