• 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: ESP32 Zero LCD HAT (A) user guide Electronic EYE 0.71 inch Round Double LCD Display Dual Screen For Arduino Raspberry Pi ESP32 Pico STM32 IO BASE MINI Board Pi5 Raspberry Pi Pico 2 RP2350 GEEK 1.14 inch LCD 240x135 65K SWD/UART/I2C For OpenOCD/CMSIS-DAP NVIDIA Jetson Orin NX Case Raspberry Pi Pico 2 RP2350 1.28 inch Round LCD TouchScreen Development Board 240x240 Display QMI8658 6-Axis $17.9 Jetson Nano 5G module Raspberry Pi Pico 2 RP2350/RP2040 W5100S-EVB-Pico W6300-EVB-Pico2 Ethernet Development Board ETH RJ45 Arduino IR Thermal Imaging Camera Raspberry Pi 0.96inch LCD 4 inch e Paper HAT+ E Ink Spectra E6 Full-Color 600x400 Screen Display For Arduino /Raspberry Pi /Jetson Nano /STM32 Raspberry Pi Game Raspberry Pi 5 Camera User Guide CAN FD 7inch Round LCD HDMI Capacitive 7 inch Touchscreen Display 1080x1080 For Raspberry Pi/Jetson Nano/mini PC X1011 Raspberry Pi 5 PCIe to M.2 NVMe 4-Ports SSD Board HAT Pi5 Four-Times 2280 ESP32 Display