A raw PWM signal is either ON or OFF for varying amounts of time so therefore with a 5v source you will read either 0V or 5v depending on where you sample the signal.
To read an anlogue voltage the PWM signal would need to filtered with a resistor and capacitor to smooth it to an analogue voltage.
Bookmarks