I am attempting to create a 0-5V analog output signal. No need to drive a load. I desire to control this via a 3.3 digital MCU.
I have attempted to translate the 3.3v PWM to 5v via a n channel mosfet and then through a single or double RC low pass filter.
This there a more accurate or better way to do this besides using a separate IC to do so?