PWM to Steady DC Voltage


Hey Guys,

So I have a small project where what I’m trying to do is essentially increase the output voltage from 0.5->2.8V. However, I want this voltage to come out as a steady DC Voltage. I think the PWM frequency is 500 Hz so does anyone have any idea on what resistor and capacitor values to use for a low pass filter?

I tried a 3.3k resistor and a 0.1uF capacitor in parallel and according to my math that should be working but Im still getting an oscillating signal according to an oscilloscope.