Skip to content

Push to production #2658

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 141 commits into from
Oct 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
141 commits
Select commit Hold shift + click to select a range
d65fffd
Added iq audio
May 2, 2022
16b9826
Updated index.json with Raspberry pi Audio name
May 26, 2022
7470ae1
Added new Overview of IQ products and removed unnecessarily complex i…
May 30, 2022
0bf7a29
Added to introduction.addoc
May 30, 2022
c0c09f2
Changed layout of Features at a glance table in introduction.adhoc
May 30, 2022
6f3b86b
Simplified Features at a glance in introduction.adhoc
May 30, 2022
af9d436
Removed unncessary detail from At a glance table in introduction.adhoc
May 30, 2022
17f5719
Removed unnecessary capital letters in introduction.adhoc
May 30, 2022
784ea29
Centralised ticks in quick glance table in introduction.adhoc
May 30, 2022
f098ee7
Simplified headings for Features at a glance in introduction.adhoc
May 30, 2022
0320648
Removed colour from quick glance table in intrioduction.adhoc
Jun 6, 2022
617b91f
Added detail to Balanced Out in introcuction.adhoc
Jun 6, 2022
7f5439f
Changed spacing for first column of At a glance table in
Jun 6, 2022
4d0f882
Capitalised v on Line Out info - introduction.adhoc
Jun 6, 2022
e477044
Capitalised v - Aux Out - introduction.adhoc
Jun 6, 2022
d000e75
Capitalised v - Aux In - introduction.adhoc
Jun 6, 2022
6f8bfaf
Changed title and intro - dac_pro.adhoc
Jun 6, 2022
d834dec
Capitalised v - Volts dac_pro.adhoc
Jun 6, 2022
c1b27ba
Removed 'the' Raspberry Pi - dac_pro.adoc
Jun 6, 2022
85c80f1
Removed 3 lines repeating functions - dac_pro.adhoc
Jun 6, 2022
f3e784a
fullstops - dac_pro.adhoc
Jun 6, 2022
4daed98
Added DAC definition dac_pro.adhoc
Jun 6, 2022
80a8a3b
Changed PRO to Pro dac_pro.adhoc
Jun 6, 2022
09e5bea
Changed title and first info line - dac_plus.adhoc
Jun 6, 2022
2b1377f
Removed 'Pi' and other unnecessary letter - dac_plus.adhoc
Jun 6, 2022
c19b502
Changed name and first line info - digiamp_plus.adhoc
Jun 6, 2022
8a5a09a
Added info to first line - digiamp_plus.adhoc
Jun 6, 2022
f4035fd
Removed hyphen from first line - digiamp_plus.adhoc
Jun 6, 2022
265e848
Removed unnecessary 'the' and repeated information - digiamp_plus.adhoc
Jun 6, 2022
9184f1e
Removed repeat info line - digiamp_plus.adhoc
Jun 6, 2022
e8ac0d8
Calrification in power to Raspberry Pi line - digiamp_plus.adhoc
Jun 6, 2022
a97fe09
Added Rapsberry Pi to unit titles adhoc docs
Jun 6, 2022
fac5f76
Changed name - codec_zero.adoc
Jun 6, 2022
2d3b5b4
Removed repeated info in NOTE - codec_zero.adoc
Jun 6, 2022
44f85da
Removed repeated comments - codec_zero.adoc
Jun 6, 2022
4557c6b
Removed repeated Pi Zero sized comments - codec_zero.adoc
Jun 6, 2022
f9a5881
Added to starting point text -
Jun 7, 2022
a66c1ec
Added MEMS explanation -
Jun 7, 2022
a3bb639
Added HAT definition -
Jun 7, 2022
138696f
Added HAT definition -
Jun 7, 2022
fc42a98
Added HAT definition -
Jun 7, 2022
88563e6
Added DSP definition -
Jun 7, 2022
1f65f4e
Added to button description -
Jun 7, 2022
11723e6
Added to first line of
Jun 7, 2022
b373551
Auto detect and auto configure
Jun 7, 2022
d3fadb8
Changed smart type speaker to smart
Jun 7, 2022
b322aac
changed micro-electro-mechanical -
Jun 7, 2022
b8706e7
Changed Mic-In line with regards to Codec Zero Mic -
Jun 7, 2022
84de67d
As last - introduction.adoc
Jun 7, 2022
db0dc6b
Removed 'latest full size' -
Jun 7, 2022
c55dc86
Described adding to /boot/config.txt
Jun 7, 2022
8a85289
Added to instructions on editing the
Jun 7, 2022
c43db32
Reduced Table size -
Jun 7, 2022
33a8042
Clarification to first para in
Jun 7, 2022
0081907
Minor changes added to board
Jun 7, 2022
fc0c108
Simplified Codec Zero description -
Jun 7, 2022
0695ccb
Clarified mixer and switches -
Jun 7, 2022
d2d9de8
Added capital V -
Jun 7, 2022
6974a0b
Changed to 40-pin header instead of 2x20 configuration.adoc
Jun 8, 2022
68514d7
Removed EEPROM expansion - configuration.adoc
Jun 8, 2022
e0863aa
Added Audio GUI png
Jun 23, 2022
b9a31a6
Added OS Audio GUI png
Jun 23, 2022
cb2d1f5
Removed addition
Jun 23, 2022
3bfb71c
Changed begining of Configuration to include screen grab of Audio set…
Jun 23, 2022
0fb0adc
Removed Headless Operation from Configuration due extensive list of
Jun 23, 2022
1bc4b30
Added HAT definition to introduction and removed repeated info about
Jun 23, 2022
40f515d
Simplified repeating info for Dac+
Jun 23, 2022
d9ce7b2
Simplified repeated info in DigiAMP+
Jun 23, 2022
aa86995
Tidy up intro.adoc
Jun 24, 2022
0a46151
Added table for Pin Outs
Jun 24, 2022
17d2ed4
Added table for Pin Outs - DigiAMP+.adoc
Jun 24, 2022
439cda1
Simplified Attaching the HAT in config.adoc
Jun 24, 2022
d76e8bc
Added instructions for Codec Zero setup at boot using rc.local to
Jun 24, 2022
0d70cb4
Added reboot command - config.adoc
Jun 24, 2022
c7f4b8c
Minro changes and removed reference to IQAudio - config.adoc
Jun 24, 2022
663272e
Removal of IQAudio reference - advanced.adoc
Jun 24, 2022
a3ca305
Minor changes to clean up. fac.adoc
Jun 24, 2022
0a3a97f
Minor grammar change.
Jun 24, 2022
b27a71c
Minor grammar
Jun 24, 2022
9a9dc44
Removed 'Adding a rotary encoder' from advanced.adoc
Jul 18, 2022
646ce58
Cahnged final heading to hardware
Jul 18, 2022
c514bf2
Chnaged Pin Outs to Pinouts - all docs
Jul 18, 2022
d242476
Added getting started
Jul 18, 2022
e71631b
Added getting started
Jul 18, 2022
f90d9f2
Re-ordered
Aug 22, 2022
8c82b40
Minor changes to Introduction.adoc
Aug 31, 2022
485d975
Minor changes to introduction.adoc
Aug 31, 2022
98880d9
Minor changes to dac_pro.adoc
Aug 31, 2022
82e428c
Minor chnages to dac_plus_adoc
Aug 31, 2022
9a26027
Brackets correction - dac_plus.adoc
Aug 31, 2022
301b8ac
Minor change digiamp_plus.adoc
Aug 31, 2022
aa5a3f0
Minor chnages to codec_zero.adoc
Aug 31, 2022
409722e
Minor changes to configuration.adoc
Aug 31, 2022
e9a5422
Details to Getting Started
Aug 31, 2022
693fe6c
Cganged chatterbox.py code in getting_started.adoc
Aug 31, 2022
2d9ea0a
Renamed python file
Aug 31, 2022
bc917c5
Created full Getting Started guide for kids chatter box project
Sep 5, 2022
2c82fa6
Rewrite for Getting Started
Sep 7, 2022
091e7bf
Typo in Getting Started adoc
Sep 7, 2022
7805747
Replaced old photo diagrams
Sep 9, 2022
3668566
Removed photo with stand off assembly
Sep 13, 2022
1b2efd5
Changed Zero pin picture
Sep 13, 2022
8da75e5
Removed unecessary colons and adjusted picture in Codec Zero
Sep 13, 2022
49c057d
Revised introduction.adoc slightly
Sep 22, 2022
a023dc5
Minor adjustments digiamp+.adoc
Sep 22, 2022
94dfb25
Minor addition to codec_zero.adoc
Sep 22, 2022
6a4f90e
Added new instructions for revised setup
Sep 22, 2022
a0b2389
A few edits. Mostly images.
Sep 23, 2022
d19b1e5
added new pin diagram from natalie
Oct 4, 2022
8dd5391
fixed build
Oct 4, 2022
79c03c8
Added final diagram and note
Oct 4, 2022
7fe1d45
Rewording, style, punctuation
LizUpton Oct 14, 2022
0d05fd1
Edits for style and sense
LizUpton Oct 14, 2022
d580db9
Style, rewording
LizUpton Oct 14, 2022
733ac80
Style
LizUpton Oct 14, 2022
9df0db9
Style and wording tweaks
LizUpton Oct 14, 2022
37c43dc
CE
LizUpton Oct 17, 2022
fbb8a28
CE
LizUpton Oct 17, 2022
02a0937
CE
LizUpton Oct 17, 2022
c475d10
CE
LizUpton Oct 17, 2022
56d8af6
Mic in/Ext mic
LizUpton Oct 18, 2022
16d806d
expander>header
LizUpton Oct 18, 2022
266b522
Update dac_pro.adoc
LizUpton Oct 18, 2022
1817b80
Update dac_pro.adoc
LizUpton Oct 18, 2022
c640f9e
Update configuration.adoc
LizUpton Oct 18, 2022
9ad772f
Update dac_plus.adoc
LizUpton Oct 18, 2022
9cc8a7f
Update getting_started.adoc
LizUpton Oct 18, 2022
b57b332
Update configuration.adoc
LizUpton Oct 18, 2022
4eb5fcf
Update faq.adoc
LizUpton Oct 18, 2022
ee3f6f6
Update configuration.adoc
LizUpton Oct 18, 2022
0a47447
Merge pull request #2639 from raspberrypi/LizUpton-patch-1
Oct 19, 2022
5f9e7c0
Merge pull request #2642 from raspberrypi/LizUpton-patch-3
Oct 19, 2022
4aed396
Merge pull request #2643 from raspberrypi/LizUpton-patch-4
Oct 19, 2022
f6c3f8f
Merge pull request #2644 from raspberrypi/LizUpton-patch-5
Oct 19, 2022
2293505
Merge pull request #2648 from raspberrypi/LizUpton-patch-6
Oct 19, 2022
b681010
Merge pull request #2650 from raspberrypi/LizUpton-patch-8
Oct 19, 2022
8a75238
Merge pull request #2651 from raspberrypi/LizUpton-patch-10
Oct 19, 2022
90ae0f2
Merge pull request #2649 from raspberrypi/LizUpton-patch-7
Oct 19, 2022
4f2b598
Merge pull request #2641 from raspberrypi/LizUpton-patch-2
Oct 19, 2022
ec863ea
Merge pull request #2524 from raspberrypi/iqaudio
Oct 19, 2022
e430a12
Moved iqaudio to audio and everything that entails
Oct 19, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions documentation/asciidoc/accessories/audio.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

