Introduction
This guide contains all the information you will need to run the OSA Electronics DACBerry AMP² SE.
Summary
- What we need
- Assembly
- Onboard configuration
- SDB™ connector
- Quick install
- Volumio instructions
- moOde instructions
- OSMC instructions
- Retropie instructions
What we need
- Raspberry Pi A+/B+/2/3B/3B+/4B
- DACBerry PRO+ for Pi
- A MicroSD Card
- Set of 4 Nylon M2.5 Screws
- Set of 4 Nylon M2.5*11mm Female to Female Standoffs
- Set of 4 Nylon M2.5*5mm Male to Female Standoffs
Assembly
Use the nylon screws and standoffs to assembly the Raspberry Pi together with the DACBerry AMP² SE, as shown on the image below:
Onboard Configuration
By default, the DACBerry AMP² SE board DAC PCM5242 acts as master device, and the Pi as slave device.
Board layout
This is the board layout:
SDB™ Connector
DACBerry AMP² SE is one of the first boards to include this standard created by OSA Electronics. SDB Interface is a mix Serial Data signals together in the same Bus.
The A2 revision uses SDB™ 1.2.
SDB™ 1.2
GPIO
Quick Install
There is an easy way to install support for AMP² SE on Raspbian/Raspberry Pi OS.
Just run the following code from your Raspberry Pi with Internet connectivity:
1
|
curl https://www.osaelectronics.com/get/dba2se.sh | bash
|
You may need to reboot once. After rebooting, everything should work!
*NOTE: If quick install doesn’t work at all, or want to follow step by step instructions, please refer to the Retropie part.
Volumio Instructions
Volumio has already official support for this board, so to get it working you need to use the “Hifiberry DAC Plus” profile, what is fully compatible with AMP² SE.
*IMPORTANT: In order to make it works properly, is recommended to do a fresh install of Volumio and use lastest version.
Airplay
Volumio is a perfect choice if you want to stream music from your Apple devices.
Step 1
Open Volumio and navigate trought “Network” in Settings Panel, and connect to your WiFi network.
Step 2
Inside “Network” settings, locate “Hotspot Settings” tab and enable it if it’s not. Restart.
Step 3
Go to your desired Apple (or Windows) device and open iTunes if you are using a computer, or open the “control center” if using a phone/tablet. Go to the “Airplay” icon and select “Volumio”.
Step 4
That’s it! Enjoy streaming music!
Adding password to your Airplay device
With the Airplay feature activated, everybody will have access to your device and will be able to play music on it. If you want to add a password to it, follow these instructions.
Step 1
Open an SSH connection to your Pi, if you can’t connect at all, enable it on volumio.local/dev.
Then, type the following line to open up the template for the shairport config file in a text editor:
1
|
sudo nano /volumio/app/plugins/music_service/airplay_emulation/shairport–sync.conf.tmpl
|
Step 2
In the “general” section, add a password, like this:
1
2
3
4
5
6
|
general =
{
name = “${name}”;
log_verbosity = 0;
password = “<your airplay password here>”;
};
|
Save the file as usual and reboot.
Step 3
Connect to your device, you should be prompted for a password when airplaying to it.
moOde Instructions
moOde Audio Player is one of a range of audio playback solutions that supports DACBerry boards. You can follow these instructions in order to install and configure it.
It does not offer a “ready to use” image like other distributions. Instead it uses an image of the operating system (Raspbian) as basis and then a script for automatic installation.
*IMPORTANT: In order to make it works properly, is recommended to do a fresh install of moOde and use lastest version.
Installation
The following command executes the script. If you have not been connected to the internet two commands earlier, than simply NOTHING will happen here. If you had been online the installation wizard will be started.
1
|
sudo ./mosbuild.sh
|
Now a wizard will help you to do some setup:
Make the following choices:
- Write OS build directly to the boot SDCard? -> y
- Do you have a backup of your boot SDCard? -> y
- Enter Current Date (YYYY-MM-DD) -> enter date
- Make corrections -> n
- Use a proxy server for Internet access -> n
- Use a WIFI instead of Ethernet? -> n (Switching to WIFI should be done later when moOde is running.)
- Proceed with build -> y
- Power off the Pi -> y
- Wait for about 10 seconds until the green LED on Pi stops blinking. Then unplug the power cable and replug it.
All you have to do now is to wait. The Pi is downloading and compiling, so how long you have to wait is mostly depending on the CPU speed of your Pi. This may be several hours.
Configuration
Step 1
Direct your web browser to http://moode, http://moode.local or the device’s IP address. Then, click the menu icon in the top right corner and select Configure.
Step 2
Now, select the Audio icon. Choose the HiFiBerry DAC+ board from the I2S audio device drop-down list and click SET.
Step 3
Restart the device and enjoy your music!
OSMC Instructions
KODI OSMC team is already working to add official support on next release, but meanwhile, you can follow these steps to make it work:
*IMPORTANT: In order to make it works properly, is recommended to do a fresh install of OSMC and use lastest version.
To get it working using the RCA Output and Optical/Coax at same time, you need to use the “Hifiberry DAC Plus” profile.
Retropie Instructions
As for Raspbian Jessie, just run the following code from your Raspberry Pi with Internet connectivity:
1
|
curl https://www.osaelectronics.com/get/dba2se.sh | bash
|
The next step is to edit the raspi modules list with:
1
|
sudo nano /etc/asound.conf
|
This file should be blank! Just copy and paste the following text into the file:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
pcm.dacberry {
type softvol
slave.pcm “plughw:0”
control.name “PCM”
control.card 0
}
pcm.!default {
type plug
slave.pcm “dacberry”
}
ctl.!default {
type hw
card 0
}
|
Save the file as usual and reboot:
1
|
sudo reboot
|
Now to check everything is as expected, just type:
1
2
|
amixer
aplay –l
|
You should see something like that:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
|
pi@retropie:~ $ amixer
Simple mixer control ‘DSP Program’,0
Capabilities: enum
Items: ‘FIR interpolation with de-emphasis’ ‘Low latency IIR with de-emphasis’ ‘High attenuation with de-emphasis’ ‘Fixed process flow’ ‘Ringing-less low latency FIR’
Item0: ‘Low latency IIR with de-emphasis’
Simple mixer control ‘Analogue’,0
Capabilities: pvolume
Playback channels: Front Left – Front Right
Limits: Playback 0 – 1
Mono:
Front Left: Playback 1 [100%] [0.00dB]
Front Right: Playback 1 [100%] [0.00dB]
Simple mixer control ‘Analogue Playback Boost’,0
Capabilities: volume
Playback channels: Front Left – Front Right
Capture channels: Front Left – Front Right
Limits: 0 – 1
Front Left: 0 [0%] [0.00dB]
Front Right: 0 [0%] [0.00dB]
Simple mixer control ‘Auto Mute’,0
Capabilities: pswitch
Playback channels: Front Left – Front Right
Mono:
Front Left: Playback [on]
Front Right: Playback [on]
Simple mixer control ‘Auto Mute Mono’,0
Capabilities: pswitch pswitch–joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control ‘Auto Mute Time Left’,0
Capabilities: enum
Items: ’21ms’ ‘106ms’ ‘213ms’ ‘533ms’ ‘1.07s’ ‘2.13s’ ‘5.33s’ ‘10.66s’
Item0: ’21ms’
Simple mixer control ‘Auto Mute Time Right’,0
Capabilities: enum
Items: ’21ms’ ‘106ms’ ‘213ms’ ‘533ms’ ‘1.07s’ ‘2.13s’ ‘5.33s’ ‘10.66s’
Item0: ’21ms’
Simple mixer control ‘Clock Missing Period’,0
Capabilities: enum
Items: ‘1s’ ‘2s’ ‘3s’ ‘4s’ ‘5s’ ‘6s’ ‘7s’ ‘8s’
Item0: ‘1s’
Simple mixer control ‘Deemphasis’,0
Capabilities: pswitch pswitch–joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control ‘Digital’,0
Capabilities: pvolume pswitch
Playback channels: Front Left – Front Right
Limits: Playback 0 – 207
Mono:
Front Left: Playback 207 [100%] [0.00dB] [on]
Front Right: Playback 207 [100%] [0.00dB] [on]
Simple mixer control ‘Max Overclock DAC’,0
Capabilities: volume volume–joined
Playback channels: Mono
Capture channels: Mono
Limits: 0 – 40
Mono: 0 [0%]
Simple mixer control ‘Max Overclock DSP’,0
Capabilities: volume volume–joined
Playback channels: Mono
Capture channels: Mono
Limits: 0 – 40
Mono: 0 [0%]
Simple mixer control ‘Max Overclock PLL’,0
Capabilities: volume volume–joined
Playback channels: Mono
Capture channels: Mono
Limits: 0 – 20
Mono: 0 [0%]
Simple mixer control ‘Volume Ramp Down Emergency Rate’,0
Capabilities: enum
Items: ‘1 sample/update’ ‘2 samples/update’ ‘4 samples/update’ ‘Immediate’
Item0: ‘1 sample/update’
Simple mixer control ‘Volume Ramp Down Emergency Step’,0
Capabilities: enum
Items: ‘4dB/step’ ‘2dB/step’ ‘1dB/step’ ‘0.5dB/step’
Item0: ‘4dB/step’
Simple mixer control ‘Volume Ramp Down Rate’,0
Capabilities: enum
Items: ‘1 sample/update’ ‘2 samples/update’ ‘4 samples/update’ ‘Immediate’
Item0: ‘1 sample/update’
Simple mixer control ‘Volume Ramp Down Step’,0
Capabilities: enum
Items: ‘4dB/step’ ‘2dB/step’ ‘1dB/step’ ‘0.5dB/step’
Item0: ‘1dB/step’
Simple mixer control ‘Volume Ramp Up Rate’,0
Capabilities: enum
Items: ‘1 sample/update’ ‘2 samples/update’ ‘4 samples/update’ ‘Immediate’
Item0: ‘1 sample/update’
Simple mixer control ‘Volume Ramp Up Step’,0
Capabilities: enum
Items: ‘4dB/step’ ‘2dB/step’ ‘1dB/step’ ‘0.5dB/step’
Item0: ‘1dB/step’
pi@retropie:~ $
pi@retropie:~ $ aplay –l
**** List of PLAYBACK Hardware Devices ****
card 0: IQaudIODAC [IQaudIODAC], device 0: IQaudIO DAC HiFi pcm512x–hifi–0 []
Subdevices: 0/1
Subdevice #0: subdevice #0
pi@retropie:~ $
|
And voilà! Enjoy playing retro games!