• sales

    +86-0755-88291180

RPI ZERO DAC Aduio User Guide

Notes
Note that our installer, linked above, does all of the below for you, but if you're an intrepid hacker then you might need to know this stuff!

The DAC can be configured by adding dtoverlay=hifiberry-dacplus to the /boot/config.txt file.
The buttons are active low, and connected to pins BCM 5, 6, 16, and 20
The display uses SPI, and you'll need to enable SPI through the Raspberry Pi configuration menu.
Software compatible Pirate Audio software
(https://learn.pimoroni.com/tutorial/sandyj/getting-started-with-pirate-audio)

 git clone https://github.com/pimoroni/pirate-audio
 cd pirate-audio/mopidy
 sudo ./install.sh

Hardware
st7789 display - https://github.com/u-geek/st7789-python
four buttons, active low connected to BCM 5, 6, 16, and 20 (A, B, X, Y respectively)
IR remote, IR receive GPIO use BCM4 and IR send GPIO use BCM17
 
Installation DAC
You'll need to add the following lines to /boot/config.txt to get audio up and running:

dtoverlay=hifiberry-dacplus

You can also disable onboard audio if you're not going to use it, this sometimes helps applications find the right audio device without extra prompting:

dtparam=audio=off

 

Installation Display
If you're planning to build your own application you'll find some inspiration in examples.

But first you'll need some dependencies:

sudo apt-get update

sudo apt-get install python-rpi.gpio python-spidev python-pip python-pil python-numpy

And then you'll need the st7789 library:

sudo pip install st7789

 

For more display examples see    https://github.com/u-geek/st7789-python/tree/master/examples

TAG: Luckfox PicoKVM KVM NanoKVM RV1106 Pico Remote Control /Power /Desktop Maintenance Server HDMI USB For PiKVM Raspberry Pi MPUUART Raspberry Pi 5 PCIe to ISO 2-CH RS485 /2-CH RS232 / USB /UART / TTL Pi5 Pi5 Raspberry Pi DSI 800×480 SpotPear Raspberry Pi RP2040 Raspberry Pi Pico 2 RP2350B Industrial 8-Channel Relay IOT LAN Digital Input DIO /RS485 /RJ45 Ethernet /POE ESP32-P4 Smart 86 TV Box Development Board 4 inch 720x720 Display TouchScreen RS485 Relay Camera RJ45 ETH DDSM315 Direct Drive Servo Motor All-In-One Design Hub RS485 Motor Milk-V Duo Code ESP32 2 inch Capacitive TouchScreen LCD Display ST7789 CST816D 240x320 For Arduino/Raspberry Pi/Pico ESP32 ST7789 configuration Industrial Isolated 4CH RS485 TO POE ETH (B) RJ45 Converter UART For Modbus Raspberry Pi DSI display 2.13Inch E-Ink Raspberry Pi WatchDog RS232 to RJ45 Raspberry Pi 5 Audio X1012 Raspberry Pi 5 POE And PCIe to M.2 NVMe SSD Board Pi5 2280 Power over Ethernet