Helo, I am trying to create a circuit that will replace EGR valve on a car and make an ECU think that everything is ok.
I have already read this post https://maker.pro/forums/threads/help-to-design-egr-valve-simulator-cheater.244193/ but after assembling it and connecting to a car, it shows 2.8V constantly on the sensor output so to the ECU it seems stuck.
I have connected it this way. You can see what each pin means below.

This is how the EGR looks like (part num. 9671398180):

This is how it looks inside. There is a spring that pushes the valve to closed position so it automatically closes the valve when no power is given to the motor.

It has a motor inside driven by PWM:

This is how it is connected to the ECU:
1 - PWM-
2 - PWM+
3 - Position out
4 - Pos GND
5 - Pos Ref 5V

What I have already found out about my EGR is that the voltage range from the position sensor is from 0.7V (closed) to 4V (open).
I have tried measuring the PWM when the EGR is fully open (engine idle) and the position sensor was at 4V. The frequency of the pulses is 2000 Hz but I don't know how to put this information into a circuit.

Can someone help?
I have already read this post https://maker.pro/forums/threads/help-to-design-egr-valve-simulator-cheater.244193/ but after assembling it and connecting to a car, it shows 2.8V constantly on the sensor output so to the ECU it seems stuck.
I have connected it this way. You can see what each pin means below.

This is how the EGR looks like (part num. 9671398180):

This is how it looks inside. There is a spring that pushes the valve to closed position so it automatically closes the valve when no power is given to the motor.

It has a motor inside driven by PWM:

This is how it is connected to the ECU:
1 - PWM-
2 - PWM+
3 - Position out
4 - Pos GND
5 - Pos Ref 5V

What I have already found out about my EGR is that the voltage range from the position sensor is from 0.7V (closed) to 4V (open).
I have tried measuring the PWM when the EGR is fully open (engine idle) and the position sensor was at 4V. The frequency of the pulses is 2000 Hz but I don't know how to put this information into a circuit.

Can someone help?