Hello,
Is there any way to know CPU load (active vs sleep time) ?
Hello,
Is there any way to know CPU load (active vs sleep time) ?
The idea is good, the difficulty is the precision of the measure and the current consumption pattern. Advanced improvements in your code modify current for the last micro ampers and current is not constant versus time so you have to integrate current (because voltage is just a quasi constant factor here) to get energy consumption or mean power (if you divide by time). Next thing you have to substract consumptions of RF frontend, ... there could be higher (when your code load is low) and not defined with enough precision so you are looking at a candle near the sun :-)
The idea is good, the difficulty is the precision of the measure and the current consumption pattern. Advanced improvements in your code modify current for the last micro ampers and current is not constant versus time so you have to integrate current (because voltage is just a quasi constant factor here) to get energy consumption or mean power (if you divide by time). Next thing you have to substract consumptions of RF frontend, ... there could be higher (when your code load is low) and not defined with enough precision so you are looking at a candle near the sun :-)