background image

 pHAT Module Series 

pHAT-HIFI Technical Description 

 

 

 

pHAT-HIFI Technical Description 

 

Page 9 of 20 

 

 

3

 

Application 

3.1

 

Installation 

The module should be attached to the Raspberry-Pi board using a 20+20 2.54mmP pin 
header/socket (not supplied). 
 

3.1.1

 

Line Output Connection 

The line output PCB pads, marked L, R & GD can be connected to an external amplifier. 
 

3.1.2

 

Speaker Power Supply and Speaker Selection 

Any mains adaptor with a 2.1mm centre positive connector and output voltage of 9 ~ 15VDC 
can be used to power the on-board speaker amplifier, 12VDC recommended. The output 
power capability of the adaptor determines the maximum wattage the amplifier is capable of 
providing, a 1.5Amp adaptor permitting 2x 8

 6Watt speakers to be driven or a 2.5Amp 

adaptor permitting 2x 4

 12Watts speakers to be driven. Ultimate drive performance and 

audio fidelity very much depends on the power capability of the mains adaptor. 
 

3.1.3

 

Speaker Connection 

Connect each speaker to one of the 2way terminal blocks noting ‘LEFT SPEAKER’ and ‘RIGHT 
SPEAKER’ identification and polarity ‘+’ indication. DO NOT BRIDGE CONNECT ANY OUTPUTS 
 

3.2

 

Operation 

When power is applied to the pHAT-HIFI, from the connected Raspberry-Pi board, the module 
will power-up the on-board DAC and is then ready for operation. 
When speakers are connected the mains adaptor should also be switched on. 
 
 

WARNING:  When  driving  4

Ω  Speakers  for 

a  long  period  of  time  at  a 

high  volume  level  the  amplifier  device  on  the  pHAT-HIFI  can  get  hot. 
The  device  does  have  thermal  shutdown  capability  but  we  would 

recommend  placing  a  self-adhesive  10*10mm  heatsink  (ensure  that  the  self-
adhesive  pad  covers  the  complete  bottom  of  the  heatsink  to  prevent 
component shorts) on top of the device between the two capacitor C15 & C30 if 
running the board in this way. 

 
 

 

Summary of Contents for pHAT-HIFI

Page 1: ...www designersystems co uk TEM DOC 001 Issue 1 PHAT HIFI TECHNICAL DESCRIPTION pHAT Module Series Document pHAT HIFI Technical Description Issue 1 00 00 Date 23rd August 2019 ...

Page 2: ...OVIDED IS BASED UPON CUSTOMERS REQUIREMENTS DESIGNER SYSTEMS MAKES EVERY EFFORT TO ENSURE THE QUALITY OF THE INFORMATION IT MAKES AVAILABLE DESIGNER SYSTEMS DOES NOT MAKE ANY WARRANTY AS TO THE INFORMATION CONTAINED HEREIN AND DOES NOT ACCEPT ANY LIABILITY FOR ANY INJURY LOSS OR DAMAGE OF ANY KIND INCURRED BY USE OF OR RELIANCE UPON THE INFORMATION ALL INFORMATION SUPPLIED HEREIN IS SUBJECT TO CHA...

Page 3: ...Module Series pHAT HIFI Technical Description pHAT HIFI Technical Description Page 3 of 20 About the Document History Revision Description Date Author 0 01 00 Create 27 7 19 DIO 1 00 00 First release 23 8 19 ...

Page 4: ...t 10 3 4 Power Supply 10 3 4 1 Speaker Power Input 10 3 4 2 DAC Power Supply Pins 10 3 5 Audio Interfaces 11 3 5 1 Speaker Terminals 11 3 5 2 Line Output Connection 11 3 6 I2 S Interface 12 3 6 1 I2 S Interface Pins 12 3 6 2 I2 S Communication 12 3 7 Configuration 13 3 7 1 File Installation 13 3 7 2 System File Modification 13 3 7 3 Hardware Testing 14 4 Electrical Characteristics 15 4 1 Absolute ...

Page 5: ...r Supply Pins 10 Table 3 Speaker Terminals 11 Table 4 Line Output Connection 11 Table 6 I2 S Interface Pins 12 Table 7 Absolute Maximum Ratings 15 Table 8 Normal Operating Conditions 15 Table 9 Current Consumption 16 Table 10 Related Documents 19 Table 11 Terms and Abbreviations 19 Figures Figure 1 Dimensions 17 Figure 2 I2 S protocol 18 ...

Page 6: ...he hardware interface that is connected to the customer s to the customers Raspberry Pi application This document can help customers quickly understand module interface specifications electrical and mechanical details as well as other related information of the module Associated with the quick start guide and demo software customers can use this document to easily set up the module ...

Page 7: ...pHAT HIFI features 32bit 3 wire I2S PCM communication to reproduce low noise high quality audio in any voice or music application pHAT HIFI features a wired stereo line level output for external amplification a wide 9 15VDC external speaker power supply range and high quality pluggable screw terminal speaker connections pHAT HIFI is fully ALSA driver compatible requires only minimal setup for high...

