Hi! I need to know the power consumption of the processor of my Teensy 4.0 board. Especially, I need to know the power consumption only when the processor is computing. My code is reading HW serial data, computing some stuff from the data, and sending the results via USB serial. The computation of the stuff takes about 1 millisecond. The data arrives at 100 Hz so I presume that 9 ms is spent on waiting for new data ("HWSERIAL.read()").
I measured the power consumption to be 500 mW but in my understanding, Teensy is always consuming this much, unless being at deep sleep.
Can I interpret that the "true" power consumption of our code, during that 1 ms period when it's doing the actual computations, is then at most 10 % of the 500 mW (so 50 mW)? And to get more precise measurement, I could first make a program that puts Teensy in deep sleep (e.g., using the deepSleep from the Snooze library), measure the power consumption of that (as it will be more than 0 mW), and use that as a benchmark to be subtracted from the 50 mW?
Or if not, what would be the suggested way to estimate the power consumption of the processor?
I measured the power consumption to be 500 mW but in my understanding, Teensy is always consuming this much, unless being at deep sleep.
Can I interpret that the "true" power consumption of our code, during that 1 ms period when it's doing the actual computations, is then at most 10 % of the 500 mW (so 50 mW)? And to get more precise measurement, I could first make a program that puts Teensy in deep sleep (e.g., using the deepSleep from the Snooze library), measure the power consumption of that (as it will be more than 0 mW), and use that as a benchmark to be subtracted from the 50 mW?
Or if not, what would be the suggested way to estimate the power consumption of the processor?