I want to integrate the PDM microphone with thingy53, I found no particular sample code for it
Would be needing help from scratch
I want to integrate the PDM microphone with thingy53, I found no particular sample code for it
Would be needing help from scratch
In main.c file dmic_dev is actually not present in common.dtsi file so did u added it externally
Hi
Rakshita said:In main.c file dmic_dev is actually not present in common.dtsi file so did u added it externally
Yes, I added this in the overlay files in the board folder of the example I sent you:
dmic_dev: &pdm0 { status = "okay"; pinctrl-0 = <&pdm0_default_alt>; pinctrl-names = "default"; clock-source = "ACLK"; };
Rakshita said:There is also an error in main function
Can u please help me out to solve it
Could you zip your example and attach it to the case? Then I will try to build it and see if I can spot the issue.
Best regards
Torbjørn
Actually I was trying to build the code which u send me, than I added the actual dmic sample code which is available in zephyr it got builded but not able to understand the code at all, I dont know even that pdm clock is working or not
Also I didn't get that why u configured the clk and data pin on 8 and 9 because as per the datasheet the clk is at gpio1, 9th pin and data is at gpio0, 27th pin
Also if I send u the code which was based on nrfx pdm driver can u help me with that as I have been working on that code for a long time and still not able to get that what is the issue
Hi Rakshita
Rakshita said:Also I didn't get that why u configured the clk and data pin on 8 and 9 because as per the datasheet the clk is at gpio1, 9th pin and data is at gpio0, 27th pin
My mistake. I incorrectly assumed you were connecting to an external PDM mic, not the one included in the Thingy53.
I found a project on github where they use the internal mic for a machine learning application, possibly you could get some inspiration there?
https://github.com/metanav/thingy53_snoring_detection/blob/main/src/sensors/ei_microphone.cpp
In the mean time I will try to set up a small example using the internal mic on the Thingy53 and share it with you, but I don't think I will have time to complete this today unfortunately. I will try to get back to you tomorrow.
Best regards
Torbjørn