How to read the battery voltage of mkrzero?
Is there an accurate way to measure the battery voltage of Mkr zero?.
https://create.arduino.cc/projecthub/Arduino_Genuino/mkr-zero-read-battery-voltage-4853ac
Voltage measuring is not going to give you how much is left, the discharge curve is very flat. You might want to investigate coulomb counting, there are some nice chips designed to do this. Connect a voltmeter to a fully charged battery and turn your system on. Read and record the voltage every 15 minutes. At the end you will be able to plot the discharge curve or go to the battery manufacturers website and get the info from there. To measure the voltage use a resistor divider and scale that in software to the full voltage of the battery during charging.
how inaccurate is it in this tutorial?
anyway, a Multimeter is a good solution.
Thank you for your information
gilshultz:
I want to visualization the battery life span in the chart.
For the resistor divider,I have read it not an accurate way to measure the battery.
kolaha: how inaccurate is it in this tutorial?
I think the voltage that I have got is not accurate .
aha, and why?
Thank you for your message.
I got 4.30V on the serial monitor.
Which is not correct.
I use the code as it without any adjust.
I have plugged Mkr zero to PC via USB.
4.30V Is the voltage from USB or battery!
In fact , I use battery 3.7V so 4.30V is the wrong reading.
What are you using for the ADC reference voltage?
We can't see your code.
Post code, not pictures.
Sheeesh
please read something about rechargeable Lithium cells. You will see: 3,7V is average nominal Voltage and the span is from 2,5-3V to 4,2-4,35V dependent to chemistry of cell.
Post a schematic, not a frizzy thing showing how it is hooked up, you are getting about the correct voltage as supplied via the USB which is connected so you can get the readings on the monitor.
Thank you for your information.
For your information, I didn't plug the battery to the MKR. And I still get the same reading.
it can be- the line from usb is protect from battery voltage with diode and his voltage dropdown is 0.3V-0.6V

forget it. MKRzero has there no diode.
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.
