Github examples don't works with Microphone Starter Kit

Hello friends, in the company that i work, they purchased Wisblock Audio Kits but i can’t to make it work the “Wisblock Microphone Starter Kit” with RAK4631 variant (i have two but none works).

I tried with a lot of the examples from RAKwireless-Audio-library/examples/RAK4631 at main · RAKWireless/RAKwireless-Audio-library · GitHub but only worked the PDMSerialPlotter_RAK18003 example. All the examples with PDM microphone and FTT for the RAK4631 core didn’t work.

¿What i’m doing wrong? I worked with RAK boxes before (lorawan tracker) and the examples worked very well.

For example, with PDM+FTT Serial Plotter example from RAKwireless-Audio-library/examples/RAK4631/PDMSerialPlotterFFT_RAK18003 at main · RAKWireless/RAKwireless-Audio-library · GitHub didn’t work in Arduino IDE with RAK Audio Library installed, i just recieve “0” messages in serial monitor and periodically recieve some data that looks like garbage because i play a 1khz tone near the PDM mic but this data don’t say anything useful related with a 1khz tone.

In other example, with PDM Serial Plotter from RAKwireless-Audio-library/examples/RAK4631/PDMSerialPlotter_RAK18003 at main · RAKWireless/RAKwireless-Audio-library · GitHub it works ok and i can see a sinusoidal wave when i play a 1khz tone.

¿what i’m doing wrong?

i posted this in Github library Issues yesterday but anyone answered.

I tried this example and works ok.

The main difference it’s that Audio_Alarm.ino don’t initialize SPI CS1,CS2 and CS3 in RAK18003Init();.
Expander2.digitalWrite(0, 1); //set SPI CS1 High
Expander2.digitalWrite(1, 1); //set SPI CS2 High
Expander2.digitalWrite(2, 1); //set SPI CS3 High

I tried to do the same in the FTT&PDM Examples but didn’t work it.

Gabriel,

I’ll look into this for you - It sounds like it is just the PDMSerialPlotter_RAK18003 that isn’t working for you - is that correct?

Geoff.

Thanks Geoff.
The only two examples that work it’s “PDMSerialPlotter_RAK18003” and “Audio_Alarm”.
I want to use the FFT examples but didn’t work it.

Gabriel,

The basic serial plotter and Audio_Alarm will work with most version of the Arduino IDE. The FFT example does not work with 2.x versions, so this is likely your problem.

I use the 1.8.19 version which will work. The reason is that the Serial Plotter works differently between the 2.x and 1.x versions.

I have made some updates to the RAK11200 version of this sample - over the next couple of days I’ll look into updating the RAK4631 version. The updates add the peak frequency to the output so it’s easier to get the FFT data.

Thanks Geoff, i installed Arduino IDE V1.8.19 and it worked ok.