25kHz PWM signal to analog voltage (DC) using low-pass filter: Weird output

Hi bankaienator

Have you tried changing the frequency from 25kHz? Does this change the readings you get?

Also, is the 0 reading at EXACTLY 50% duty cycle? It seems a bit of a coincidence.

Lastly, do you have access to an oscilloscope to check the signal going into the RC and that reaching the Arduino?

Regards

Ray