include::audio/introduction.adoc[]

include::audio/dac_pro.adoc[]

include::audio/dac_plus.adoc[]

include::audio/digiamp_plus.adoc[]

include::audio/codec_zero.adoc[]

include::audio/configuration.adoc[]

include::audio/getting_started.adoc[]

include::audio/advanced.adoc[]

include::audio/faq.adoc[]

35 changes: 35 additions & 0 deletions documentation/asciidoc/accessories/audio/advanced.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
== Hardware information

=== GPIO usage

Raspberry Pi audio boards take advantage of a number of pins on the GPIO header in
order to operate successfully. Some of these pins are solely for the use of the board, and
some can be shared with other peripherals, sensors, etc.

The following Raspberry Pi GPIO pins will be used by the audio boards:

* All power pins
* All ground pins
* GPIO 2/3 (I2C)
* GPIO 18/19/20/21 (I2S)

If appropriate then the following are also used:

* GPIO 22 (DigiAMP+ mute/unmute support)
* GPIO 23/24 for rotary encoder (physical volume control) or status LED (Codec Zero)
* GPIO 25 for the IR Sensor
* GPIO 27 for the rotary encoder push switch/Code Zero switch

=== DAC PRO, DAC{plus}, DigiAMP{plus}, Codec Zero

image::images/pin_table_new.jpg[width="80%"]

