• Skip to main content
  • Skip to primary sidebar

Homemade Circuit Projects

Get free circuit help 24/7

Circuits for Beginners | Basic Circuits | LED Driver | Hobby Circuits | Transistor Circuits

New-Projects | Privacy Policy | About us | Contact | Disclaimer | Copyright

Home » Audio Projects » USB 5V Audio Amplifier for PC Speakers

USB 5V Audio Amplifier for PC Speakers

Last Updated on May 5, 2022 by Swagatam 16 Comments

Audio amplifiers which are designed to work with a 5 V supply from a USB socket such as from a computer USB are called an USB amplifiers.

In this article we will learn how to build a simple 3 watt amplifier circuit which can be powered directly from a computer 5V USB port for driving an 8 ohm 3 watt speaker. You can build a couple of such circuits and use them for creating a stereo output into a pair of 8 Ohm speakers.

Please note that TDA2822 IC is obsolete now therefore opting a circuit using this IC for the discussed project may not be a good idea. However the present design is based on the IC LM4871, which is abundantly available let's learn the main features and working of this IC

Main Features

  • The IC works without involving any sort of coupling capacitors, or bootstrap capacitors, or snubber capacitors
  • It exhibits extreme stability through Unity Gain .
  • Comes with WSON, VSSOP, SOIC, or PDIP Packaging
  • Allows to Set an external Gain control network

Important Specifications:

  • The IC LM4871D is designed to handle loudspeakers rated at 3 ohms or 4 ohms at 3 watts
  • All the remaining versions in the series are specified to handle 1.5 watt with 8 Ohm speaker.
  • The ICs have shutdown current internally set at 0.6uA typically
  • The working voltage range is between 2.0V to 5.5V, perfectly suited to work with PC USB power.
  • Maximum Total Harmonic Distortion with a 8 Ohm speaker load at 1kHz is around 0.5%

Pinout Specifications and Package

The following image shows the pinout details of the IC and the available package models, and layouts:

LM4871 pinout details

5V USB Amplifier Circuit Operation

5V USB 3 watt amplifier circuit for PC

Parts List

All resistors 1/4 watt or 1/8 watt, 1% MFR or SMD

  • 20 K = 2 nos
  • 100 K = 1 no (Rpu)

Capacitors

  • 0.39uF ceramic = 1 no
  • 1uF / 16V Tantalum = 2 nos

Semiconductor

IC LM4871 = 1 no

As can be seen in the above schematic, the LM4871 includes a couple of operational amplifiers internally, providing the user the option of configuring the amplifier through a few specified ways.

The gain of the first amplifier can be managed externally, while the second amplifier has been wired up internally with an inverting unity gain.

The closed loop gain for the first amplifier can be determined by appropriately selecting the values of the ratio Rf/Ri, whereas the same has been fixed for the second amplifier internally through a couple of 40K resistors.

We can see that the output of the amplifier#1 is configured to be the input of amplifier#2, allowing both the amplifiers to generate signals with identical values, although these may be 180 degrees out of phase.

This results in the IC’s differential gain to be AVD= 2 *(Rf /Ri ) .

Typically, for any amplifier a “bridged mode” set up can be implemented by driving the connected load deferentially via a couple of outputs Vo1 and Vo2.

An amplifier configured in the bridged mode will have a different operating principle in contrast to the traditional single ended amplifiers which have one end of the load wired with the ground line.

A bridged mode circuit works with better efficiency compared to a single ended amplifier since the load or the loudspeaker is switched in a push-pull manner, enabling a double voltage swing for each alternate frequency pulse.

This actually allows the loudspeaker to produce 4 times more power than a single ended version under identical circumstances or specifications.

The ability to achieve such increased power allows the amplifier to work without a current limiter stage and hence without undesirable clipping.

An added benefit of differential bridged output is the absence of net DC across the connected loudspeaker. This happens since VO1 and VO1 are biased at identical voltage levels, that is VDD/2 in the present case. This allows the amplifier to work without an output coupling capacitor, which otherwise becomes mandatory in single ended amplifiers.

Understanding Component Working and Specifications

Ri is the inverting input resistor which is employed to set the closed loop gain along with Rf. Additionally this resistor also implements a high pass filter function with Ci at fC= 1/(2π RiCi).

Ci forms the input coupling capacitor positioned to block DC and allow audio AC frequency across the input pins. This capacitor also enables a high pass filter in conjunction with Ri at fC= 1/(2π RiCi).

Rf becomes the feedback resistance that fixes the closed loop gain with the help of Ri.

Cs acts like supply bypass capacitor and provides ripple filtering for the power supply.