Page 8: ...DAC Dynamic Range 112dB Typical DAC Signal to Noise 112dB Typical DAC Total Harmonic Distortion THD 93dB Typical DAC Channel Separation 100dB Typical DAC Audio Data Audio Bit Length 12 24 32bits Sampling Frequency 8 384kHz Interface 3 wire I2 S 3 3V DAC Line Output Stereo 2 1Vrms 1kΩ Speaker Audio Type Stereo Class D Speaker Impedance 2x 4 8Ω 32Ω 5VDC Output Power 6 6Watts into 8Ω 12 12Watts into ...

Page 9: ...e driven Ultimate drive performance and audio fidelity very much depends on the power capability of the mains adaptor 3 1 3 Speaker Connection Connect each speaker to one of the 2way terminal blocks noting LEFT SPEAKER and RIGHT SPEAKER identification and polarity indication DO NOT BRIDGE CONNECT ANY OUTPUTS 3 2 Operation When power is applied to the pHAT HIFI from the connected Raspberry Pi board...

Page 10: ...th a 2 1mm coaxial jack plug to power the speaker amplifier pinout as follows 3 4 2 DAC Power Supply Pins The pHAT HIFI provides a supply input and multiple ground connections on the 20 20 header that connect to the 5 0V supply on the Raspberry Pi board The table below describes the module supply and ground pins Table 2 Power Supply Pins Pin Name Pin No Description Min Typ Max Unit V 2 4 Power Sup...

Page 11: ...rminals Terminal Name I O Description Comment LEFT SPEAKER CLASS C Left Speaker output 4 8Ω RIGHT SPEAKER CLASS C Right Speaker output 4 8Ω 3 5 2 Line Output Connection The pHAT HIFI provides three 3 PCB pads for stereo line level output from the DAC identified as L left R right and GD ground These pads can be wired to an external amplifier line input connection Table 4 Line Output Connection Pad ...

Page 12: ... table below describes the module I2 S pins Table 5 I2 S Interface Pins Pin Name Pin No I O Description Comment PCM_DOUT 40 DIO I2S Data 3 3V level PCM_CLK 12 CO I2S Bit clock 3 3V level PCM_FS 35 CO I2S Left Right data clock 3 3V level The pHAT HIFI requires the exclusive use of these GPIO pins to work correctly 3 6 2 I2 S Communication The pHAT HIFI uses I2 S communication to transfer digital au...

Page 13: ... file to the etc folder using the following command sudo cp asound conf etc 3 7 2 System File Modification Modify the etc modprobe d alsablacklist conf file using the following command sudo nano etc modprobe d alsa blacklist conf Add blacklist snd_bcm2835 Press CTRL O then return to save the file and CTRL X to exit and then modify the boot config txt file using the following command sudo nano boot...

Page 14: ...HiFi pcm5102a hifi 0 Subdevices 1 1 Subdevice 0 subdevice 0 The output volume can be changed using the following command alsamixer Additionally you should be able to test the device using the following command speaker test D default c 2 twav This should generate a left front and right front vocal output on the speakers To playback mp3 music files the simplest command line tool is mpg123 which can ...

Page 15: ...ter Min Max Unit DAC Power Supply Voltage VDAC 0 3 6 0 V Speaker Power Supply Voltage V 0 3 15 5 V Input Voltage on PCM signals 0 3 3 6 V Storage temperature 45 100 o C 4 2 Operating Conditions Normal operational conditions are listed in the following table Table 7 Normal Operating Conditions Parameter Min Typ Max Unit DAC Power Supply Voltage VDAC 4 5 5 0 5 5 V Speaker Power Supply Voltage V 5 0 ...

Page 16: ...rent Consumption Normal values for current consumption at typical speaker power supply voltage are listed in the following table Table 8 Current Consumption Parameter Min Typ Max Unit Supply Current No audio 20 mA Supply Current Stereo 8Ω Speakers max 1000 mA Supply Current Stereo 4Ω Speakers max 2000 mA ...

Page 17: ...HAT Module Series pHAT HIFI Technical Description pHAT HIFI Technical Description Page 17 of 20 5 Mechanical 5 1 Dimensions Mechanical drawing all dimensions in millimetres Figure 1 Dimensions 30mm 76mm ...

Page 18: ...a bits are set to 0 for data transmission If the receiver is sent more bits than its word length the bits after the LSB are ignored On the other hand if the receiver is sent fewer bits than its word length the missing bits are set to zero internally And so the MSB has a fixed position whereas the position of the LSB depends on the word length The transmitter always sends the MSB of the next word o...

Page 19: ...on I2S I S Inter IC Sound pronounced eye squared ess is an electrical serial bus interface standard used for connecting digital audio devices together It is used to communicate PCM audio data between integrated circuits in an electronic device CLASS D A class D amplifier or switching amplifier is an electronic amplifier in which the amplifying devices transistors usually MOSFETs operate as electro...

Page 20: ...ges please visit www designersystems co uk RoHS Compliance This product complies with Directive 2011 65 EC RoHS 2 and 2015 863 WU RoHS 3 of the European Parliament and the Council of the European Union on the Restriction of Hazardous Substances RoHS which prohibits the use of various heavy metals lead mercury cadmium and hexavalent chromium polybrominated biphenyls PBB and polybrominated diphenyl ...

Reviews: