GPRS_C_SDK icon indicating copy to clipboard operation
GPRS_C_SDK copied to clipboard

Does A9G pudding board contain the battery charger module?

Open allejp opened this issue 5 years ago • 26 comments

It is not clear to me if the A9G pudding dev board has the battery charger.

In some product details it is specified:

There are lithium battery charge management, microphone, speaker interface, USB communication interface, etc...

So, can I expect to charge the battery if I connect the USB power?

Thanks.

image

allejp avatar Feb 18 '20 20:02 allejp

Yes! A9G contains ic for charge the battery. It is SY8089 dc-dc converter.

turbulator avatar Feb 26 '20 09:02 turbulator

No, the SY8089 is not a battery charger. It only converts 5V USB down to 4.2V for the A9G module. Connecting USB and a battery at the same time will allow an uncontrolled amount of current to flow into the battery, possibly damaging the battery and converter. I find that a lot of these Chinese GSM modules (not the dev/carrier board) say stuff about having battery charging and management, but then never give any info on how to use it :/

ZakKemble avatar Feb 26 '20 09:02 ZakKemble

Ok, so there is not a battery charger, it's correct? But in this official page is declared this feature for chipset A9 and A9G:

Power Management Unit: Lithium battery charge management, integrated DC-DC and LDOs, variable IO voltage

allejp avatar Feb 26 '20 12:02 allejp

There's no charging support, That page also says it has a USB 1.1 interface, but there's nothing about how to use it. Basically, they're listing the features of the main processor (RDA8955L), but some of them might need extra software or hardware support that is missing from the rest of the A9G module and SDK.

ZakKemble avatar Feb 26 '20 13:02 ZakKemble

Zak, you are right! Pudding's supply subsystem isn't properly designed. A few words about "charging support". I found one interesting cause of power on: POWER_ON_CAUSE_CHARGE. Can it be the way to handle the ending of charge?

turbulator avatar Feb 27 '20 03:02 turbulator

What is the simplest li-ion battery charger solution that we can add to this this board? I think we need a battery charger with load sharing, can the MCP73831 be useful for this purpose?

allejp avatar Mar 06 '20 21:03 allejp

There's no charging support, That page also says it has a USB 1.1 interface, but there's nothing about how to use it. Basically, they're listing the features of the main processor (RDA8955L), but some of them might need extra software or hardware support that is missing from the rest of the A9G module and SDK.

Hi Zak, I read your excellent article about lipo charger with load sharing, very informative thank you. I would like to try to integrate the MCP73831 to the pudding board, I have some doubts on where to connect the VCC output to the pudding board to consume as little as possible. Can you give me some advice?

allejp avatar Apr 03 '20 11:04 allejp

@allejp No problem :) The load sharer will output close to 5V when USB is attached, too much for the A9G module directly. You will have to connect the load sharer to the VUSB/5V input of the pudding board which goes to a 4.2V buck regulator.

ZakKemble avatar Apr 03 '20 19:04 ZakKemble

Hi Zak, ok I will do so, thank you.

Meanwhile, I found an old board of mine that uses the MCP73831, but it doesn't seem to be in load sharing configuration.

image

These are what I measured in VABT e +5V pins:

  • USB only
    • VBAT = 4.14V
    • 5V = 4.94V
  • Battery only
    • VBAT = 4.04V (real battery voltage I suppose)
    • 5V = 5.00V
  • USB with Battery
    • VBAT = 4.14V
    • 5V = 4.54V (seems to increase as the battery charges)

Do you think I can use the power part of this board to poweron the pudding board with load sharing? In case, wich pins should I connect to pudding board? I think VBAT is a great candidate to use directly in VBAT pins of pudding board.

Thank you.

allejp avatar Apr 04 '20 12:04 allejp

I'm not sure if you really need Q4 on PROG and EN - PROG: The charger IC will already stop charging when 5V is removed. EN: If the regulator output is higher than what it is supposed to be then it will stop boosting. The quiescent current is probably low enough not to interfere with battery charging.

But otherwise, what you have there is basically the boost regulator replacing Q1 MOSFET from the load sharer, with a diode (D12) blocking reverse current. You still need to connect the output to VUSB/5V since it will be exceeding 4.2V.

You'll be fine with connecting a charger without load sharing to the battery then the battery to VBAT on the pudding board, the only problem with this is that it will never completely finish charging.

Or did you mean VBAT to pudding VBAT and 5V to pudding VUSB/5V at the same time? Not sure which part you mean by 'power part' either >.<

ZakKemble avatar Apr 04 '20 23:04 ZakKemble

Hi Zak, I will try to connect VBAT directly to pudding board VBAT, thank you.

allejp avatar Apr 05 '20 19:04 allejp