Cb is positioned as the bypass pin  capacitor and this capacitor enforces filtering for half-supply

Absolute Maximum Ratings

The maximum tolerable rating for this circuit are explained below:

  • Maximum supply voltage is 6V, typical working voltage is 5V
  • The minimum and maximum tolerable temperature levels are -65 and 150 degrees Celsius respectively.
  • The input music signal from the USB could be anywhere between -0.3V and 5.3 V
  • Maximum power dissipation is internally limited so no need to worry about this issue.

Electrical Characteristics:

Vdd signifies the supply voltage which is within 2V and 5.5V typically.

Idd is the quiescent current consumed from the input power supply by the IC and this may lie between 6.5mA to 10mA

Isd is the symbol for shutdown current, when pin#1 potential becomes equal to Vdd, the shutdown is initiated causing the consumption to drop to 0.6uA

Vos refers to output offset voltage, and is initiated when Vin = 0V, and could be 5V typically, and 50mV in the limited mode.

P0 is the output power and is around 3 watts when the load is an 8 Ohm speaker

THD+N indicates the total harmonic distortion which is within 0.13 to 0.25% with a frequency range of 20Hz to 20kHz.

PSRR gives us the power supply rejection ratio for Vdd at 5V typical, and this is around 60dB.

Prototype Image of the 5V USB amplifier:

LM4871 module USB amplifier

PCB Layout Recommendation:

USB amplifier PCB layout

Original article: www.ti.com/lit/ds/symlink/lm4871.pdf

You'll also like:

  • 1.  How to Build a Simple Egg Incubator Thermostat Circuit
  • 2.  Bridged Amplifier Circuit using LM380 Circuit
  • 3.  Listen to Wildlife and Insects with this Circuit
  • 4.  Light Dimmer and Ceiling fan Regulator Circuit
  • 5.  Electronic Touch Organ Circuit
  • 6.  Low Pass Filter Circuit for Subwoofer

About Swagatam

I am an electronic engineer (dipIETE ), hobbyist, inventor, schematic/PCB designer, manufacturer. I am also the founder of the website: https://www.homemade-circuits.com/, where I love sharing my innovative circuit ideas and tutorials.
If you have any circuit related query, you may interact through comments, I'll be most happy to help!

Subscribe2


 

Reader Interactions

Comments

    Your Comments are too Valuable! But please see that they are related to the above article, and are not off-topic! Cancel reply

    Your email address will not be published. Required fields are marked *

  1. Ken Connor says

    It looks like you may have modified the original TI circuit. Can you post your circuit diagram? It may also be that I am just not very good at reading the values of surface mount caps. Also, this looks identical to a circuit for sale on Amazon, eBay and elsewhere. Is that the case?

    Reply
    • Swagatam says

      Nothings’s modified here, it’s the original TI design, and it cannot be modified since it’s a perfect design already. The copyrights marks have been put me.
      yes anybody can manufacture such modules and sell them anywhere they wish to.

      Reply
      • XueL says

        Hi. Swagatam
        I have some questions
        In the BOM
        20 K = 2 nos
        40 K = 2 nos
        100 K = 3 nos (including Rpu)
        Capacitors
        0.39uF ceramic = 1 no
        1uF / 16V Tantalum = 2 nos
        So total components are the 7 pcs of the resistor and 3 pcs of the cap. Totally 10 pcs.
        But in the image of the module board I saw the 5 SMD components and 1 dip cap. Then totally 6 pcs.
        Where did I have a mistake?

        Reply
        • Swagatam says

          Hi, Xuel, sorry I am not sure if I understood your question, because I can see all the 10 components in the circuit diagram.

          Reply
          • XueL says

            Hi. Swagatam.
            Sorry for less explanation.
            Let me explane in detail

            Reply
          • XueL says

            In “5V USB Amplifier Circuit Operation”, I thought that 2pcs of 100kohm and 2pcs of the 40kohm is the internal components in the LM4871 and the other 6 components are the external components that should be mounted around the LM4871.
            And I think that the pcb board of this circuit is like the image of the “Prototype Image of the 5V USB amplifier”
            mentioned above.
            But I don’t know well if my thought is right.

            Reply
            • Swagatam says

              Thank you, Xuel, I think you are right, those 4 resistors inside the square boundary are internal to the IC, and they can be ignored. Only 6 components are actually required externally for completing the project, 3 resistors and 3 capacitors.

              I will correct the parts list accordingly.

              Reply
  2. Ken Connor says

    Thanks. I assumed that was the case. Do you have a a BOM and where you got the components? I want to share this with some high school students.

    Reply
    • Swagatam says

      Sure! I have updated the parts list under the circuit diagram.

      Reply
  3. dennis rollo says

    hi swag.please watch TROUBLESHOOT ELECTRONICS FAST WITH A SUPER PROBE by Mr.Carlson’s lab and help me redraw the connections and parts lists.please explain in details operation you used to.thanx

    Reply
    • Swagatam says

      Hi Dennis, the schematic is already available online…you just have to copy the parts from the schematic. All the stages are basically cascaded transistor amplifier stages (common emitter). The transistors can be all BC547, all resistors are 1/4 watt and capacitors are ceramic type.

      Reply
    • dennis rollo says

      thank you for clarification of parts.i ‘ll try building it.

      Reply
  4. Galesko says

    Hi,
    Thanks for sharing.
    I’ll try building it.
    I have juste a question : what is “Bias” ? Point test ?
    Thanks for response.
    Best regards.

    Reply
    • Swagatam says

      biasing of an electronic component is providing the minimum necessary supply voltage to enable it to operate normally

      Reply
  5. XueL says

    Thank you for kind reply
    A question arose while designing the board on my own based on the schematic and BOM you suggested.
    In the prototype image, I saw the Aluminium capacity(79A,100, 6.3v).
    But I didn’t find this capacitor in the list of the BOM you attached in this article as parts list.
    (0.39uF ceramic = 1 no
    1uF / 16V Tantalum = 2 nos)
    Could you help me to understand about the circuit?

    Reply
    • Swagatam says

      I think that’s an extra capacitor 100uF/6.3V connected across the supply lines to provide improved filtration of the DC and for eliminating any residual ripple current. This capacitor is provided by the manufacturer of the prototype which is not shown in the datasheet diagram.

      Reply

