Skip to content
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

FTT example doesn't work #8

Open
gabrielbravov opened this issue Oct 14, 2024 · 4 comments
Open

FTT example doesn't work #8

gabrielbravov opened this issue Oct 14, 2024 · 4 comments

Comments

@gabrielbravov
Copy link

gabrielbravov commented Oct 14, 2024

Hello friends,

I'm buyed an Wisblock Microphone Starter Kit (SKU 116088) working with PDMSerialPlotterFFT example from https://github.com/RAKWireless/RAKwireless-Audio-library/blob/main/examples/RAK4631/PDMSerialPlotterFFT/PDMSerialPlotterFFT.ino

I run the example in Arduino IDE and works nice only two loop cycles, then just says

12:42:41.701 -> Frequency:0, nan:nan
12:42:41.701 -> Frequency:0, nan:nan
12:42:41.701 -> Frequency:0, nan:nan
12:42:41.701 -> Frequency:0, nan:nan
12:42:41.701 -> Frequency:0, nan:nan
12:42:41.701 -> Frequency:0, nan:nan

¿how can i solve it?

@gabrielbravov
Copy link
Author

Also, i tried all the examples that finish with "18003" in the follow link but none works. ¿what im doing wrong?

https://github.com/RAKWireless/RAKwireless-Audio-library/tree/main/examples/RAK4631

@gabrielbravov gabrielbravov changed the title FTT example doen't work FTT example doesn't work Oct 14, 2024
@gabrielbravov
Copy link
Author

@gabrielbravov
Copy link
Author

I tried this example and works ok.

https://github.com/RAKWireless/RAKwireless-Audio-library/blob/main/examples/RAK4631/Audio_Alarm/Audio_Alarm.ino

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.

@geoffrak
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants