I have a system that consists of 1 Arduino, 1 Raspberry-pi, 2 power banks, and a set of different sensors. Each of the Arduino and Raspberry-pi is powered by a separate power bank. I need an accurate method to measure the total power consumed by the entire system.
I also need this power measurement as feedback input to the Arduino to control some sensors. Is it better to tap some power measurement circuit on each power bank or is there a better way to measure it by Arduino/Raspberry-pi.