This project captures audio signals from the BitDogLab microphone and uses the Fast Fourier Transform (FFT) to extract frequency components, displaying the results on the OLED screen.
- The microphone captures ambient sound samples via the ADC.
- The values are stored in a buffer and processed.
- The FFT is computed using the kiss_fftr library, generating a frequency spectrum.
- The results are converted into vertical bars and displayed on the OLED.
-
Clone this repository and open the files in VS Code. To clone the repository, use the command below:
git clone https://github.com/r4mon-vinicius/spectrum_analyzer.git
-
Connect the BitDogLab to the computer via USB.
-
Press the BOOTSEL button and then the RESET button. The board will enter BOOT mode. If the board has serial communication enabled, you can use the following command:
picotool reboot -f -u
-
Compile and upload the code to the BitDogLab. The OLED display should show the frequency spectrum captured by the microphone.
- Implementation of a numerical frequency scale on the display.
- Optimization of the display rendering algorithm.
- Application of digital filters for noise reduction.
This project is based on the following repositories: