I built a non-inverting amplifier with a gain of 2 around an LM358 on a single 5 V supply, to scale a 0 to 2.5 V sensor signal up to 0 to 5 V for a microcontroller ADC. The output follows the input correctly up to about 3.5 V and then stays flat, however far the input goes.
I have swapped the chip and rechecked the resistors. Is this a limitation of the part, and how do I get the full 0 to 5 V range?




