Raspberry pi pico library for 6+1 microphone array connection.
Capture audio from a microphone array on your Raspberry Pi Pico or any RP2040 based board. 🎤
- RP2040 board
- Microphone array
- [6+1 Microphone Array] (https://www.dfrobot.com/product-1976.html)
Raspberry Pi Pico / RP2040 | Microphone | Configuration Define |
---|---|---|
MIC_CK | 0 | PIN_SCK |
MIC_WS | 1 | PIN_WS = PIN_SCK + 1 |
MIC_D0 | 2 | PIN_SD0 |
MIC_D1 | 3 | PIN_SD1 = PIN_SD0 + 1 |
MIC_D2 | 4 | PIN_SD2 = PIN_SD1 + 1 |
MIC_D3 | 5 | PIN_SD3 = PIN_SD2 + 1 |
LED_CK | 15 | LED_PIN_CLK |
LED_DA | 14 | LED_PIN_DIN |
VIN of the microphobe should be connected to the 5V of the power supply. GND of the microphobe should be connected to the GND of the power supply and Raspberry Pi Pico. Since the library is based on pio functionality, different ports on raspberry pi microcontroller can be used.
GPIO pins are configurable in examples or API.
See examples folder.
git clone https://github.com/denisgav/microphone-array-library-for-pico.git
- Set up the Pico C/C++ SDK
- Set
PICO_SDK_PATH
export PICO_SDK_PATH=/path/to/pico-sdk
- Create
build
dir, runcmake
andmake
:
mkdir build
cd build
cmake ..
make
- Copy example
.uf2
to Pico when in BOOT mode.
To create this project, following references were used:
- The TinyUSB library is used in the
usb_microphone_array
andusb_microphone_array_led
examples. - Machine I2S https://github.com/sfera-labs/arduino-pico-i2s-audio
- SK9822 LED https://github.com/raspberrypi/pico-examples/tree/master/pio/ws2812
- Microphone library for pico https://github.com/ArmDeveloperEcosystem/microphone-library-for-pico.git