![]() ![]() The sense pin wiring can vary depending on your battery configuration, but here are a few examples based on the assumption you are using a 5V board: in case of a 3.3V board you should be performing the necessary adjustments. To improve this we suggest using the VoltageReference library to obtain a better calibration value for all analog readings. If you want your readings to be more accurate we strongly suggest to calibrate the library by providing your board reference voltage: most of the times you assume your board has exactly 5V between Vcc and GND, but this is rarely the case. The library requires at least 1 analog pin (we will call this the sense pin) and no less than 2 pieces of info on your battery: the voltage you will consider the minimum acceptable level, below which your project/product becomes unreliable and should be shut down, and the maximum voltage you can expect when the battery is fully charged.Īdditionally, you can provide a second pin (either analog or digital) to activate the battery measurement circuit (we call it the activation pin), useful in all those situations where you can sacrifice a pin to further increase your battery duration. Higher than 5V, with external voltage regulator.Higher than 5V, with internal voltage regulator.In reality, the relation between battery capacity and its voltage is better represented by a curve and there are many factors affecting it: current drawn, temperature, age, etc. The big assumption here is that battery capacity is linearly correlated to its voltage: the assumption itself is wrong, but in most cases it's close enough to reality, especially when it comes to the battery higher capacity side. The principle is simple: we are going to measure our battery capacity by measuring the voltage across the battery terminals. This is a simple Arduino library to monitor battery consumption of your battery powered projects, being LiPo, LiIon, NiCd or any other battery type, single or multiple cells: if it can power your Arduino you can monitor it! Please, before submitting a support request read carefully this README and check if an answer already exists among previously answered questions: do not abuse of the Github issue tracker.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |