嗨dialog
我用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:
Device:
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
我用a rechargeable 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
I tried to read the input voltage on p01 with adc, the value read is inaccurate, the error reaches 0.3v
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
我用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?
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
嗨
This problem has been solved,thanks!
Hi zyosintek,
Glad that you figured your issue out.
Thanks, PM_Dialog