

The Pico Audio Pack (Line-Out and Headphone Amp) by Pimoroni is a compact audio interface designed to deliver high-quality audio output. It features a line-out and headphone amplifier, making it ideal for portable audio applications. This component ensures clear sound reproduction and enhanced audio performance, making it a perfect choice for projects requiring reliable audio output.








The following table outlines the key technical details of the Pico Audio Pack:
| Specification | Details |
|---|---|
| Power Supply Voltage | 3.3V (powered via Raspberry Pi Pico) |
| Audio Output | Line-out and headphone output |
| Amplifier Type | Stereo headphone amplifier |
| Output Impedance | Compatible with headphones (16-32Ω) |
| Connector Type | 3.5mm stereo jack |
| Dimensions | 65mm x 25mm x 8mm |
| Compatibility | Raspberry Pi Pico (with male headers) |
The Pico Audio Pack connects directly to the GPIO pins of the Raspberry Pi Pico. Below is the pin configuration:
| Pin | Function | Description |
|---|---|---|
| 3V3 | Power Supply | Provides 3.3V power to the audio pack. |
| GND | Ground | Common ground connection. |
| GPIO26 | Left Audio Channel (DAC) | Outputs the left audio signal from the Pico. |
| GPIO27 | Right Audio Channel (DAC) | Outputs the right audio signal from the Pico. |
| GPIO28 | Shutdown Control | Used to enable/disable the amplifier (optional). |
Below is an example of how to generate a simple sine wave audio signal using MicroPython:
from machine import Pin, PWM
import math
import time
left_channel = PWM(Pin(26)) # GPIO26 for left audio right_channel = PWM(Pin(27)) # GPIO27 for right audio
frequency = 44100 left_channel.freq(frequency) right_channel.freq(frequency)
sample_rate = 100 # Number of samples per cycle amplitude = 32767 # Max amplitude for 16-bit audio
sine_wave = [ int(amplitude * math.sin(2 * math.pi * i / sample_rate)) for i in range(sample_rate) ]
try: while True: for sample in sine_wave: # Write the same sample to both channels for stereo output left_channel.duty_u16(sample + 32768) # Offset for unsigned 16-bit right_channel.duty_u16(sample + 32768) time.sleep(1 / frequency) # Delay for the sample rate except KeyboardInterrupt: # Stop PWM on interrupt left_channel.deinit() right_channel.deinit()
frequency and sample_rate to modify the audio output.No Audio Output:
Distorted Sound:
Amplifier Not Working:
Q: Can I use the Pico Audio Pack with other microcontrollers?
A: The Pico Audio Pack is specifically designed for the Raspberry Pi Pico. However, it may work with other microcontrollers that provide compatible DAC outputs and a 3.3V power supply.
Q: What is the maximum output power of the headphone amplifier?
A: The amplifier is optimized for headphones with an impedance of 16-32Ω, providing sufficient power for clear and distortion-free audio.
Q: Can I use the line-out and headphone output simultaneously?
A: Yes, both outputs can be used simultaneously, but ensure the connected devices are compatible with the output levels.
Q: Is external power required for the Pico Audio Pack?
A: No, the Pico Audio Pack is powered directly from the Raspberry Pi Pico's 3.3V supply.
This concludes the documentation for the Pico Audio Pack. For further assistance, refer to Pimoroni's official resources or community forums.