⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
15 posts / 0 new
Last post
Rajapurerohit
Offline
Last seen:8 months 6 days ago
加入:2017-04-20 09:17
LiPo battery read

Hello dialog_Support,

I am working on project, where my device uses DA14583 MCU and software is designed such that using BLE command it's turn On/Off the LED's.

But my hardware is powered using Chargerable LiPo battery, whenever battery low i can recharge the battery for this i need to give an indication to user.

To monitor the battery level i need a provison in my software where i could check the battery level using timer.

I have referred the Battery driver library as example but i could only see provision for read the coin cell and AAA cell battery level.

So is there any library available with you to read LiPo battery level ? if yes, please share the library i will use as it is.

if Not, then can you help me how to build a library for LiPo battery?

Thanks in advance

Rohit Rajapure

Device:
PM_Dialog
Offline
Last seen:14 hours 27 min ago
Staff
加入:2018-02-08 11:03
Hi Rajapurerohit,

Hi Rajapurerohit,

Can you please let me know if you are using the LiPo directly to DA14583 in order to power it up? If yes, how are you powering up the DA14583? Which LiPo are you using? Be aware that DA14583 can support up to 3.3V. If the LiPo is fully charged, does the voltage level exceed the 3.3V? I would like to understand how you are doing power budget and how you are supplying power to DA14583. In addition, which mode of DCDC converter you are using? buck or boost mode?

Thanks, PM_Dialog

Rajapurerohit
Offline
Last seen:8 months 6 days ago
加入:2017-04-20 09:17
Helli PM_dialog,

Helli PM_dialog,

If you are using the LiPo directly to DA14583 in order to power it up?
* No. NCP114, 3.0V 300 mA CMOS Low Dropout Regulator from On Semiconductor is used to regulate the voltage from the Battery (Datasheet attached)
* Enable pin of the LDO is connected to IN permanently

Which LiPo are you using? Be aware that DA14583 can support up to 3.3V

If the LiPo is fully charged, does the voltage level exceed the 3.3V?
* Off the shelf available batteries are used

How you are doing power budget?
* No specific strategy

How you are supplying power to DA14583
* NCP114 as mentioned above is used to regulate VCC to 3.0V

Which mode of DCDC converter you are using? buck or boost mode?
* NCP114 supports Operating Input Voltage Range: 1.7 V to 5.5 V and output is fixed 3.0V(Buck-Boost?)

Battery charger used is MCP73831, Miniature Single-Cell, Fully Integrated Li-Ion, Li-Polymer Charge Management Controllers, from Microchip(Datasheet attached)

Second project:-

And, also my other product using AAA 2 batteries to power up the system. To monitor the battery level I used the inbuilt library Bat_lvl(); and called the function to read AAA. But I always receive the 147% level. So I am not understanding it is in terms of voltage or level? Could you please help me with this also. How do I calibrate in terms of monitor battery levels from 0% to 100%?

Thanks and Regards

Rohit Rajapure

Attachment:
PM_Dialog
Offline
Last seen:14 hours 27 min ago
Staff
加入:2018-02-08 11:03
Hi Rajapurerohit,

Hi Rajapurerohit,

Just a correction in my previous comment, the DA14583 is operating only in buck mode. The DA145583 doesn’t operate in Boost mode like the DA14580. Let me check your inputs and I will get back to you as soon as possible.

Thanks, PM_Dialog

Rajapurerohit
Offline
Last seen:8 months 6 days ago
加入:2017-04-20 09:17
Hi PM_Dialog,

Hi PM_Dialog,

Is there any update on this ?

It's urgent for me to solve this please help me as early as possible.

Thanks and Regards

Rohit

PM_Dialog
Offline
Last seen:14 hours 27 min ago
Staff
加入:2018-02-08 11:03
Hi Rajapurerohit,

Hi Rajapurerohit,

Regarding you issue with the LiPo battery, I don’t have any news until now, but I have asked internally if there is anything available. Regarding you second project, are you using 2 AAA batteries in order to power up the device? If you are running the batt_lvl example of the SDK, did you changed the arguments of the battery_get_lvl() to BATT_AAA?

Thanks, PM_Dialog

Rajapurerohit
Offline
Last seen:8 months 6 days ago
加入:2017-04-20 09:17
Hi PM_Dialog,

Hi PM_Dialog,

