I have a project for a client to add some features and do maintenance on an existing product. It is a battery-powered gas measurement probe. Apart from having some really “challenging” firmware written by several different people the main mission I have is to investigate and optimize the power consumption.
I am unsure how to use JS to measure the power consumption and then relate that to the battery capacity in order to estimate battery life as it is now and then to evaluate each part of the system to see who is the major power consumer.
JS is set to record mAh. If I collect that power consumption in mAh, how do I use it to calculate the possible battery life.
Sorry, bit of a newbie to measuring and optimizing battery systems.