used adc Measuring lithium battery voltage

⚠️
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.
9 posts / 0 new
Last post
zyosintek
Offline
Last seen:2 months 2 weeks ago
加入:2020-03-26 12:15
used adc Measuring lithium battery voltage

嗨dialog

I am using adc to measure the voltage of a lithium battery. The battery voltage is 4.2v, so I must use a voltage divider to divide the voltage. Is there a requirement for the size of the voltage divider? Is there a reference circuit?

thank you for you help!

Keywords:
ADC
Device:
PM_Dialog
Offline
Last seen:11 hours 37 min ago
工作人员
加入:2018-02-08 11:03
Hi zyosintek,

Hi zyosintek,

What is the type of the lithium cell battery that you are using in your design? Please note that the projects\target_apps\peripheral_examples\adc\batt_lvl example of the SDK provides implementation to read the battery level for the CR2032 and CR1225 lithium cell batteries. Additionally, regarding the voltage divider, we don’t have any external circuit, but can you please clarify what is your requirement and what you are trying to accomplish? Do you want to calculate the battery level?

Thanks, PM_Dialog

zyosintek
Offline
Last seen:2 months 2 weeks ago
加入:2020-03-26 12:15
我使用一个可充电

我使用一个可充电battery with a maximum voltage of 4.2v. I want to use adc to measure the battery voltage. So I need to divide the measured voltage. Is there a requirement for the resistance of the voltage divider

zyosintek
Offline
Last seen:2 months 2 weeks ago
加入:2020-03-26 12:15
I tried to read the input

I tried to read the input voltage on p01 with adc, the value read is inaccurate, the error reaches 0.3v

PM_Dialog
Offline
Last seen:11 hours 37 min ago
工作人员
加入:2018-02-08 11:03
Hi zyosintek,

Hi zyosintek,

Please check the ADC driver and the DA14585 datasheet and you will that there isn’t any divider in the ADC hardware block. The ADC driver can be found under sdk\platform\driver\adc folder path.

Thanks, PM_Dialog

zyosintek
Offline
Last seen:2 months 2 weeks ago
加入:2020-03-26 12:15
I am using adc driver. My

I am using adc driver. My problem is to input a voltage on p01. This voltage is obtained after the voltage of the battery is divided. The voltage divider uses 1M and 2M. But the voltage (1.6v) that I converted from the adc reading has an error as high as 0.4v from the actual value (2.0v). When I use a DC power supply to input the same voltage (2.0), the converted value of the adc reading (1.9v) is about 0.1v from the actual value. Why do the values of the same voltage input differ so much? Is it related to the external divider resistance?

PM_Dialog
Offline
Last seen:11 hours 37 min ago
工作人员
加入:2018-02-08 11:03
Hi zyosintek,

Hi zyosintek,

Sorry for my late response. What do you mean that “My problem is to input a voltage on p01” ? Uou don’t know how to use the adc driver in order to capture voltage other p01?

Thanks, PM_Dialog

zyosintek
Offline
Last seen:2 months 2 weeks ago
加入:2020-03-26 12:15

This problem has been solved,thanks!

PM_Dialog
Offline
Last seen:11 hours 37 min ago
工作人员
加入:2018-02-08 11:03
Hi zyosintek,

Hi zyosintek,

Glad that you figured your issue out.

Thanks, PM_Dialog