Does anyone on here know if the capacitor-resistor combo attached to a pwm output pin of an Arduino gives a decent analog output?
People replied a lot while I was sleeping. I''m not going to give the same response to everyone who was asking what its for, so I'll just say it here. I want to use an arduino to spoof the 0-5V analog throttle signal on this ebike i'm building.

@MLE_online

Oh! Then absolutely yes, you can RC filter that. The pwm frequency is 400hz on the old ones, and gou want something that moves at the speed of s human hand, like half a hertz max. A half second RC would hit the barn door.

10 uF and 47K ohms is a half second.

1000 Hz would be many many dB down. Its knowable.

@MLE_online

Oops I meant 2hz max and that RC reflects that.