Are you saying that the problem is with the throttle output, and the pwm echo out of the throttle output is correct?
Yes, the PWM output from the Arduino and the low pass filter are working fine. The problem is with the throttle output signal from the actual throttle, going into the pin A2 of the arduino; but only when it is connected with the Arduino.
When connected to A2 the throttle output does not go as high as expected.
Exactly, once it is connected the throttle doesn’t give full range anymore and reaches a maximum of 2.3V. Also, it increases normally until 2.3V and then caps there, meaning that after a certain amount of twist, once it reaches 2.3V, it just stops increasing.
When the throttle output is disconnected from A2 you can measure full range. How do you measure 0-1023 when it is disconnected from A2?
Yes, I can, by using a solderless breadboard and connecting the throttle output on the same line as a wire going to A2 in the arduino as well as an extra wire with an open end. I then use this open end and the ground of the Arduino to measure the voltage with a multimeter.
Hence, doing this allowed me to observe that it is only when it is connected to A2 that the throttle doesn’t reach full range anymore.
Try to read the throttle at A2 with two sequential analogRead() calls. Discard the first, and only use the second.
Thank you I will try this tomorrow and come back to you with the results!