Analogue input noise spikes

Hi, i have a project where i read two analogue inputs from two sensors and a pro Mini. I have some spikes in my readings that are present when i'm powering the system using a powerbank step up module. When i use a 7805 an a 9V battery, the results seem clear. The spikes appear every 600-650ms.

Is there any way to filter them out on a hardware level without using code?


I assume they are spikes from the DC converter. The occurrence interval will depend on the hardware consumption and the capacitance of the filter capacitor. You can try adding filter capacitors (large capacity electrolytic and small ceramic) and/or possibly an inductance. However, if everything works as it should anyway, it may be easier to filter the data with a mathematical filter.

The frequency of the spikes is about 1.5HZ, too slow for a typical ripple of a "dirty" dc converter i think.
My first though was that the module was checking for sufficient load to stay powered on. I added some dummy load but nothing changed. The project is a datalogger and unfortunately i don't really want the code to do the filtering, as it's gonna cost me some speed.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.