The DAC PRO, DAC{plus} and DigiAMP{plus} re-expose the Raspberry Pi signals, allowing additional sensors and peripherals
to be added easily. Please note that some signals are for exclusive use (I2S and EEPROM) by some
of our boards; others such as I2C can be shared across multiple boards.

image::images/pin_out_new.jpg[width="80%"]




32 changes: 32 additions & 0 deletions documentation/asciidoc/accessories/audio/codec_zero.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
=== Raspberry Pi Codec Zero

Raspberry Pi Codec Zero is a Raspberry Pi Zero-sized audio HAT. It delivers bi-directional digital audio signals (I2S) between a Raspberry Pi and the Codec Zero's on-board Dialog Semiconductor DA7212 codec. The Codec Zero supports a range of input and output devices.

* High performance 24-bit audio codec
* Supports common audio sample rates between 8-96kHz
* Built in micro-electro-mechanical (MEMS) microphone (Mic2)
* Mono electret microphone (Mic2 left)
* Automatic MEMS disabling on Mic2 insert detect
* Supports additional (no fit) mono electret microphone (Mic1 right)
* Stereo auxiliary input channel (AUX IN) - PHONO/RCA connectors
* Stereo auxiliary output channel (Headphone/AUX OUT)
* Flexible analogue and digital mixing paths
* Digital signal processors (DSP) for automatic level control (ALC)
* Five-band EQ
* Mono line-out/mini speaker driver: 1.2W @ 5V, THD<10%, R=8Ω