Primary Sidebar

Categories

  • 3-Phase Power (15)
  • 324 IC Circuits (19)
  • 4017 IC Circuits (53)
  • 4060 IC Circuits (25)
  • 555 IC Circuits (98)
  • 741 IC Circuits (19)
  • Amplifiers (58)
  • Arduino Engineering Projects (82)
  • Audio Projects (94)
  • Battery Chargers (82)
  • Car and Motorcycle (94)
  • Datasheets (46)
  • Decorative Lighting (Diwali, Christmas) (33)
  • DIY LED Projects (89)
  • Electronic Components (97)
  • Electronic Devices and Circuit Theory (35)
  • Electronics Tutorial (109)
  • Fish Aquarium (5)
  • Free Energy (35)
  • Fun Projects (11)
  • GSM Projects (9)
  • Health Related (18)
  • Heater Controllers (28)
  • Home Electrical Circuits (101)
  • How to Articles (20)
  • Incubator Related (6)
  • Industrial Electronics (28)
  • Infrared (IR) (40)
  • Inverter Circuits (98)
  • Laser Projects (12)
  • LM317/LM338 (21)
  • LM3915 IC (25)
  • Meters and Testers (63)
  • Mini Projects (171)
  • Motor Controller (66)
  • MPPT (7)
  • Oscillator Circuits (24)
  • PIR (Passive Infrared) (8)
  • Power Electronics (33)
  • Power Supply Circuits (74)
  • Radio Circuits (9)
  • Remote Control (47)
  • Security and Alarm (61)
  • Sensors and Detectors (116)
  • SG3525 IC (5)
  • Simple Circuits (74)
  • SMPS (29)
  • Solar Controllers (61)
  • Timer and Delay Relay (54)
  • TL494 IC (5)
  • Transformerless Power Supply (8)
  • Transmitter Circuits (40)
  • Ultrasonic Projects (14)
  • Water Level Controller (45)

Circuit Calculators

  • AWG to Millimeter Converter
  • Battery Back up Time Calculator
  • Capacitance Reactance Calculator
  • IC 555 Astable Calculator
  • IC 555 Monostable Calculator
  • Inductance Calculator
  • LC Resonance Calculator
  • LM317, LM338, LM396 Calculator
  • Ohm’s Law Calculator
  • Phase Angle Phase Shift Calculator
  • Power Factor (PF) Calculator
  • Reactance Calculator
  • Small Signal Transistor(BJT) and Diode Quick Datasheet
  • Transistor Astable Calculator
  • Transistor base Resistor Calculator
  • Voltage Divider Calculator
  • Wire Current Calculator
  • Zener Diode Calculator

Facebook
Twitter
YouTube
Instagram
My Facebook-Page
Quora

© 2022 · Swagatam Innovations

We use cookies on our website to give you the best experience.
Cookie settingsAccept All
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Please visit the Privacy Policy Page for more info.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT