Lepy LP-2051 Class D/T Amplifier Turn-off Pop Fix Mod

A few years ago I switched my stereo system (I’m using them as computer loudspeakers) to Class D because I was annoyed by the heat the professional (Class AB) amplifiers generate heating up the room (electricity bill aside).

I personally prefer the sound from Tripath amplifiers (started with LP-2020A and LP-2024A), which they called Class-T, but it’s really just Class-D with better PWM feedback mechanism. To drive bigger speakers with stronger bass, I bought a LP-2051 (50W x 2 RMS), which uses TP2150 (200W driver) + TC2001 (Audio Signal Processor) Tripath chips.

However, this amplifier has a very fatal flaw: it has a ridiculous loud turn-off pop! The system has speaker protection relays, so there’s no turn-on pop as expected as speakers are connected 3 seconds after switching on the power.

The turn-off pop bad enough that I was about to toss that in the trash as the amplifier fearing that it might damage by expensive and hard to get ADS vintage speakers. However Class-T chips are no longer produced and the TI Class-D chips for some reason just doesn’t have the clarity in the mid-range and high-frequency range I was looking for in Class-T amps, so I’ve decided to figure it out.

DO NOT TOSS YOUR Lepy LP-2051 Amp because of the loud turn-off pop!
There’s a simple way to fix it if you have a soldering gun, some wires AND a relay (normally open, 5V coil)!

Before I get to the solution, here’s a a few things I figured from observing the board which helped:

  • The power line is 19V (the unit won’t turn on until it reaches 18V, so the acceptable range is 18V~19V)
  • The unit draws around 1/3 of the turn-on power when the power switch is off. The switch is AFTER the power rail smoothing inductor and tank capacitor so they are charged.
  • Turns out the speaker protection relays are hooked straight to the 19V plug input BEFORE the switch (two channel’s relay coils are chained in series, then to the collector of a NPN transistor acting as a switch)
  • The 5V regulated (rightmost pin of 78M05 when viewed from top) is always powered even when the power switch is off.

[Failed] Attempt 1): was to disconnect the left/right speaker wires with 24V external relays switched by the front panel power switch (it’s passing 19V and 19V is enough to activate the relay). The reason is that the power droop faster than the relay disconnect when losing power.

[Mixed success] Attempt 2): I have a big power capacitor 0.12F as external power smoother (initially used to fix huge transient power draw for huge bass transients like drums), which slows down the power droop when the power is switched off enough there’s no power-off pop. However, this solution is very clumsy as reasonably sized 0.022F capacitors won’t slow the power line droop enough to avoid the turn-off pop. This observation gave me the idea that it’s the power-loss detection circuit not reacting fast enough for the system to do the proper ‘shutdown’ procedures (muting the output or disconnecting the speaker wires).

I initially looked into expediting disconnecting speaker protection relay when the power switch goes to off position, but realized it’s already done in the transistor switch logic (cascaded NPN stages) that controls the speaker protection relay as I trace the circuits.

I started looking up the datasheet looking for built-in mechanism in the IC that mutes the amplifier as I switch the unit off (the unit is partially powered once the DC plug is in). Turns out there is: the mute pin is on TC2001’s pin 24 (MUTE):

TC2001, pin 24 is the mute pin (it’s active, aka mute, on high)
TC2001 Mute (Pin 24) has internal pull-up resistor

I tried flying pin 24 to the 5V regulated output (on 78M05) and it muted as expected. I didn’t really bother to check, but when I take out the jumper wire, it’s unmuted as expected (which contradicts with the datasheet description that floating is considered high/mute, so I assumed there’s other logic driving it low by default)

[Failed] Attempt 3): Use a NPN transistor like 2N9304 (and a potential divider to tap the 19V logic to 4.5V) to drive the mute pin (TC2001 pin 24) high (which means muted) when I power the unit off. The turn-off pop is still there because it turns out that there’s a 200ms delay for the mute pin:

So now the goal is to have mute activated (set to high) FIRST a little before the 19V power line gets disconnected. The timing order for turning on does not matter because the speakers aren’t going to be connected until after 2.5 seconds once it’s hooked up to the 19V source, it doesn’t matter what’s the logic transient logic level of the mute pin (it’s going to be NOT connected to the 5V when the SPDT power switch is ON steady).

Realizing that there the power switch acts the fastest, then the mute pin, with relay actuation being the slowest, and the power switch that came with the unit is a SPDT, I don’t even have to implement a timer to delay disconnecting the 19V line before it finishes muting. Here’s the winning solution:

I accidentally wrote 18V rail voltage instead of 19V. The unit works anywhere from 18V to 19V, so you get the idea that I meant the same thing.

I happen to have a Fujitsu/Takashimaya JY5H-K5VDC reed relay which happens to be a NO (Normally Open switch) which happens to fit the design like a glove. Here’s a picture for the experimental (working) hook up that the turn-off pop is completely gone:

