Announcement

Collapse
No announcement yet.

Improving sound quality from computer

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Improving sound quality from computer

    The sound from my computer's built-in amplifier (based on a TDA1515BQ) is really lousy. The frequency response chart is the output from the amp with no load.

    I figured out how to take care of the bass boost, but I don't know where the dip at 300Hz or the peak at about 18KHz come from. My crappy speakers need a bass boost, but not at such a high frequency.

    I have a partial schematic that I can post later, but it is impossible to make a full schematic on a multilayer board. For now, you can make fun of the horrible frequency response. I didn't know RightMark had a "very poor" rating.
    Attached Files

    #2
    Re: Improving sound quality from computer

    I wonder how that response would look with, say, a 4 or 8ohm dummy-load resistor...
    Khron's Cave - Electronics - Audio - Teardowns - Mods - Repairs - Projects - Music - Rants - Shenanigans

    Comment


      #3
      Re: Improving sound quality from computer

      Perfect example of why I use the digital-out leading to my surround receiver.

      Comment


        #4
        Re: Improving sound quality from computer

        Is there tone control on the audio setup windows? It looks like the Bass and Treble are turn way up.
        https://cdn.badcaps-static.com/pdfs/...e680f5e653.pdf
        Never stop learning
        Basic LCD TV and Monitor troubleshooting guides.
        http://www.badcaps.net/forum/showthr...956#post305956

        Voltage Regulator (LDO) testing:
        http://www.badcaps.net/forum/showthr...999#post300999

        Inverter testing using old CFL:
        http://www.badcaps.net/forum/showthr...er+testing+cfl

        Tear down pictures : Hit the ">" Show Albums and stories" on the left side
        http://s807.photobucket.com/user/budm/library/

        TV Factory reset codes listing:
        http://www.badcaps.net/forum/showthread.php?t=24809

        Comment


          #5
          Re: Improving sound quality from computer

          There are no tone controls, but there is a 3D audio effect that is turned off. The headphone output has flat frequency response.

          I'll work on this a little over the weekend. I'll post what I have of the schematic then. I think I'll also check the frequency response of the op-amp circuit between this amp and the audio chip. So far, I can't tell what the circuit is supposed to do. There is a big mess of resistors and caps, and it appears that the output of the 9V regulator powering the op-amp is capacitor coupled to the input of the op-amp. After trying to trace the circuit, I feel like ripping it all out and replacing it with a simple amplifier.

          Comment


            #6
            Re: Improving sound quality from computer

            Looks like it's dominated by AC hum!
            Last edited by RJARRRPCGP; 11-13-2013, 08:31 PM.
            ASRock B550 PG Velocita

            Ryzen 9 "Vermeer" 5900X

            32 GB G.Skill RipJaws V F4-3200C16D-32GVR

            Arc A770 16 GB

            eVGA Supernova G3 750W

            Western Digital Black SN850 1TB NVMe SSD

            Alienware AW3423DWF OLED




            "¡Me encanta "Me Encanta o Enlistarlo con Hilary Farr!" -Mí mismo

            "There's nothing more unattractive than a chick smoking a cigarette" -Topcat

            "Today's lesson in pissivity comes in the form of a ziplock baggie full of GPU extension brackets & hardware that for the last ~3 years have been on my bench, always in my way, getting moved around constantly....and yesterday I found myself in need of them....and the bastards are now nowhere to be found! Motherfracker!!" -Topcat

            "did I see a chair fly? I think I did! Time for popcorn!" -ratdude747

            Comment


              #7
              Re: Improving sound quality from computer

              What kind of software/hardware for the tool you are using to check freq. response? It looks interesting.
              Never stop learning
              Basic LCD TV and Monitor troubleshooting guides.
              http://www.badcaps.net/forum/showthr...956#post305956

              Voltage Regulator (LDO) testing:
              http://www.badcaps.net/forum/showthr...999#post300999

              Inverter testing using old CFL:
              http://www.badcaps.net/forum/showthr...er+testing+cfl

              Tear down pictures : Hit the ">" Show Albums and stories" on the left side
              http://s807.photobucket.com/user/budm/library/

              TV Factory reset codes listing:
              http://www.badcaps.net/forum/showthread.php?t=24809

              Comment


                #8
                Re: Improving sound quality from computer

                Originally posted by RJARRRPCGP View Post
                Looks like it's dominated by AC hum!
                That wouldn't be 150Hz. That is caused by the design of the feedback network for the amp, which resembles this:

                Increasing the capacitance moves that big peak to a lower frequency, but that also makes the dip at 300Hz worse.
                Originally posted by budm View Post
                What kind of software/hardware for the tool you are using to check freq. response? It looks interesting.
                RightMark Audio Analyzer
                http://audio.rightmark.org/index_new.shtml
                I don't have access to professional equipment, but that is good for a free program.

                Comment


                  #9
                  Re: Improving sound quality from computer

                  Originally posted by lti View Post
                  That wouldn't be 150Hz.
                  Looked like it was right around 125 Hz.
                  I can't 100 percent tell with that graph.
                  Last edited by RJARRRPCGP; 11-13-2013, 10:26 PM.
                  ASRock B550 PG Velocita

                  Ryzen 9 "Vermeer" 5900X

                  32 GB G.Skill RipJaws V F4-3200C16D-32GVR

                  Arc A770 16 GB

                  eVGA Supernova G3 750W

                  Western Digital Black SN850 1TB NVMe SSD

                  Alienware AW3423DWF OLED




                  "¡Me encanta "Me Encanta o Enlistarlo con Hilary Farr!" -Mí mismo

                  "There's nothing more unattractive than a chick smoking a cigarette" -Topcat

                  "Today's lesson in pissivity comes in the form of a ziplock baggie full of GPU extension brackets & hardware that for the last ~3 years have been on my bench, always in my way, getting moved around constantly....and yesterday I found myself in need of them....and the bastards are now nowhere to be found! Motherfracker!!" -Topcat

                  "did I see a chair fly? I think I did! Time for popcorn!" -ratdude747

                  Comment


                    #10
                    Re: Improving sound quality from computer

                    I would like to see the graph with load (8 Ohms) connected. to get peak response like that has to two resonance happening. Simple RC filter as shown is just a low pass filter circuit, the higher the frequency, the less output you will get due to XC goes down and give more negative feedback. There must be something else in the circuits that causes the resonance to be happening. Are there ZOBEL network at the output of the amplifier?

                    http://sound.westhost.com/amp_design.htm
                    Last edited by budm; 11-13-2013, 11:54 PM.
                    Never stop learning
                    Basic LCD TV and Monitor troubleshooting guides.
                    http://www.badcaps.net/forum/showthr...956#post305956

                    Voltage Regulator (LDO) testing:
                    http://www.badcaps.net/forum/showthr...999#post300999

                    Inverter testing using old CFL:
                    http://www.badcaps.net/forum/showthr...er+testing+cfl

                    Tear down pictures : Hit the ">" Show Albums and stories" on the left side
                    http://s807.photobucket.com/user/budm/library/

                    TV Factory reset codes listing:
                    http://www.badcaps.net/forum/showthread.php?t=24809

                    Comment


                      #11
                      Re: Improving sound quality from computer

                      Originally posted by RJARRRPCGP View Post
                      Looked like it was right around 125 Hz.
                      I can't 100 percent tell with that graph.
                      It is kind of hard to tell with the logarithmic scale.
                      Originally posted by budm View Post
                      I would like to see the graph with load (8 Ohms) connected. to get peak response like that has to two resonance happening. Simple RC filter as shown is just a low pass filter circuit, the higher the frequency, the less output you will get due to XC goes down and give more negative feedback. There must be something else in the circuits that causes the resonance to be happening. Are there ZOBEL network at the output of the amplifier?

                      http://sound.westhost.com/amp_design.htm
                      It does have the Zobel network, and it appears to use the same component values as the circuit in the datasheet (4.7 ohm resistor and 0.1uF cap). The caps are surface mount ceramics, so they don't have any markings. I don't have any resistors that I can use as a load, but I could connect the speakers. It's difficult to connect everything since the output of this amp goes through a 3.5mm jack.

                      Comment


                        #12
                        Re: Improving sound quality from computer

                        With a load connected, the frequency response doesn't change much. Also, the input to the amp (the second graph - only the left channel is actually shown here) looks similar.

                        I'm guessing that the circuit was designed for the computer's optional internal speakers or the monitor-mounted speakers that were available for Compaq's monitors at the time. However, the amp circuit has already been modified because the original circuit had almost no output.
                        Attached Files

                        Comment


                          #13
                          Re: Improving sound quality from computer

                          So the signal generator output sweep signal looks like that also? Also, the signal is measured right at the + or the - input of the amp? Should measure at the left side of the resistor feeding the input.
                          Last edited by budm; 11-14-2013, 04:56 PM.
                          Never stop learning
                          Basic LCD TV and Monitor troubleshooting guides.
                          http://www.badcaps.net/forum/showthr...956#post305956

                          Voltage Regulator (LDO) testing:
                          http://www.badcaps.net/forum/showthr...999#post300999

                          Inverter testing using old CFL:
                          http://www.badcaps.net/forum/showthr...er+testing+cfl

                          Tear down pictures : Hit the ">" Show Albums and stories" on the left side
                          http://s807.photobucket.com/user/budm/library/

                          TV Factory reset codes listing:
                          http://www.badcaps.net/forum/showthread.php?t=24809

                          Comment


                            #14
                            Re: Improving sound quality from computer

                            That was measured at pin 1 of the amp, which appears to be the inverting input. The test signal has perfectly flat frequency response. The op-amp circuit between the audio chip's output and the amp is the problem, and it's a huge mess. I don't know how it works at all.

                            Comment


                              #15
                              Re: Improving sound quality from computer

                              So you're blaming your on-board audio hardware for the lousy sound, but you have admittedly "crappy" speakers that need compensations to their frequency response?

                              Perhaps your speakers could be blamed for a multitude of sins that could be rectified by replacing them or improving them. (I'd op for improving them, but I l'm a glutton for punishment. read that DIY'er.)
                              Presonus Audiobox USB, Schiit Magni 3, Sony MDR-V700

                              Comment


                                #16
                                Re: Improving sound quality from computer

                                The speakers aren't that bad, but the bass is weak for their size. This project started as an attempt to move the amp's bass boost to a lower frequency where it would help. That is really all I wanted, but that dip in frequency response at 300Hz gets worse if I do that. That dip isn't actually audible to me, but it might become audible if I try to modify the circuit.

                                I have actually found a mistake in the circuit. The original circuit design had pins 2, 3, and 12 of the chip shorted together, and everything that should connect to pin 2 was connected to pin 12 instead. I had to add the 100K ohm resistors shown in the datasheet circuit between those three pins to get any audio out of it at all, but I still needed pins 2 and 12 shorted. I don't think that will cause any problems, but I might try fixing that.

                                Comment


                                  #17
                                  Re: Improving sound quality from computer

                                  "The original circuit design had pins 2, 3, and 12 of the chip shorted together, and everything that should connect to pin 2 was connected to pin 12 instead." Are you talking about the power amp chip?
                                  Never stop learning
                                  Basic LCD TV and Monitor troubleshooting guides.
                                  http://www.badcaps.net/forum/showthr...956#post305956

                                  Voltage Regulator (LDO) testing:
                                  http://www.badcaps.net/forum/showthr...999#post300999

                                  Inverter testing using old CFL:
                                  http://www.badcaps.net/forum/showthr...er+testing+cfl

                                  Tear down pictures : Hit the ">" Show Albums and stories" on the left side
                                  http://s807.photobucket.com/user/budm/library/

                                  TV Factory reset codes listing:
                                  http://www.badcaps.net/forum/showthread.php?t=24809

                                  Comment


                                    #18
                                    Re: Improving sound quality from computer

                                    Originally posted by lti View Post
                                    With a load connected, the frequency response doesn't change much. Also, the input to the amp (the second graph - only the left channel is actually shown here) looks similar.

                                    I'm guessing that the circuit was designed for the computer's optional internal speakers or the monitor-mounted speakers that were available for Compaq's monitors at the time. However, the amp circuit has already been modified because the original circuit had almost no output.
                                    My thoughts would be to use a better DAC as the next step.

                                    As long as you don't distort the amplifier, then it will sound better. I think you probably know that though xD
                                    That, however, might not provide enough volume, so you might need a bigger amplifier. Also, the amp might be put in overdrive, like the typical LM326 chip circuits with a gain of 200....
                                    Muh-soggy-knee

                                    Comment


                                      #19
                                      Re: Improving sound quality from computer

                                      Originally posted by budm View Post
                                      "The original circuit design had pins 2, 3, and 12 of the chip shorted together, and everything that should connect to pin 2 was connected to pin 12 instead." Are you talking about the power amp chip?
                                      Yes, I am talking about the TDA1515BQ.
                                      Originally posted by ben7 View Post
                                      My thoughts would be to use a better DAC as the next step.
                                      There is no external DAC that I can replace. The audio chip outputs analog audio. Also, the headphone output sounds good. I wonder what the frequency response directly from the sound chip or from the output pin of the op-amp would look like.
                                      Originally posted by ben7 View Post
                                      As long as you don't distort the amplifier, then it will sound better. I think you probably know that though xD
                                      That, however, might not provide enough volume, so you might need a bigger amplifier. Also, the amp might be put in overdrive, like the typical LM326 chip circuits with a gain of 200....
                                      http://www.youtube.com/watch?v=_Dvwd8Hyh-Y
                                      Making the frequency response look a little more normal will improve the sound quality. I never noticed any of the weird stuff except the huge peak at low frequencies.

                                      Comment


                                        #20
                                        Re: Improving sound quality from computer

                                        Here are some more charts.

                                        On the first one, the white line is the output measured directly at the sound chip. It jumps around a lot because it was taken at a really low volume and contains a lot of noise. The green line is measured directly at the output pin of the op-amp leading to the TDA1515BQ amp. The second image is the frequency response of the headphone output with no load. This is driven by a TDA1308 clone.

                                        There is a big string of crap between the op-amp and the speaker amp, and the circuit for each channel is completely different. I think I just need to start over and design a new audio distribution circuit.
                                        Attached Files

                                        Comment

                                        Working...
                                        X