image::images/Codec_Zero_Board_Diagram.jpg[width="80%"]

The Codec Zero includes an EEPROM which can be used for auto-configuration of the Linux environment if necessary. It has an integrated MEMS microphone, and can be used with stereo microphone input via a 3.5mm socket and a mono speaker (1.2W/8Ω).

In addition to the green (GPIO23) and red (GPIO24) LEDs, a tactile programmable button (GPIO27) is also provided.

==== Pinouts
[cols="1,12"]
|===
| *P1/2* | Support external PHONO/RCA sockets if needed. P1: AUX IN, P2: AUX OUT.
| *P1* | Pin 1 is square.
|===
image::images/CODEC_ZERO_ZOOMED_IN_DIAGRAM.jpg[width="50%"]

Codec Zero is an ideal design starting point for small-scale projects such as walkie-talkies, smart doorbells, vintage radio hacks, or smart speakers.
161 changes: 161 additions & 0 deletions documentation/asciidoc/accessories/audio/configuration.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,161 @@
== Configuration

A pre-programmed EEPROM is included on all Raspberry Pi audio boards. Raspberry Pi audio boards are designed to be plug-and-play; Raspberry Pi OS is able to automatically detect and configure itself. In Raspberry Pi OS, right-clicking on the audio settings in the top right-hand corner of your screen will allow you to switch between the on-board audio settings and the HAT audio settings:

image::images/gui.png[]

