PDA

View Full Version : Battery power back-uped circuit



flotulopex
- 18th May 2020, 12:33
Hello All,

I'm making GSM alarm controller using a SIM800L GSM chip from SIMCOM (https://simcom.ee/modules/gsm-gprs/sim800/).

Since the project is about "monitoring" and "alarming", it is important ton ensure a redundant power feeding (= LiPo battery).

The module supports 3.4 to 4.4 VDC and I would imagine to go for 4VDC (my imagination - will depend on circuit design). For info, this chip draws up to 2 Amps when bursts occur (!) but draws around 40mA in idle state.

I've read some threats about "oring" DC power sources (with Schottky diodes or so) but here I don't know how to achieve a correct circuit since I'll be using a rechargeable battery (not like a battery for an RTC).

My points are:
- is the schema here under or something looking like "possible" at all?
- the LiPo 3.7V cell will need to be charged (or not!) after a +/- long main voltage supply (i.e. 12VDC) supply but how is it possible since it is connected in parallel with another circuit
- if there is already something "out there", can anyone point me to a link please?

Thanks for any info ;)

8855

richard
- 18th May 2020, 12:46
if you charge lipo batteries incorrectly there is a substantial fire risk, drawing power from the charging cct can lead to improper charging.
you might like this
http://ww1.microchip.com/downloads/en/AppNotes/01149c.pdf

flotulopex
- 18th May 2020, 12:55
Thanks Richard,

That was really quick!!! ;)

Yup, I think this is exactly what I'm looking for.

I should have thought about these chips since I sometimes use MCP73831 ones.

Thanks a lot again :)

sayzer
- 18th May 2020, 15:08
if you charge lipo batteries incorrectly there is a substantial fire risk, drawing power from the charging cct can lead to improper charging.
you might like this....


As Richard pointed out risk of fire, you may want to consider Li-fepo4 batteries.
Almost no risk of fire under high heat, short circuit or over charging ...

But they are 3.2 Volts.

flotulopex
- 18th May 2020, 20:00
Thanks Sayser,

Unfortunately, 3.2V will be too low - anyway, thanks for the Li-FePo4 advice ;)

8857
BTW, going back to AN1149 and the choice of the P-Channel MOSFET, as I don't know if a FDN360P (https://www.distrelec.ch/Web/Downloads/_t/ds/fdn360p_eng_tds.pdf?pid=${product.code}) will do the job?
8858
Any clue?

sayzer
- 18th May 2020, 20:23
Consider this one: DMP3099L-7

I have my own charging circuit controlled by PIC with FVR.
Measure batt voltage by adc read on FVR to calculate the batt voltage.
If over 4.25V then cut the charge; if lower than 2.75V then suspend all operations.
All done within the pic.

You need an ppnTR-P-ch charging circuit; very simple.

Ioannis
- 19th May 2020, 09:10
FVR is not at all accurate, so that 4.25... I doubt you are safe.

Ioannis

Ioannis
- 19th May 2020, 09:17
Roger, the minus Vgth is correct. Consider it a different visual angle!

In P-channel or PNP transistor the voltages are the opposite of the N-channel or NPN transistors. Means that the voltage og the gate in respect to the source is negative. The key to understand here is the term "in respect".

Ioannis

flotulopex
- 19th May 2020, 09:30
If I may ask further,

The "most important" value to take care off is the "Gate Threshold Voltage"; right?

It has to be as low as possible...but how low and why?

8859

I thought RDSon value is very important too. But in this case, where the current is somehow small, is this less important in choosing the "right" MOSFET?

sayzer
- 19th May 2020, 10:01
FVR is not at accurate, so that 4.25... I doubt you are safe.

Ioannis



Why is not not accurate?
I get 1.024V with 1x output.
And if the Vdd is 2,5V I still have 1.024V at my FVR output. I never encountered an accuracy issue.

But, if you have a high freq circuity on the same pcb, or even if your PWM module is running, then I agree, FVR can be disrupted.
Also, here is a simple circuit diagram for NPN-PCH charging. Assuming you are not charging the batt with high amps, LM317 would do the job. If not, change LM317 to a switching circuit to have higher efficiency and lower heat.


8860

Ioannis
- 19th May 2020, 10:18
Because according to Electrical Specs, the FVR may be from -8% to +6% for example on 16F1827.

I would not trust this to charge a LiPo battery at all!

Ioannis

Ioannis
- 19th May 2020, 10:24
Roger,

The important specs is dependent on the application.

For example, if you drive the MosFet from a logic level chip, say a MCU, then you want the Vgs to be as low as possible for the MosFet to be fully closed and have minimum Rdson

Other spec like the circuit on the above Note, is the Rds itself, so you don't have thermal losses.

Also the Vds max should be more than the worst case on your circuit voltage levels.

Ioannis

flotulopex
- 19th May 2020, 10:43
Roger,
The important specs is dependent on the application.....
Ioannis

Thanks Ioannis.

I'll give it a try with a few different MOSFETs and see what happens.

For any reason, until I haven't tested it with my "hands" (and the voltmeter :biggrin:), it doesn't get inside my head that easy.

Maybe I'm getting too old to play with all these fantastic toys :rolleyes:

Ioannis
- 19th May 2020, 12:12
Experience is gained only in action!

Ioannis

sayzer
- 19th May 2020, 14:14
Experience is gained only in action!

Ioannis

This statement is giving me naughty thoughts :D

Ioannis
- 19th May 2020, 20:00
You got yourself 2 points so far with naughty thoughts! :wink:

Ioannis

Acetronics2
- 25th May 2020, 12:48
Hello, Flotul,

