p2sv
is simple project to use Raspberry Pi pico 2 as an audio spectrum visualizer.
p2sv
uses kissfft for as FFT and
some algorithms from cava to get basic visualization.
Two ADCs are used to digitize stereo audio signals with about 44.1KHz sampling rate.
Test connection on breadboard:
Audio signals need level shift to positve voltage for input to ADC.
Used this simple circuit to do so:
Pico pins are 3.3V but some LCD1602 and LED dot matrix uses 5V.
To shift signal voltage, used this circuit to do so:
Youtube demo video with LCD 16 characters 2 lines:
- I2C0 SDA: GP12
- I2C0 SCL: GP13
- some LCD works on 5V so need to use 2 level shifter for each pins
Youtube demo video with OLED 128x64:
- I2C0 SDA: GP12
- I2C0 SCL: GP13
Youtube demo video with LED 32x8:
- MAX7219 DIO: GP2
- MAX7219 CS : GP3
- MAX7219 CLK: GP4
- this dot matrix works on 5V so need to use 3 level shifter for each pins
This projectd uses Pico SDK 2.1.0.