I need a circuit to take in a PWM signal (Vin) and output the average voltage (Vo = D*Vin). Any ideas?