LiPo batts are somewhat tricky to use ...

I suggest you to use something called " BMS " with your battery ... it's a device that cares with every problem that could occur : Overchage, under voltage, load shorted ...

that can avoid fire or exploding the battery ... not negligible !

https://www.nkon.nl/fr/accessories/1s-bms-2mos-5530.html for example ...

Alain

flotulopex
- 1st June 2020, 19:19
Hi Alain,

I thought these BMS circuits were already interated in the batteries?

When I look to one of my LiPo battery, I can see some kind of a circuit at the top of it.

I might be wrong, but I think this is a protection circuit (difficult to see okay, but believe me, there is a small circuit here :biggrin:) or isn't it?

8884

Acetronics2
- 2nd June 2020, 11:21
Hi, Flotul,

Those BMS are not always installed ...

I have dozens of LiPo / LiFe batts home and only one has it included ... so, consider it's not mandatory !!!

sometimes, there's only a fuse !!!

Alain

richard
- 2nd June 2020, 11:41
my experience to date is that the bms is far more likely to fail before the battery and that it will then do its best to destroy the battery utterly.
i have had good success in removing failed bms modules to discover perfectly good batteries . better bms modules are cheap and plentiful.
just because they won't take a charge is not always a dead battery

sayzer
- 3rd June 2020, 08:02
Hi, Flotul,

Those BMS are not always installed ...

I have dozens of LiPo / LiFe batts home and only one has it included ... so, consider it's not mandatory !!!

sometimes, there's only a fuse !!!

Alain


I agree with this.

When we order batts, there is option having it with the protection; As it is an option and if you have a smart charging circuit, then it just additional cost which I think is unnecessary.

The ones with the protectioın we received have higher failure return rate than those without the protection. Circuit burns out eventhough there is nothing wrong with the charging.

Ioannis
- 3rd June 2020, 08:15
Lithium batts should be under surveillance either charging or discharging.

The little circuits are supposed to work in either case, not allowing overcharge or flat discharge the batteries. The second is important as many devices continue to drain the batteries to very low levels, finally destroying them.

It is really annoying that the protection circuits fail...

Ioannis

flotulopex
- 11th February 2021, 11:50
Hi All,

I'm now (finally...) building my project and its about time to order the missing components to have something to play with (without any reference to naughty thoughts :D).

So, here's the circuit I'm building:
9013

Reading the (very interesting) MicroChip's AN1149 about battery charge and power backup, I can see that a particular attention is to be paid to the choice of the Q1's (the P-Mosfet) where a "proper" Vgs(th) has to be chosen.

Unfortunately, I'm not an electronician, just an electrician creating himself (lots of) problems with this PIC stuff = I don't know how to calculate or determine with exactitude how to dimension the needed P-chanel Mosfet :o

Can anyone help me out and suggest a component (according to the DS, a combined S-diode and Mosfet is nice) or the Vgs(th) value I will have to find to make my circuit work? Instead, I would appreciate someone explain me how to "calculate" this Vgs(th) I'll need....

flotulopex
- 11th February 2021, 14:21
BTW, I don't think the above schema will work.

Is this really correct?
9014



Shouldn't it be something more like this?
9015

pedja089
- 11th February 2021, 17:43
First schematic can work. But MOSFET have no purpose. There is no need for one.
Second schematic doesn't allow battery discharge when charging.
Don't know where you found that schematic, but look at
http://ww1.microchip.com/downloads/en/Appnotes/01149c.pdf
Page 2.

flotulopex
- 11th February 2021, 21:36
Thanks pedja,

The schemas come from this exact document you refer to in your last post, adapted to DC supply.



But MOSFET have no purpose. There is no need for one.
Can you please explain?

Without any "switch" (MOSFET in this cas, how I understand it), how would hte load be fed either by the main supply or the battery in case of main supply failure?

pedja089
- 11th February 2021, 23:12
You shorted gate to GND in first schematic. So MOSFET are allways on.
As you see in document anodes of LEDs are connected to positive input supply via diode. Not to GND.
I overlooked D1 in second schematic. So my explanation for not powering load while charging is not correct.
But you must be careful with that schematic. As you can have 5.1V on output while charging. Then voltage will drop to 3.7V. You can't power modem from that. Not directly.
I'll suggest that you power modem directly from battery, and rest of circuit via 3V LDO, or 2.8V. You can get it witht Iq less than 1uA.
Then just build 1 or 2A 4.2V CC/CV charger for battery. I'll suggest that you use switch(step down), not linear charger.
If you want to stick to microchip AN1149, then you need really good SEPIC power supply (https://en.wikipedia.org/wiki/Single-ended_primary-inductor_converter) for modem(to get recommended 3.8V). Also modem must have low ESR capacitors near it.
So not that trivial circuit to design.
EDIT:
SEPIC or some isolated topology is must, because you have higher input voltage when powering from AC, then output voltage(stepdown). But when you run it from battery you will have lower voltage on input then output.
You could try some hot swap PSU with battery while modem running, but i think modem will restart...

flotulopex
- 12th February 2021, 06:57
Thank you pedja,

I'll give it a try with what I have in my drawer up to now.

I still don't know what MOSFET I should choose....

pedja089
- 12th February 2021, 09:17
Mosfet is easy. Chose one with low Vgsth and as low as possible Rdson. Current more than 4A for modem only.
I usually use AO3401. To be safe I put 2 parallel. Also it is good idea to PIC have control over them. SIM900D had sometimes issue where it would stop responding, and continue to work for months after power off on.
So from then I always make modem PSU controled by PIC, and add discharge resistor. Sometimes I also make resistor PIC controlled, if it battery powered device.