stm32 adc readings noisy, averaging not helping enough
STM32F103C8 (Blue Pill), reading a potentiometer and a photoresistor on ADC1 channels 0 and 1. Readings jitter by +/-15 counts on a 12-bit ADC even with a stable input. I'm averaging 16 samples in software, which helps a little but not enough. VDD is from the board's 3.3V regulator, and I'm using VDD as the ADC reference. The board has no decoupling beyond what's on the module. Is this expected noise, or is my setup bad? Should I add a capacitor on the input, or use a different reference? I want stable readings for a control loop.
4 replies