• 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: 10-Axis DOF ROS IMU (A) Sensor UART ARM 32 DSP Processor BLE 5.3 Bluetooth / Accelerometer / Gyroscope / Magnetometer / Temperature & Pressure Spotpear Milk-V Duo Camera Tutorial Industrial USB TO 8CH TTL Converter USB to UART Multi Protection Circuits Multi Systems ESP32-S3 Industrial-Grade IOT RS485 CAN Communicator WiFi Bluetooth Solar Power Manager Module (D) Raspberry Pi 5 PCM5122 I2S Audio Card DAC Also For PI4 /PI3 /Zero Series ESP32 C3 1.44inch LCD Raspberry Pi 11.6 inch LCD HDMI /Type C Display In-Cell Capacitive TouchScreen 1768x828 For Jetson Nano/mini Computer PC Magnetic Encoder Servo Motor 120KG.CM 24V 360° RS485 High Precision And Large Torque Digital Photo Frames Industrial Isolation USB TO RS232/485/422/TTL FT232RNL Serial UART Converter Raspberry Pi CM5 IO BASE B Mini Board a Base Development Platform Compute Module 5 IO Board with EEPROM And Encryption chip Raspberry Pi 5 RTC Arduino 0.96inch RGB OLED ESP32 S3 5 inch LCD Development Board 800x480 TouchScreen Display TVBOX LVGL HMI Sensor CAN RS485 PC USB Secondary Screen Servo SpotPear Arducam