I assembled a circuit to convert a PWM signal generated by an Arduino to a DC voltage in the range 0..10 V.
I use the 10k-10u RC filter to convert the PWM signal to DC voltage in the range 0..5 V, then the single-supply op amp in non-inverting configuration to amplify it to the range 0..10 V. I adjust the virtual ground and the gain with two trimmer potentiometers.
The circuit is almost working, but it is producing a strange error: the output voltage is rising slowly but steadily (if it is not too close to 0 V). I have included the 100k resistor to provide a path for the bias current, but it had no use...
Any help on how to solve the problem would be appreciated.