Skip to content

Latest commit

 

History

History
110 lines (84 loc) · 2.47 KB

README.md

File metadata and controls

110 lines (84 loc) · 2.47 KB

Making USB headset using Raspberry pi pico

Capture audio from a microphone on your Raspberry Pi Pico or any RP2040 based board. 🎤

Hardware

Default Pinout

PDM Microphone

Raspberry Pi Pico / RP2040 PDM Microphone
3.3V VCC
GND GND
GND SEL
GPIO 18 PDM1 DAT
GPIO 19 PDM1 CLK
GPIO 20 PDM2 DAT
GPIO 21 PDM2 CLK

INMP441 Microphone

Raspberry Pi Pico / RP2040 I2S Microphone
3.3V VCC
GND GND
GPIO 14 SD
GPIO 15 SCK
GPIO 16 WS

SPH0645 Microphone

Raspberry Pi Pico / RP2040 I2S Microphone
3.3V VCC
GND GND
GPIO 10 SD
GPIO 11 SCK
GPIO 12 WS

Analog Microphone

Raspberry Pi Pico / RP2040 MAX9814 Microphone
3.3V VCC
GND GND
GPIO 26 OUT

PCM5102a DAC

Raspberry Pi Pico / RP2040 I2S DAC
3.3V VCC
GND GND
GPIO 2 SD
GPIO 3 SCK
GPIO 4 WS

GPIO pins are configurable in examples or API.

Examples

See examples folder.

Cloning

git clone https://github.com/denisgav/pico-usb-headset.git

Building

  1. Set up the Pico C/C++ SDK
  2. Set PICO_SDK_PATH
export PICO_SDK_PATH=/path/to/pico-sdk
  1. Create build dir, run cmake and make:
mkdir build
cd build
cmake .. -DPICO_BOARD=pico
make
  1. Copy example .uf2 to Pico when in BOOT mode.

Acknowledgements

To create this project, following references were used: