Afuevu
Afuevu
How to Optimize Energy Calculations for STM32 Energy Meter Without Overloading Interrupts?
Hello team, so I have been working on an energy meter for some time using stm32f103c8t6 as my controller, zmct103 current transformer for measuring AC current and then using LM324 op-amp in differential mode to measure ac voltage. I have been able to get data with ac load, but my readings(adc readings) and calculations(energy calculation) are done inside interupt. I know the interrupt is meant to be short, is there a better way to handle calculations? I will appreciate your insights. here is the link to the calculations in the interrupt: https://github.com/Afuevu/dev_iot/blob/main/energy_meter
23 replies