On the board, there’s actually a reserved spot for a on-board jumper in place of the supplied/installed SPDT switch. Those are the two red wires rerouted to the relay switch.
(FYI, the bottom node goes to 19V of the DC jack, the top node goes to the rest of the 19V circuit)
The 5V line is the green wire. Goes to the common/middle pin to be switched by the SPDT switch.
The mute pin (pin 24) is the brown wire. Goes to the furthers/longest pin of the switch
Ground is the black wire. Goes to any one side of the relay coil
The shortest pin of the switch goes to the other side of relay coil. I soldered it directly to the relay pin

Completed mod after cleanup:

Overview

There’s a few cleanup that I did:

  • I hot glued the relay on the two hard switches as they are not near any heat sources and mechanically stable
  • I stole the ground (going to the coil) from the nearby C5’s ground pad (C5 is the moderately big 470uF SMD cap nearby).
  • The old right-angled hard switch’s pins were lifted from the board by bending the pins straight.
  • The utmost pin/pad (leftmost, closest to the power plug) for the switch is not connected anywhere else on the board. It was a dummy as the SPDT switch was only used as a SPST switch. Good for me so I can solder one of the 3 pins there for mechanical support (otherwise we’ll twist the front two dummy solder joints for mechanical stability when we toggle the lever repeatedly). I chose to bend the middle pin to solder it to the board because the other two are either too far out or too short.
  • In summary, furthest SPDT switch pin goes to mute pin, the middle is the 5V regulated rail to be switched between the mute pin or the relay coil. The shortest SPDT switch pin goes to the coil. The rest are obvious

Here’s the finished mod with different angle shots for you to see the wiring:

Given the amp itself is cheap (but it’s really an excellent bang for the buck: clear sound, solid bass, class-D efficiency, small size and light weight), those who are not that electrically savvy might not be inclined to do that mod. If you are going to throw it away anyway, please send it to me (I’ll pay for postage).

It’s a very very simple mod that any beginner electronic hobbyists or an electronics student might be willing to do it for you with the instructions here for a small fee. Basically it’s just some wires and a relay and some good solder wick (or if you have a nice desoldering pump, it works fine too).

I typically don’t take petty service orders (under <$500), because of all the hassles shipping back and forth, opening it up, putting it back, and keeping records for the IRS, plus the liability risks. So please find a kiddo, hobbyist or tech to do it.

Loading

System Engineers’ tip to HKCEE/HKALE Math and Physics

Shortly after I’ve graduated with Mathematics and Electrical (and Computer) Engineering degrees, I realized a few supposedly difficult topics in Hong Kong’s Mathematics and Physics (Electric Circuits) curriculum was taught in unnecessarily painful ways.

Here’s an article I’ve written to show that it is less work to teach secondary (high) school students a few easy-to-learn university math topics first than teaching them dumb and clumsy derivations/approaches to avoid the pre-requisitesHKDSE EE Tips

Here are the outline of the article

  • Complex numbers with Euler Formula
  • Trigonometric identities can be derived effortlessly using complex number than tricky geometric proofs
  • Inverting matrices using Gaussian elimination instead of messing with cofactors and determinants
  • Proper concepts of circuit analysis and shortcuts
  • Solving AC circuits in a breeze with complex numbers instead of remembering stupid rules like ELI and ICE rules and messy trigonometric identities.

Loading

The most important invariants in basic electronics

The two basic laws in circuit analysis, Kirchhoffs Voltage and Current Laws,

  1. [KVL] Voltage across the same pair of points is the same no matter what paths you take
  2. [KCL] Current stay the same along the same path

are often taught in basic circuit analysis, but most of the time, they taught it in the context of nodal analysis, which you have a little more complicated meshes with multiple theoretical power source (voltage or current) that simple series/parallel circuit rules are not enough to solve the puzzle.

However, these two fundamental concepts are useful to develop insights that help you estimate quantities in a circuit quickly like a pro.


Kirchhoffs Voltage Law [KVL] can be applied to a parallel circuit of 2 branches (often the case when measuring additional loading effect). Let say the two branches are applied (loaded) at a voltage output V_0, which V_0 might change depending on the branches (loading).

    \[V_0 = I_1 R_1 = I_2 R_2\]

You can exploit the algebra to quickly calculate the current of any branch without first computing the overall resistance or current:

    \[I_1 = I_2 \frac{R_2}{R_1}\]


Kirchhoffs Current Law [KCL] is useful in analyzing energy loss over resistance in wires R. For example, in high school physics, we discuss why we have high voltage power lines for bulk energy transmission despite it’s more dangerous. The traditional explanation is

    \[P_{wire loss} = I^2 R_{wires}\]

so the lower the current is (which can be done through stepping up the voltage, traditionally done with AC signal through transformers, to maintain the same power). But how about other form

    \[P = \frac{V^2}{R}\]

