• 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: Serial UART Bus Servo ST3020 TTL 25KG.CM Magnetic-Encoder High precision and Large torque BPI 360° SP3232EEN ESP32-S3 1.28inch Raspberry Pi Pico 2 RP2350-One Mini Board Type-A RP2350A RP2040 Raspberry Pi DSI 800×480 Serial Server Raspberry Pi Pico 10.1inch DVI LCD EVAL-ADXL354CZ USB CAN Analyzer NVIDIA Jetson Orin Nano/NX PoE Mini Expansion Board Power over Ethernet RJ45 802.3af compliant Round Rotary LCD touch screen 1.28inch 1.6inch 2.1inch Knob central control lighting LCD Raspberry Pi UGV Rover ROS2 PT AI OpenCV Robot Car MediaPipe Sipeed RISCV LicheeRV Nano Super-Mini SG2002 AI RAM-256MB 15.6 inch Dual LCD Computer PC Monitor Display Double Secondary Screen Type C Mini HDMI 1080P For Windows/MacOS EC200U C4-P01 Development Board QuecPython LTE Cat-1 Bluetooth GNSS Positioning Raspberry Pi 5 Silver-Shadow Case Mini Uninterruptible Power Supply module Supports charging And Power output at the same time 5V 2.5A