Is it possible to make an output that can follow the accelerator position? 0,5 to 4,5v

Hi
Is it possible to make an output that can follow the accelerator position?
accelerator pedal 0 to 100% which then outputs a volt signal of 0.5 to 4.5v
I need a tps signal for the mitsubishi 4x4 acd ecu

You can use custom PWM output and low-pass RC filter.
The filter will change the square wave into a constant voltage level proportional to the PWM’s duty cycle.

P.S.
You probably want to send the throttle position and not the accelerator position.

that was the solution.Thanks