Audio Amp With Bluetooth Proect
Audio Amp With Bluetooth Proect
NAME:
INDEX NUMBER:
i
DECLARATION
This is to certify that this project was carried for the fulfillment of the requirements for the award of
Certificate in Electrical and Electronics Engineering.
DEDICATION
I dedicate this project to God Almighty my creator, my strong pillar, my source of inspiration,
wisdom, knowledge and understanding. I also dedicate this work to my family and friends, for the
continuous love they showed me during the time of this write up of this project.
ii
ACKNOWLEDGMENT
My gratitude goes to God Almighty who made it possible for me to come this far in my Academic
pursuit. Without the guidance of my ever-listening supervisor, this work would not have been this
successful. I appreciate your support, encouragement towards me.
Also wish to appreciate my Head of Department for the help rendered and all her advises to the
students
My gratitude also goes to all my friends all others who assisted me in one way or another to make my
project successful.
iii
Table of contents
DECLARATION......................................................................................................................................ii
DEDICATION.........................................................................................................................................iii
ACKNOWLEDGMENT.........................................................................................................................iv
CHAPTER ONE......................................................................................................................................1
1. Introduction..........................................................................................................................................1
1.1 Background.....................................................................................................................................1
1.2 Functional Description...................................................................................................................1
1.3 Block Diagram................................................................................................................................1
1.4 Physical Specifications...................................................................................................................3
CHAPTER TWO......................................................................................................................................4
2. Design...................................................................................................................................................4
iv
2.1 Design Procedures..........................................................................................................................4
2.1.1 Power Unit..............................................................................................................................4
2.1.2 Digital Logic Unit...................................................................................................................5
2.1.3 Audio Output Unit.................................................................................................................6
2.2 Design Details.................................................................................................................................8
2.2.1 Power Unit..............................................................................................................................8
2.2.2 Digital Logic Unit...................................................................................................................8
2.2.3 Audio Output Unit.................................................................................................................9
CHAPTER THREE................................................................................................................................10
3. Design Verification............................................................................................................................10
3.1 Power Unit....................................................................................................................................10
3.1.1 External DC Input...............................................................................................................10
3.1.2 Battery...................................................................................................................................10
3.1.3 Voltage Regulation Tests.....................................................................................................11
3.2 Digital Logic Unit.........................................................................................................................11
3.2.1 Outgoing PCM Data Rate...................................................................................................12
3.2.2 Bluetooth Signal Strength Versus Distance.......................................................................13
3.3 Audio Output Unit........................................................................................................................13
3.3.1 Amplifier...............................................................................................................................13
3.3.2 Digital Analog Converter....................................................................................................15
CHAPTER FOUR..................................................................................................................................16
4. Cost and Schedule..............................................................................................................................16
4.1 Parts..............................................................................................................................................16
4.2 Labor.............................................................................................................................................17
CHAPTER FIVE....................................................................................................................................18
5. Conclusion..........................................................................................................................................18
5.1 Accomplishments.........................................................................................................................18
5.2 Uncertainties.................................................................................................................................18
5.3 Ethical considerations...................................................................................................................18
5.4 Future work...................................................................................................................................19
v
References..............................................................................................................................................20
ABSTRACT
This document explains in-detail the design and technical verification of the Portable Bluetooth Amp
for Home Speakers. The final design is capable of outputting 20 watts continuously to external
speakers with a Total Harmonic Distortion of less than 1% while being powered by an internal battery
for over 3 hours. It supports power and battery charging with an external DC input. Digital audio can
be amplified via a 3.5 mm auxiliary cable directly to the amplifier or streamed to the CC2564MODA
Bluetooth chip and pipelined through the TLV320AIC3109 digital-to-analog converter then to the
amplifier.
vi
CHAPTER ONE
1.0 INTRODUCTION
1.1 BACKGROUND
Bluetooth audio AMP are increasingly more common as people find convenience in a wireless
and portable module. However, the market lacks more powerful and affordable Bluetooth audio
for those who need them for larger applications, such as theatrical and dance rehearsals. Since
speakers have become more common in households in the past couple of decades, we have
created a portable amp with Bluetooth capability that can convert common household speakers
into a Bluetooth speaker. As users can repurpose their speakers, they can purchase our device to
use with their own speakers rather than be locked into a speaker and amp all in one that is
provided by other companies. This gives the user more freedom at a lower price point.
Owners can connect to the amplifier with any Bluetooth-capable device or a 3.5mm audio jack.
Since the device has its own battery, the user can play music anywhere. A user can plug in an
external power adapter to both charge the battery and use the device without draining the
battery. We define our product with the following specifications:
The device can output at least 20 watts continuous for an 8-ohm speaker.
The device can operate for at least 3 hours using the battery with the amp outputting 20 watts
continuously.
The device is small enough to be carried in a backpack or in one’s hand (more details under
physical design).
The device supports Bluetooth audio streaming with a stable signal at ranges up to 20 feet.
Total harmonic distortion of less than 1% while outputting a 20-watt continuous signal.
vii
To determine the best way of improving the system
viii
CHAPTER TWO
The Charge and Power Selection Circuit needs to be able to automatically select between the two
sources for whichever is present (preferring the External DC Input when both are available) and
charge the six-cell lithium polymer battery when the external is connected. Based on these
requirements, the BQ24610RGER IC was chosen, since it supports auto-power selection and
charging of lithium batteries up to six cells.
The primary purpose of the PU (from the perspective of the other units in the system) is to supply
20-26 V, 3.3 V, and 1.8 V. The 20-26 V comes directly from the battery/external DC, so the
supply is directly passed to the output for that voltage, eliminating the need for a voltage
regulator at that voltage. For the 3.3 V supply, the input voltage of 20-26 V is much greater than
the 3.3 V output, so a switching voltage regulator is needed to handle the large voltage drop with
little sacrifice in efficiency and minimal heat generation, thus the LM2576SX-3.3/NOPB voltage
regulator was chosen. This regulator also supports current draw up to 3 A, which is well-above
ix
the 2 A maximum current needed for the system. As for the 1.8 V regulator, the 3.3 V supply is
used as the input to this regulator, allowing for the TLV1117LV18DCYR linear regulator to be
chosen for its smaller and cheaper form factor. This regulator supports a maximum of 1 A
current draw, which is also above the required 500 mA for the system.
At the high level, the final DLU circuit (depicted in Figure 4) consists of the MSP430F5659
microcontroller united with the CC2564MODA Bluetooth module, with push-button physical
interface. These chips are readily integrated with royalty-free stack software and well-document
Bluetooth APIs, both provided by Stonestreet One. This design is partially tested and partially
verified.
The prototype (depicted in Figure 5) consists of two development boards made by Texas
Instruments: the MSP432P401R Launchpad and the BOOST-CC2564MODA; this form is
completely tested and verified. The MSP432 comes readily integrated with the CC2564MODA
using the same stack software, except designed for the MSP432 chip-type. The power
configuration is different for the prototype, but the change in total power consumption is
negligible, and is not considered in power calculations since it is only the prototype.
x
Figure 5. Digital Logic Unit Prototype Circuit Block Diagram
During prototype development, the MSP432P401R was flashed and debugged using the onboard
XDS110ET emulator. The BOOST-CC2564MODA module is designed to fit onto the
MSP432P401R launchpad using jumper blocks.
xi
Figure 6. Audio Output Unit Block Diagram
As the amplifier we chose did not have a programmable gain or multiple inputs, we needed to
look for a DAC that can operate as a mixer for both the analog signals and the digital signals.
Since we know the digital signal type will be PCM we chose the cheapest digital codec that
supported mixing and PCM by Texas Instruments on Digi-Key and came to the result of the
TLV320aic3109-Q1.
For the construction of the device we decided to solder the IC chips onto compatible breakout
boards and breadboard the circuit before creating a PCB. This way we can verify if our circuit
design works as intended. However, this resulted in problems such as trace inductance and will
be discussed in Section
2.2.3.1.
xii
2.2 Design Details
All digital bus traces have no other traces To minimize noise or interference from any
running underneath them. other signal.
CC2564MODA external slow clock is To generate the clock as close as possible to
generated by a dedicated oscillator. the CC2564MODA to minimize drift.
CC2564MODA is located on the edge of the To maximize the RF signal strength.
PCB with no ground planes or traces
underneath the antenna.
Digital PCM from CC2564MODA lead to To allow for a disconnected DAC module.
jumper pins.
xiii
2.2.2.3 Bluetooth Audio Streaming
The royalty-free stack for the CC2564MODA is employed on the MSP432P401R. The stack
allows for quick and easy Bluetooth profile activation on the CC2564MODA. An audio sink
sample program comes with the stack software, which activates the Advanced Audio
Distribution Profile (A2DP) profile, defines callbacks for pairing and audio streaming events,
and starts a scheduler to run indefinitely. Due to the length of the source code, it has not been
included in the document. Modifications were made to the source code to accommodate the
needs of this project. These modifications are in Appendix C as code, with file names derived
from the file names in the stack and sample program.
Modification 1: In the sample program, set the Bluetooth device name after start-up so the amp
becomes discoverable immediately after power-up.
Modification 2: In the HAL platform, disable the codec initialization of the CC3200 AUDIO
BOOST module. In this prototype, the DAC is initialized by an external microcontroller, in this
case a Raspberry Pi. The reason for this is defined in Section 5.2 of this report. In a final design,
we would modify the original codec initialization to initialize the TLV320AIC3109 via I2C.
Modification 3: In the HAL platform, modify the Bluetooth Audio Codec configuration to output
DSP timed PCM data configured for the TLV320AIC3109.
xiv
amplifier. After assembling, the amplifier was able to operate to specifications and our
requirements without faulting.
The design of the DAC is based from the layout example provided by Texas Instrument’s
documentation [12]. As we only have a mono input for our analog input and we are not using a
microphone we excluded those connections from the designs. As we are only working with I2S
we chose to program the DAC to generate a clock from the word-clock using PLL, thus
removing the need of a master clock to the
DAC.
xv
BLOCK DIAGRAM
xvi
Figur
.1Level
- Block
e High
Diagram
PHYSICAL SPECIFICATIONS
The finalized physical format of the device consists of a rectangular box. All components are
secured within the chassis. The rear of the box houses the banana plug connections for the
speaker outputs, a 3.5mm audio input, and the DC power supply input. The front of the device
contains the input buttons for easy accessibility. To yield a portable product, the appropriate
dimensions should be 10 in. x 5 in. x 5 in. or smaller. The final physical product has dimensions
of 9.42 in. x 4.98 in. x 3.53 in. (including the protruding buttons and jacks) which falls within the
dimensional constraints of portability. Most backpacks will hold this volume comfortably. Figure
2 shows the 3D-Model of the product with major components labeled.
xvii
CHAPTER THREE
RESEARCH METHODOLOGY
3. Design Verification
The design of this device needed to be verified with the Requirement and Verification Table,
which is listed in Appendix A Table 8. Each unit has its own requirements and verification
procedures listed in the table. In this section, major verification results are shown for each unit in
the system.
6.0609 25.9865
Based on the results in Table 2, the verification passed since the output voltage stayed well-
within the tolerance of +0.2V / -1 V when at full load of 6 A.
3.1.2 Battery
The internal lithium polymer battery (Multistar 6S 8000 mAh) needed to be able to supply 20.0 -
26.0 V to the system at a peak current draw of 3 A. Following the same steps for the External DC
Input described in Section 3.1.1 External DC Input, the output voltage was measured at no load
and full load. The results are shown in Table 3.
xviii
Table 3. Experimental Results of the Battery Test
Current Draw (A) Output Voltage (V)
(No Load) 0.0000 25.1792
8.0115 25.1135
From the results in Table 3, this battery passed the verification by maintaining an output voltage
of 25.1135 V when pulling over 8 A, which is well-over the peak current draw of 3 A needed
from the device.
Table 4.
xix
From the results in Table 8, all voltage lines passed verification since their output voltages stayed
wellwithin the voltage tolerance of ±0.2 V when under full current draw.
xx
Figure 8. Bit Clock Frequency at 5.6448 MHz During Audio Stream
3.2.2 Bluetooth Signal Strength Versus Distance
To verify a stable Bluetooth signal with the device at ranges of at least 20 feet, we placed the
DLU in the
3D-printed case and used a Samsung S9 smartphone to scan for Bluetooth devices and gather
Received
Signal Strength Indicator (RSSI) values. We used the Bluetooth Signal Strength Meter
application by NeoFrontier Technologies to measure RSSI values of the BOOST-
CC2564MODA, and since we followed all PCB guidelines for the CC2564MODA in our final
circuit, we can use the gathered values as verification. Figure 9 shows the estimated RSSI values
against distance.
xxi
3.3 Audio Output Unit
3.3.1 Amplifier
3.3.1.1 Output Power
To verify output power of the amplifier we input a 1 kHz sine wave into the amplifier and record
the output of the amplifier, connected to an 8-ohm resistive load, with an oscilloscope. We then
increase the input level of the sine wave until the recorded voltage cycle RMS hits the threshold
voltage which results in an output power of over 20 watts continuous. This threshold can be
calculated using the equation below.
VRMS2
Target Wattage (1)
8
We were able to achieve a voltage of 14.99 V, which satisfies the requirement for the output.
We must then convert power dBm to power watts to use the THD power equation (3).
PTotal
THD 100= (3)
P
Fundamental
0.001396
THD =100= 0.83% (6)
20.15579
As the total harmonic distortion is less than 1%, we have met our requirement.
We recorded that the highest response was 13.735 dB at 235 Hz, while the lowest response was
12.833 dB at 16 Hz. This is within the 4dB range that we have specified in our requirements. The
frequency response graph of the amplifier is shown in Figure 10.
xxiii
switches, and selecting the clock rate. The code that we used to program that DAC is shown in
Appendix C Figure 15. Figure 11 shows the output of the DAC which matches the Bluetooth
input from our phone.
xxiv
CHAPTER FOUR
DATA ABALYSIS AND PRESENTATION
xxv
Generic 24V DC AC Power Supply 1 $22.99 $22.99
Chassis Print Filament 1 $3.00 $3.00
PCBWay PCB Shipping 1 $40.00 $40.00
HobbyKing Battery Shipping 1 $8.55 $8.55
Digi-Key Shipping 1 $7.49 $7.49
Total $234.78
Single Unit Price (Without Shipping) $99.99
4.2 Labor
Using the average salary of an EE graduate at the University of Illinois at Champaign-Urbana
[15], we can determine a reasonable hourly rate for labor to be $32.21 an hour.
xxvi
CHAPTER FIVE
5.0 CONCLUSION
5.1 ACCOMPLISHMENTS
Although we were not able to fully assemble the chassis with all our components, we were able
to validate all our requirements for each module separately and have a working device that we
can use. The DAC was programmed successfully and was able to decode the Bluetooth signals it
received from a mobile phone. We were able to demo the amplifier and power unit in a portable
enclosure and test it with our own external speaker. This device was able to play audio at over 20
watts continuous output, thus exceeding our requirements. We also were able to design multiple
custom PCBs with tight component layouts. This resulted in small PCBs like the Amplifier, with
dimensions less than a 3 in. square.
5.2 UNCERTAINTIES
During development, we ran into issues with configuring the CC2564MODA stack and reducing
the size so that it fit onto an MSP430F5529. After contacting Texas Instruments, and receiving
no assistance on the matter, we decided that it was not plausible to prototype with the stack on an
MSP430F5529 or any other chip with less than 256 kB of flash storage. This is because we
would not be able to run a full audio distribution program on 128 kB of flash storage, and
especially not with debugging capabilities.
Working with lithium batteries is inherently dangerous, especially during prototyping. We had to
keep in mind the danger of batteries and the high possibility of shorting. While not in use, the
xxvii
battery was kept in a safe storage location away from people to prevent any injury of others [5].
When the battery was in use, we ensured that it was protected against damage and kept at a safe
distance away from any person.
Being a Bluetooth device, there are several regulations that it must adhere to to maintain safety
and legality. The Bluetooth module and stack must be qualified with Bluetooth SIG; however, a
qualified, unmodified module can be used, which is what we used [4]. Also, the Bluetooth
module (and hence the device as a whole), used the correct “Bluetooth SIG”-approved profiles,
namely the advanced audio distribution profile and the audio/video remote control profile.
All engineers should remember to cite all sources and credit contributors properly [5], and since
this project required some software, we made sure to check if any code used or modified had
been trademarked or licensed. The Bluetooth module uses a royalty-free stack software for
specific microcontrollers, so no special licensing was needed.
Our final product met the requirements of being portable, however it still had a lot of space
inside the chassis. Therefore, we can slim down the design in future revisions.
An alternative design would be to incorporate the DAC into the Digital Logic Unit, rather than
the Audio Output Unit. As the DAC requires many handshakes between the microcontroller and
itself it would be easier to have these connections traced on a PCB rather than through a dozen
header cables into the DAC.
xxviii
REFERENCES
[1] Jesse Maida, “Global Bluetooth Speaker Market to Grow at a CAGR of 33%”. Available:
https://www.businesswire.com/news/home/20160812005201/en/Global-Bluetooth-
SpeakerMarket-Grow-CAGR-33. [Accessed 8-Feb-2018]
[2] Bose, “SoundLink Revolve+ Bluetooth speaker”. Available:
https://www.bose.com/en_us/products/speakers/portable_speakers/soundlink-revolve-
plusbundle.html. [Accessed 8-Feb-2018]
[3] JBL, “JBL Boombox”. Available:
https://www.jbl.com/bluetoothspeakers/JBL+BOOMBOX.html?
cgid=bluetoothspeakers&dwvar_JBL%20BOOMBOX_color=Black-USA-
Current#start=1. [Accessed 8-Feb-2018] [4] Bluetooth SIG, “Product Qualification and
Declaration”. Available:
https://www.bluetooth.com/develop-with-bluetooth/qualification-listing. [Accessed 8-
Feb2018]
[5] IEEE, “IEEE Code of Ethics”. Available:
https://www.ieee.org/about/corporate/governance/p7-
8.html. [Accessed 8-Feb-2018]
[6] Texas Instruments, “bq24610 Datasheet”. Available:
http://www.ti.com/lit/ds/symlink/bq24610.pdf. [Accessed 13-Feb-2018]
[7] All About Circuits, “The Importance of Total Harmonic Distortion”, Available:
https://www.allaboutcircuits.com/technical-articles/the-importance-of-total-
harmonicdistortion. [Accessed 21-Feb-2018]
xxix