How To Do Automatic Song classification

Automatically and easily detect songs with embedded Artificial Intelligence

Apr 26, 2024

10056 views

6 respects

Components and supplies

1

MAX4466 microphone

1

Arduino® UNO R4 WiFi

Apps and platforms

1

Arduino IDE 1.8.19

NanoEdge AI Studio

Project description

Code

Code_with_matrix_display

c

The final code

Downloadable files

Code_with_matrix_display

The final code

arduino_demo_shazam_matrix.ino

Comments

Only logged in users can leave comments

Immagine
Immagine

compgirl24

8 months ago

Hi, thanks for answering my questions. I have a problem when I am trying to upload the final code to my arduino. I followed all of your steps exactly. The code uploads, but the serial shows questions marks and the led matrix just randomly displays a song name. What exactly in the final code that you uploaded do you have to change, because i think my microphone is not getting data.

Immagine
Immagine

mad_mcu

8 months ago

Hello, I believe the issue is caused by the baudrate. Make sure to select 115200 as baudrate. In my final code I didn't do much. I simply added a switch to display a song name. you have to change it according to your songs.

Immagine
Immagine

compgirl24

9 months ago

i am getting these errors when i am uploading, how should i fix this?: WARNING: library ArduinoGraphics claims to run on samd architecture(s) and may be incompatible with your current board which runs on renesas_uno architecture(s). Library NanoEdgeAI Library for N-Class Classification has been declared precompiled: Precompiled library in "C:\Users\sarshad\Documents\Arduino\libraries\NanoEdgeAI_Library_for_N-Class_Classification\src\cortex-m4\fpv4-sp-d16-hard" not found Using precompiled library in C:\Users\sarshad\Documents\Arduino\libraries\NanoEdgeAI_Library_for_N-Class_Classification\src\cortex-m4 c:/users/sarshad/appdata/local/arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/bin/ld.exe: error: C:\Users\sarshad\AppData\Local\Temp\arduino\sketches\4F63EE74A2E9BB28095F3EC07DBA8C3C/audio_sketch.ino.elf uses VFP register arguments, C:\Users\sarshad\Documents\Arduino\libraries\NanoEdgeAI_Library_for_N-Class_Classification\src\cortex-m4\libneai.a(NanoEdgeAI.o) does not c:/users/sarshad/appdata/local/arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/bin/ld.exe: failed to merge target specific data of file C:\Users\sarshad\Documents\Arduino\libraries\NanoEdgeAI_Library_for_N-Class_Classification\src\cortex-m4\libneai.a(NanoEdgeAI.o) collect2.exe: error: ld returned 1 exit status exit status 1 Compilation error: exit status 1

Immagine
Immagine

mad_mcu

8 months ago

Hello, what board are you using. You need to make sure that your board is using a ARM cortex M mcu

Immagine
Immagine

compgirl24

9 months ago

What is the knowledge library and how do I download it, when I search for it nothing comes up

Immagine
Immagine

mad_mcu

8 months ago

Hello, You get the knowledge library in the last step of nanoedge ai studio (the tool). In the .zip, then you have to add this library to the arduino library folder as explained in the tutorial. You need to go through the whole process of this tutorial, you cannot simply take the code.

Immagine
Immagine

program_unknown

10 months ago

can i use my sound sensor module

Immagine
Immagine

mad_mcu

10 months ago

As long as you know how to log sound data, you can use any microphone

Immagine
Immagine

enverarslan75

10 months ago

It's a very nice application, thank you for your efforts.