There are a number of third-party audio software applications available for Raspberry Pi that will support the plug-and-play feature of our audio boards. Often these are used headless. They can be controlled via a PC or Mac application, or by a web server installed on Raspberry Pi, with interaction through a webpage.

If you need to configure Raspberry Pi OS yourself, perhaps if you're running a headless system of your own and don't have the option of control via the GUI, you will need to make your Raspberry Pi audio board the primary audio device in Raspberry Pi OS, disabling the Raspberry Pi’s on-board audio device. This is done by editing the `/boot/config.txt` file. Using a Terminal session connected to your Raspberry Pi via SSH, run the following command to edit the file:

----
$ sudo nano /boot/config.txt
----

Find the `dtparam=audio=on` line in the file and comment it out by placing a # symbol at the start of the line. Anything written after the # symbol in any given line will be disregarded by the program. Your ``/boot/config.txt`` file should now have the following entry:

----
#dtparam=audio=on
----

Press CTRL+X, then Y and Enter to save, followed by a reboot of your Raspberry Pi in order for the settings to take effect.

----
$ sudo reboot
----

Alternatively, the `/boot/config.txt` file can be edited directly onto the Raspberry Pi's microSD card, inserted into your usual computer. Using the default file manager, open the `boot` volume on the card and edit the `config.txt` file using an appropriate text editor, then save the file, eject the microSD card and reinsert it back into your Raspberry Pi.

=== Attaching the HAT

The Raspberry Pi audio boards attach to the Raspberry Pi’s 40-pin header. They are designed to be supported on the Raspberry Pi using the supplied circuit board standoffs and screws. No soldering is required on the Raspberry Pi audio boards for normal operation unless you are using hardwired connections for specific connectors such as XLR (External Line Return) connections on the DAC Pro.

All the necessary mounting hardware including spacers, screws and connectors is provided. The PCB spacers should be screwed, finger-tight only, to the Raspberry Pi before adding the audio board. The remaining screws should then be screwed into the spacers from above.

=== Codec Zero configuration

The Raspberry Pi Codec Zero board uses the Dialog Semiconductor DA7212 codec. This allows
the recording of audio from the built-in MEMS microphone, from stereo phono sockets (AUX
IN) or two mono external electret microphones. Playback is through stereo phono sockets (AUX OUT)
or a mono speaker connector.

Each input and output device has its own mixer, allowing the audio levels and volume to be adjusted
independently. Within the codec itself, other mixers and switches exist to allow the output to be mixed to a single mono channel for single-speaker output. Signals may also be inverted; there is a five-band equaliser to adjust certain frequency bands. These settings can be controlled interactively, using AlsaMixer, or programmatically.

Both the AUX IN and AUX OUT are 1V RMS. It may be necessary to adjust
the AUX IN’s mixer to ensure that the input signal doesn’t saturate the ADC. Similarly, the output mixers can be to be adjusted to get the best possible output.

Preconfigured scripts (loadable ALSA settings) https://github.com/iqaudio/Pi-Codec[are available on GitHub], offering:

* Mono MEMS mic recording, mono speaker playback
* Mono MEMS mic recording, mono AUX OUT playback
* Stereo AUX IN recording, stereo AUX OUT playback
* Stereo MIC1/MIC2 recording, stereo AUX OUT playback

The Codec Zero needs to know which of these input and output settings are being used each time the Raspberry Pi powers on. Using a Terminal session on your Raspberry Pi, run the following command to download the scripts:

----
$ git clone https://github.com/iqaudio/Pi-Codec.git
----

If git is not installed, run the following command to install it:

----
$ sudo apt install git
----

The following command will set your device to use the on-board MEMS microphone and output for speaker playback:

----
$ sudo alsactl restore -f /home/pi/Pi-Codec/IQaudIO_Codec_OnboardMIC_record_and_SPK_playback.state
----

In order for your project to operate with your required settings when it is powered on, edit the `/etc/rc.local` file. The contents of this file are run at the end of every boot process, so it is ideal for this purpose. Edit the file:

----
$ sudo nano /etc/rc.local
----

Add the chosen script command above the exit 0 line and then Ctrl X, Y and Enter to save. The file should now look similar to this depending on your chosen setting:

----
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

sudo alsactl restore -f /home/pi/Pi-Codec/IQaudIO_Codec_OnboardMIC_record_and_SPK_playback.state

exit 0
----

Ctrl X, Y and Enter to save and reboot your device for the settings to take effect:

----
$ sudo reboot
----

If you are using your Raspberry Pi and Codec Zero in a headless environment, there is one final step required to make the Codec Zero the default audio device without access to the GUI audio settings on the desktop. We need to create a small file in your home folder:

----
$ sudo nano ./asoundrc
----

Add the following to the file:

----
pcm.!default {
type hw
card Zero
}
----

Ctrl X, Y and Enter to save, and reboot once more to complete the configuration:

----
$ sudo reboot
----

=== Muting and unmuting the DigiAMP{plus}

The DigiAMP{plus} mute state is toggled by GPIO22 on Raspberry Pi. The latest audio device tree
supports the unmute of the DigiAMP{plus} through additional parameters.

Firstly a "one-shot" unmute when kernel module loads.

----
dtoverlay=iqaudio-dacplus,unmute_amp
----

Unmute the amp when an ALSA device is opened by a client. Mute, with a five-second delay
when the ALSA device is closed. (Reopening the device within the five-second close
window will cancel mute.)

----
dtoverlay=iqaudio-dacplus,auto_mute_amp
----

If you do not want to control the mute state through the device tree, you can also script your own
solution.

The amp will start up muted. To unmute the amp:

----
$ sudo sh -c "echo 22 > /sys/class/gpio/export"
$ sudo sh -c "echo out >/sys/class/gpio/gpio22/direction"
$ sudo sh -c "echo 1 >/sys/class/gpio/gpio22/value"
----

to mute the amp once more:

----
$ sudo sh -c "echo 0 >/sys/class/gpio/gpio22/value"
----
15 changes: 15 additions & 0 deletions documentation/asciidoc/accessories/audio/dac_plus.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
=== Raspberry Pi DAC{plus}

Raspberry Pi DAC{plus} is a high-resolution audio output HAT that provides 24-bit 192kHz digital audio output.

image::images/DAC+_Board_Diagram.jpg[width="80%"]

A Texas Instruments PCM5122 is used in the DAC{plus} to deliver analogue audio to the phono connectors of the device. It also supports a dedicated headphone amplifier and is powered via the Raspberry Pi through the GPIO header.

==== Pinouts
[cols="1,12"]
|===
| *P1* | Analogue out (0-2V RMS), carries GPIO27, MUTE signal (headphone detect), left and right
audio and left and right ground.
| *P6* | Headphone socket signals (pin1: LEFT, 2:GROUND, 3: RIGHT, 4:GROUND, 5:DETECT).
|===
21 changes: 21 additions & 0 deletions documentation/asciidoc/accessories/audio/dac_pro.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
=== Raspberry Pi DAC Pro

The Raspberry Pi DAC Pro HAT is our highest-fidelity digital to analogue converter (DAC).

image::images/DAC_Pro_Board_Diagram.jpg[width="80%"]

With the Texas Instruments PCM5242, the DAC Pro provides outstanding signal-to-noise ratio (SNR)
and supports balanced/differential output in parallel to phono/RCA line-level output. It also includes a
dedicated headphone amplifier. The DAC Pro is powered by a Raspberry Pi through the GPIO header.

As part of the DAC Pro, two three-pin headers (P7/P9) are exposed above the Raspberry Pi's USB and Ethernet ports for use by the optional XLR board, allowing differential/balanced output.