Thanks for the feedback,

Yes, as I already mentioned in the previous post that I am using 2 AAA batteries to power up the device and also using the Battl_lvl() function with AAA to read the level.

So please let me know why it always giving me 147% or is it in terms of voltage. If it is in terms of percentage then how to calibrate for 0 to 100% level using this?

Thanks and Regards

Rohit

PM_Dialog
Offline
Last seen:14 hours 27 min ago
Staff
加入:2018-02-08 11:03
Hi Rajapurerohit,

Hi Rajapurerohit,

Can you please try to log the adc_sample value in battery_get_lvl() function? When 2 AAA batteries are connected is series, the device is in buck mode.

Thanks, PM_Dialog

Rajapurerohit
Offline
Last seen:8 months 6 days ago
加入:2017-04-20 09:17
Hi PM_Dialog,

Hi PM_Dialog,

I am receiving a value 147 %.

和脂肪库有任何更新吗?

Thanks and Regards

Rohit

Rajapurerohit
Offline
Last seen:8 months 6 days ago
加入:2017-04-20 09:17
Hi,

Hi,

Any update on both project issue?

It is really urgent for me to solve please help.

Thanks and Regards

Rohit

PM_Dialog
Offline
Last seen:14 hours 27 min ago
Staff
加入:2018-02-08 11:03
Hi Rohit,

Hi Rohit,

Regarding the LiPo battery, I checked it internally, and there is not any software to monitor the battery level. Keep in mind that is not recommend to use LiPo battery with DA1458x products. To do so, if you still want to use a LiPo battery, you should have our own calculations. Regarding the 2 x AAA batteries connected to series, can you please run the adc example of the SDK in debug mode, add a break point adc_get_vbat_sample() and let me know what this function returns?

Thanks, PM_Dialog

Rajapurerohit
Offline
Last seen:8 months 6 days ago
加入:2017-04-20 09:17
Hi PM_Dialog,

Hi PM_Dialog,

Thank you for your response,

you have mentioned, " Keep in mind that is not recommend to use LiPo battery with DA1458x products " - May I know why it(LiPo battery) is not recommended. Is there any document that mentioned regarding the same?

Thanks and Regards

Rohit

Rajapurerohit
Offline
Last seen:8 months 6 days ago
加入:2017-04-20 09:17
Hi,

Hi,

I have checked the device in debug mode,

With following function,

1) adc_get_vbat_sample()

2)battery_get_lvl(BATT_AAA)

Attached are the images of values of sample and Bat_val.

我请请求你请分享点你的gently. It's very urgent.

Thanks in advance

Rohit

Attachment:
Rajapurerohit
Offline
Last seen:8 months 6 days ago
加入:2017-04-20 09:17
Hi PM_Dialog,

Hi PM_Dialog,

Very Urgent to solve.,

You have mentioned that Use of LiPo battery with DA1458x product is not recommended.

Can you please tell me why it is not recommended? Does it affect functionality-wise to the controller or any other effects on DA1458x products?

The thing is we have already used the battery and our product is under the production phase, So please share why LiPo is not recommended and it affects on DA1458x.

Thanks in advance

Rohit

PM_Dialog
Offline
Last seen:14 hours 27 min ago
Staff
加入:2018-02-08 11:03
Hi Rajapurerohit,

Hi Rajapurerohit,

Let me clear the things out. You can used LiPo battery with DA1458x product family, but you should make sure that the suppling voltages are according to datasheet specifications. The DA1468x / DA1469x products are designed to run with rechargeable batteries, but since the battery that you are using is within voltage specifications you could use it with DA14583 as well. If you would like to get the LiPo battery level, you should proceed with your own implementation as it is not supported in the ADC example of the SDK. TO do so, LiPo will not have any affects if you have taken care that voltage specification of the chip. 2. Regarding the DA14583 datasheet, the battery supply voltage (VBAT3V) should be between 2.35V and 3.3V, which are the Recommended Operating Conditions. If LiPo is always within the limits, then there is no problem to use it. In addition, again according to DA14583 datasheet, the maximum voltage limit for VBAT is 3.6 volt, so it is highly recommended to not supply the chip with a voltage over 3.6 volt. Regarding you issue with the 2 x AAA connected in the row, the ADC example supports that condition. So, when powering the DA14583, are you always getting these results?

Thanks, PM_Dialog