I am trying to understand how much energy a circuit (composed by some passives here called analog, and an MCU) will require. The system is powered through a capacitor, and the "passives" are actually some low power op amps attached directly to the capacitor, like the following schematic:
simulate this circuit – Schematic created using CircuitLab
The MCU is powered through an LDO, and has a determined active time while otherwise is in sleep (now for simplicity I consider sleep equal to 0mA), but the active part is always on.
I need to understand how much energy the system requires to have a predermined drop in the capacitor voltage. From such results, I will define the next design steps or various tunings.
The approach was to compare the total energy required, given the capacitance in consideration, with $$ E = \frac{1}{2} C (V_{0ms}^2 - V_{10ms}^2) $$
The MCU activates with a given duty cycle, and I need to calculate the energy balance only in this period of time, with a given MCU duty cycle. Example, the MCU wakes for 1ms every 10ms, so duty is 1ms and period is 10ms. Duty cycle is 10%. I only want to know the power balance over 10ms, because afterwards the capacitor will gets fully recharged before the next cycle.
But here the problem:
- I can calculate how much drop in the capacitor voltage I have with a given energy, but because the energy can be rewritten in $$ E = P t = V I t $$, I can use this form to check, in the duty time activity, how much energy is drawn form the MCU, LDO and active components and check it against the capacitor's energy calculated in the initial formula (related to a given drop).
- Despite this assumption, because the energy is th eintegration of the power over time, I am not sure if makes sense to calculate the energy of the active part in this way: $$ E = (V_{0ms} - V_{10ms}) I_{active} t_{10ms} + (V_{0ms} - V_{10ms}) I_{MCU} t_{1ms} + (V_{0ms} - V_{10ms}) I_{MCU sleep} t_{9ms}$$ What would be the right approach?