The pudding board does not have any charge management. This schematic shows VBAT connected directly to the 5V -> 4.2V buck regulator output. http://wiki.ai-thinker.com/_media/gprs/a9g/a9g-dev_v1.2.pdf

Connecting USB and a battery at the same time will allow an uncontrolled amount of current to flow into the battery, possibly damaging the battery and converter.

ZakKemble avatar Sep 16 '20 15:09 ZakKemble

The pudding board does not have any charge management. This schematic shows VBAT connected directly to the 5V -> 4.2V buck regulator output. http://wiki.ai-thinker.com/_media/gprs/a9g/a9g-dev_v1.2.pdf

Connecting USB and a battery at the same time will allow an uncontrolled amount of current to flow into the battery, possibly damaging the battery and converter.

hello, I agree with zkemble. I have another problem, when I connect the A9G module with a USB power source, the module starts automatically, but when I use the VBAT pin with a li-ion battery, nothing happens ( i have to turn it on with the board bottom). Do you know why it happens? I checked the schematic and I don't know why.

barokemind avatar Oct 15 '20 00:10 barokemind

@barokemind Connect PWR_KEY to GND with a piece of wire. What happens is if it detects 5V (USB) at the VUSB_DET pin it will automatically turn on, otherwise if USB is not connected then it will wait for PWR_KEY to go LOW.

ZakKemble avatar Nov 18 '20 14:11 ZakKemble

image yes, i can confirm that sy8089 cannot charge the v_bat, only regulates 5v input to v_bat (4.2 - ish) to be used in a9g. SO in conclusion 19g dev board cannot charge battery from usb

ahmadfarisfs avatar Nov 18 '20 16:11 ahmadfarisfs

So what are you using for compact / integrated charging solutions?

Tomblarom avatar Jan 13 '21 08:01 Tomblarom

I found that a9g dev board uses more than 20mA in power off mode !!! Any hint to save battery from flat discharge ?

ens4dz avatar Aug 29 '21 01:08 ens4dz

External p-ch mosfet with power management uC like attiny13a

turbulator avatar Aug 29 '21 02:08 turbulator

In case it has not been sufficiently clear to anyone: Do NOT connect a battery and another power source to the board at the same time! It will not charge the battery, but rather destroy the board and maybe even the battery! (While fiddling around for a while, at one point I forgot to disconnect the battery and a broken board was the result. Luckily I have another A9G pudding board and the battery seems to be working still.)

jmstark avatar Aug 01 '22 09:08 jmstark

I'm using this circuit for my project, a lipo charged with shared load capability. Some parts taken from internet, other from a9g dev board schametics, I have tested it in lab and seems to work fine.

a9g power supply

ricardodanielalbano avatar Jun 16 '23 23:06 ricardodanielalbano

Screenshot 2023-09-21 213619 Hi everyone, so the vusb-det pin (17) should be left floating in this way? Is my power supply part correct? Thank you in advance...

camp-easy avatar Sep 21 '23 19:09 camp-easy

Yes, VUSB (17) not connected. About your power supply I have no experience with SY8089, I'm using TPS54308 for downconverting power. I see some mistakes in your design, for example the ufl connector (gps/gprs) is incorrectly connected, the pin 1 is signal, not gnd. Also I guess about ADC0, whats is for? is sensing power supply 3.7v?, also I recommend feed de A9G module with 4v~4.2v, not 3.7v, with 3.7v you're very close to the under limit of Vin and when modul is doing GPRS there are at least 1A of peaks that can drop your 3.7v to lower values reseting the decive. USP_P/USB_N not documented in AI SDK, never used it, I can't imagine how to use it, there isn't documentation. Regards.

ricardodanielalbano avatar Sep 22 '23 14:09 ricardodanielalbano

Thank you man. I fixed but i would like to feed the A9G processor with 3.8 v so i can use a simple 3.8v lithium battery ... Do you think it will be ok? I have seen the 2 resistors connected in this way with the ADC0 in the A9G dev. official schematic of AiThinker so i do so, even if i didn't understand what they are for. Do you think there are any others potential issues in this part of my schematic? Thank you in advance. Regards.

3333

camp-easy avatar Sep 22 '23 20:09 camp-easy

I suggest you to use a lipo charger and a shared load circuit to switch between your external supply and battery when there is no external source present. Take a look at my previus post with a lipo charger and shared load circuit control, I have a new version running on production now with some modifications to improve time of conmutation and fix some worng resistors values, but the idea in the picture is the same.

ricardodanielalbano avatar Sep 23 '23 00:09 ricardodanielalbano

So the lipo charger shared load circuit is to recharge a lipo battery right? (Sorry but im still an inexpert)

camp-easy avatar Sep 23 '23 09:09 camp-easy

The two mosfets block is for conmuting between battery and external power supply. The charger is the TP4056 IC.

ricardodanielalbano avatar Sep 23 '23 14:09 ricardodanielalbano