Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
6 years, 4 months ago.
Using the microphone on the STM32L4 Discovery kit IoT node
I am trying to read in the data from the microphones (MP34DT01) on the STM32L4 dicovery node (DISCO-L475VG-IOT01A). I can't seem to find any example code or library for them or the Digital Filter for Sigma Delta modulators interface which it is connected to according to the schematics.
I did read that there might be some examples in the ST website but I couldn't find any code and I already have some code in mbed which I would like to use. I basically need to send the data from all the sensors over TCP. I have managed to for all except the microphone.
Any help is appreciated.
3 Answers
5 years, 3 months ago.
Same issue.
Hi Ignacio, I hope it's not too late, but I got it working here: https://github.com/janjongboom/b-l475e-iot01a-audio-mbed
posted by 03 Dec 20195 years, 3 months ago.
I've pushed an example here: https://github.com/janjongboom/b-l475e-iot01a-audio-mbed - hope others find it useful too!
Hi Jan,
I downloaded, compiled and ran your program. I never see the hex dump step on the terminal.
With the serial monitor attached:
1. Hit the blue button to start recording.
1. After two seconds a binary file in HEX format will be displayed (in one line with no spaces).
"display"
Hello from the B-L475E-IOT01A microphone demo
OK Audio Init (Audio Freq=16000)
Press the BLUE button to record a message
OK Audio Record
Regards,
...kevin
posted by 03 Dec 2019Kevin, try compiling with --profile=debug
flag... For some reason it indeed doesn't fire the interrupts in develop build, I expect some optimizing out of the interrupt handler. Will investigate.