Technically, it’s possible, but you have to be very careful that the voltage we are talking about is across the wire with resistive losses V_{wire}, NOT the load voltage V_{load}.

    \[P_{wire loss} = \frac{V_{wire}^2}{R_{wire}}\]

V_{wire} changes depending on the output load R_{load}, so you have to derive the assuming an arbitrary R_{load}, which will happen to cancel itself out and end up the same as if you think of everything in terms of current first:

    \[P_{wire loss} = I^2 R_{wires}\]


So the bottom line is that most of the time, it is easier to think in terms of current in most circuit analysis because current won’t change along the same path. This is especially true when your problem has varying impedances/load which will disturb the voltage.

Of course, if the problem screams direct application using KVL, don’t go all the way converting it back to current. You will find the current-first approach useful when we get to semiconductors like diode, voltage references, BJTs,.

I usually think of voltage as a consequence or effect of current flushing into a transducer (e.g. resistor), so it’s subjected to change and therefore messy to use when solving circuit puzzles. Solving circuit analysis problems are often an exercise of identifying invariants and inferring the remaining quantities.

Loading

FREE oscilloscopes for innovators in response to #ChinaVirus #CCPvirus

https://www.humgar.com/CCPvirus-Urgent-Innovation-Response/

In the time of national emergency against the Chinese Communist Party Virus, or #CCPvirus in short, we are glad to offer FREE basic 100Mhz oscilloscopes (or mixed-signal oscilloscopes) to makers and engineers in the US who are stepping up with innovations to help.

Example include:

  • Simple ventilators that can be built quickly within US (https://www.agorize.com/en/challenges/code-life-challenge)
  • Robots that reduce direct human interaction with the infected patients
  • Machines that sanitize the contaminated environment quickly and efficiently
  • Any innovation you can come up with to help the front-line medical staff, produce the medical supplies we need, improve the logistics, and means to slow the spread.

Just send me (to wonghoi@humgar.com)

  • a project description
  • why you need the oscilloscope
  • whether you need the logic analyzer function (mixed-signal)
  • does your project require fancy oscilloscope features like FFT, calculus, phase difference, deep memory, talking to the PC
  • your name, address and phone number for shipping

and I’ll make the arrangements immediately.

Currently available models (subject to availability)

  • HP 54645A
  • HP 54645D
  • Agilent 54622D (Mixed-Signal)
  • HP 6632B Systems Power Supply (20V, 5A, Fast recovery)

These models has a no-brainer learning curve for any motivated maker/engineer who are up to the game innovating something serious. Time is ticking. We want you to use the oscilloscope right away! Higher bandwidth oscilloscopes are available as loaner if your project justifies it.

It’s on an honor system. Please don’t abuse the program so the innovators who genuinely need the oscilloscope will have what they need!

We thank all the innovators who contribute their time and effort in response to the CCP virus outbreak!

Stay safe, wash your hands, and stay home whenever practical.
Save lives by slowing the spread within our medical system’s capacity.

Loading

Shortest Explanation to NAND SR-flip-flop

When I was in high school studying electronics on my own as a hobby (it was not taught in the curriculum. No, physics people culturally hates electronics, they consider it a chore.), I followed the logic states of the bistable (two NAND gates) meticulously. However, it was tedious and hard to remember correctly.

There’s a fast way to reconstruct the explanation from scratch. You’ll need these invariants:

  • ‘1’ is ‘let the other input decide’ in AND logic (1 & A = A)
  • ‘0’ is ‘action‘ in AND logic, namely clear (0 & A = 0)
  • NAND is practically a NOT gate if you tie the inputs together
  • Two NOT gates chasing each other generates Q’ and Q
  • NAND gates provides a mean for external inputs to disturb the chasing NOT gates

By leaving external inputs (S and R) at ‘1’, we are letting the state pins decide, behaving like the two chasing NOT gates.

The only way to disturb the state is to create a ‘0’ (clear) action. The circuit is symmetric, so ‘S’ and ‘R’ is arbitrary as long as you are willing to switch the roles of Q and Q’.

  • Set Q to ‘0’ by sending a ‘0’ (clear action) through ‘S’
  • Set Q’ to ‘0’ by sending a ‘0’ (clear action) through ‘R’

There are no other valid actions in this configuration.


Side note: persisting the clear action will lead to 0 & 0 = 0 at the applied input and 1 & 1 = 1 at opposite NAND gate, which the achieved state remains. Normally we want to return the external inputs back to 1 to receive future commands (actions) correctly, both external inputs asserting low is invalid.

It’s more natural to have S and R being active high in transistor’s implementation. NAND’s ‘S’ and ‘R’ are active low (so technically, I should use S’ and R’ instead, but I’m following the more common nomenclature for the moment for the NAND gate implementation).

Loading