Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Passthrough charging-simple but impossible to achieve?

Status
Not open for further replies.

Spartacus1917

New Member
Hello all, newbie diy enthusiast at the end of my tether looking for friendly advice!
I have a portable bluetooth speaker which runs off batteries but if the batteries die, will continue to run and charge simultaneously (albeit the charging is slower in that state) off a dc power supply.
I'm building myself a bigger version from scratch using bt amp board and want to power it with an array of 18650 batteries to give me about 19v and 8A peak which can run off a dc supply if the batteries are low and charge the pack somewhat in this mode.
It's such a common feature of commercial portable equipment but for the life of me I can't find a board that will do this.
Any hints or tips will be gratefully appreciated!
 
You probably can't find a board because it's not a trivial task - charging Li-Ion has to be done under fairly exacting conditions, and it's very difficult to try and maintain that while you're drawing varying amounts of current from the batteries themselves.

Best solution is to run the amplifier and charger parts separately - so when plugged in the mains the amp runs solely from the mains, which also provides separate charging current for the batteries. This keeps the batteries on charge, and doing nothing else.
 
This is how I do it:

The power feed is routed around the charge control and battery using appropriately rated diodes, whilst external power is connected.

As that voltage is higher than the battery voltage, the output diode from the battery is reverse biased and does not conduct.

This diagram includes the charge circuit, which is only about 1A in my case. D1, D2 & D3 are the power routing diodes, you can use an appropriate charge controller for your battery pack.

Note that any pack using series connected lithium cells must use a balance controller, otherwise cells may burst or catch fire. I have a combined balance and protection board as part of the pack I use with this.

The overall charge voltage and current limit must also be precisely controlled.

[An alternative I used for something is a detachable power tool battery with a separate charger - just swap batteries & you can have more than one available].


Schematic_Charger_2022-05-19.png
 
Hi Mike, it's a 2x100w amp but they are usually overrated and need the full 24v and the right speakers
Is it a 'real' 2x100w amplifier, as many (most?) give wildly exaggerated imaginary specifications.

Does it have an inverter to increase the supply voltage?, with only 24V and 4 ohm speakers, maximum power is only 16W per channel, or 32W per channel if it's a bridged amplifier.
 
With a 24V supply, a modern bridged class-D switching amplifier (TPA3116) can produce 60W into 4 ohms per channel with 1% distortion or 72 Whats with 10 % distortion. Momentary Peak or Max power is simply double that.
EDIT: Bridging almost double the output voltage swing plus almost doubles the output current swing.
 
If you want to charge Lithium Ion batteries, do it safely. I did not evaluate rjenkinsgb 's circuit in post #3, and it might be perfectly safe.

Because batteries that are prone to problems (like catching fire or exploding) if not charged correctly I would consider an integrated charge controller from a company I trust, this Power Integrations controller, for example.

1653151068028.png
 

Attachments

  • CHY103X_PI.PDF
    1 MB · Views: 299
Thank you, I'm only capable of assembling ready made consumer boards but I will look out for one with the CHY103 chip.
The amp is a tpa3116 which does seem to be pushing out lots of power from a mains dc20v 4.5A supply. I'm thinking of trying to hook up already made power bank and boosting the 5v output.
 
With a 20V supply, a TPA3116 amplifier produces 40W per channel with low distortion into 4 ohms or 22W into 8 ohms.
 
Thank you, I'm only capable of assembling ready made consumer boards but I will look out for one with the CHY103 chip.

I think you'll struggle finding one, as such modules don't often mention what they use - and I don't recall seeing any higher voltage Li-Ion charger modules for sale?.

The amp is a tpa3116 which does seem to be pushing out lots of power from a mains dc20v 4.5A supply. I'm thinking of trying to hook up already made power bank and boosting the 5v output.

Bear in mind, as volts increase so do amps - so to get 20V at 4.5A would require 5V at 18A, assuming 100% efficiency. And as the Li-Ion batteries are only about 4V, that increases to 22.5A
 
only capable of assembling ready made consumer boards
Unfortunately, I doubt you will find any off-the-shelf "charge while running" combinations.

The charge controller needs to be "inside" the diode bypass circuit to achieve safe charge while operating functionality.

ps. Note that there are a number of supposed "Charge controller" boards or modules with relays, which are completely mis-described by the sellers - just under/over voltage disconnect units listed as charge controllers. These will not properly or safely charge any type of battery.

A couple of 18V (or 20V, same thing by different sellers) power tool batteries and a charger are likely the simplest practical solution, so you can use one battery while the other charges.

You can get connector adapters for several common makes to use them with other equipment.
 
Bear in mind, as volts increase so do amps - so to get 20V at 4.5A would require 5V at 18A, assuming 100% efficiency. And as the Li-Ion batteries are only about 4V, that increases to 22.5A
So that's quite a challenge as they only push out 2A at 5v. Back to the drawing board, or separating the power and charge function completely as you suggested
 
Big difference from the quoted rating!
It's VERY, VERY simple - potential output power is set by the available supply voltage, and the impedance of the speaker - power is simply voltage squared divided by impedance.

So for a 20V supply the maximum output swing can (theoretically) only be 20V P-P, which gives 7.07V RMS - that squared is 50V. Then simply divide that by the speaker impedance - 8 ohms 6.25W, 4 ohms 12.5W and 2 ohms 25W.

By bridging two amplifiers (which is built-in the chip) you can effectively double the voltage - this gives twice the power in twice the impedance - 'effectively' each amplifier feeds one half of the speaker - so one half of your 8 ohm speakers (4 ohm) receives 12.5W from one amplifier, the other half receives 12.5W from the other amplifier. Giving a total of 25W in 8 ohms, while each amplifier effectively thinks it's feeding 4 ohms.

So this gives 25W in 8 ohms, 50W in 4 ohms - and would give 100W in 2 ohms, IF the amplifiers could feed 1 ohm loads - which it can't, and if it could, then it could provide 50W in 1 ohm for single amplifiers.

The total power in all cases is the same, you don't get more power by bridging - you just get more power in a SINGLE HIGHER IMPEDANCE LOAD.

Bear in mind, this is imaginary theory, in practice you can't get 20V output from a 20V supply, so it will always be a fair amount less - nothing is 100% efficient. 'Generally' it's a reasonable idea to knock a couple of volts off the available output voltage, or measure it, if you want accurate results.
 
The sellers in the country on the other side of the world cannot read the English datasheet so they lie about output power.
Amazon sells a Bluetooth plus TPA3116 IC amplifier made by Damgoo. With a 24V supply and 4 ohm speakers it is rated for 100W + 100W. No mention of distortion then half of the 100W per channel is severe distortion.
 

Attachments

  • 200W amplifier.png
    200W amplifier.png
    18.3 KB · Views: 244
Really appreciate the posts I've learnt a lot here. Can I ask for views on abandoning lithium and going for a traditional sealed lead acid or gel battery? Similar application to a car or motorbike with an alternator? I probably want to generate about 100w realistically to the amplifier.
 
I'm also assuming that commercially produced bluetooth speakers that operate from mains DC adapter or internal Li batteries have been rigorously engineered and tested for safety reasons
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top