==== Pinouts
[cols="1,12"]
|===
| *P1* | Analogue out (0-2V RMS), carries GPIO27, MUTE signal (headphone detect), left and right
audio and left and right ground.
| *P6* | Headphone socket signals (1: LEFT, 2: GROUND, 3: RIGHT, 4: GROUND, 5: DETECT).
| *P7/9* | Differential (0-4V RMS) output (P7: LEFT, P9: RIGHT).
| *P10* | Alternative 5V input, powering Raspberry Pi in parallel.
|===
22 changes: 22 additions & 0 deletions documentation/asciidoc/accessories/audio/digiamp_plus.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
=== Raspberry Pi DigiAMP{plus}

With Raspberry Pi DigiAMP{plus}, you can connect passive stereo speakers up to 2x35W with variable output, making it ideal for use in Raspberry Pi-based hi-fi systems.

DigiAMP{plus} uses the Texas Instruments TAS5756M PowerDAC and must be powered from an external supply. It requires a 12-24V DC power source (the XP Power VEC65US19 power supply is recommended).

image::images/DigiAMP+_Board_Diagram.jpg[width="80%"]

DigiAMP{plus}’s power in barrel connector is 5.5mm x 2.5mm.

At power-on, the amplifier is muted by default (the mute LED is illuminated). Software is responsible for the mute state and LED control (Raspberry Pi GPIO22).

DigiAMP{plus} is designed to provide power to the Raspberry Pi and DigiAMP{plus} together in parallel, delivering 5.1V at 2.5amp to the Raspberry Pi through the GPIO header.

WARNING: Do not apply power to the Raspberry Pi's own power input when using DigiAMP{plus}.

==== Pinouts
[cols="1,12"]
|===
| *P5* | Alternative power input for hard wired installations (polarity must be observed).
| *P8* | TAS5756m Internal GPIO1/2/3
|===
66 changes: 66 additions & 0 deletions documentation/asciidoc/accessories/audio/faq.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
=== Saving AlsaMixer settings

To store the AlsaMixer settings, add the following at the command line:

----
$ sudo alsactl store
----

You can save the current state to a file, then reload that state at startup.

To save:

----
$ sudo alsactl store -f /home/pi/usecase.state
----

To restore a saved file:

----
$ sudo alsactl restore -f /home/pi/usecase.state
----

=== Using external USB devices

If you want to enable 1.2 amp USB support (to allow USB hard disks to power up when
accessory boards are in use), you may also want to add the following line to your `/boot/config.txt`
file:

----
max_usb_current=1
----


=== MPD-based audio with volume control

To allow Music Player Daemon (MPD)-based audio software to control the audio board’s built in volume, the file
`/etc/mpd.conf` may need to be changed to support the correct AlsaMixer name.

This can be achieved by ensuring the 'Audio output' section of `/etc/mpd.conf` has the 'mixer_control'
line. Below is an example for the Texas Instruments-based boards (DAC
PRO/DAC{plus}/DigiAMP{plus}):

----
audio_output {
type "alsa"
name "ALSA Device"
mixer_control "Digital"
}
----

=== Hardware information

* PCB screws are all M2.5.
* PCB standoffs (for case) are 5mm male/female.
* PCB standoffs (for Raspberry Pi to audio boards) are 9mm female/female.
* PCB standoffs (for XLR to DAC PRO) are 8mm female/male.
* PCB standoffs (for the official Raspberry Pi 7-inch display) are 5mm male/female.
* The rotary encoders we have used and tested are the Alpha three-pin rotary encoder
RE160F-40E3-20A-24P, the ALPS EC12E2430804 (RS: 729-5848), and the Bourns ECW0JB24-AC0006L (RS: 263-2839).
* The barrel connector used for powering the DigiAMP{plus} is 2.5mmID, 5.5mmOD, 11mm.
* The DigiAMP{plus} is designed to operate with a 12V to 24V, 3A supply such as the XPPower
VEC65US19 or similar.
* The DigiAMP{plus} uses CamdenBoss two-part connectors. Those fitted to the PCB are
CTBP9350/2AO.
* The speaker terminal used on the Codec Zero will accept wires of between 14~26 AWG
(wire of max 1.6mm in diameter).
Loading