I designed a device that calculates current and power using a CT and an ATMega328P-AU microcontroller.
The board I designed was simple and I didn't account for noise cancellation on the ADC lines and AVCC and AREF. That being said, when I power the circuit using a transformer style power supply (Those brick style ones), my circuit functions well without any hiccups and I get proper current reading using the board I designed.
However when I power the circuit using those cheap Chinese 12V SMPS power supplies, the current reading goes all over the place and keeps the last read value even without any load; same thing happens when I add bigger filter caps on the power lines.
I suspect that the power supply has poor EMI protection and is causing my circuit to behave abnormally. Could it be due to me not including LC filters on the AREF and AVCC pins or both?