Hope someone can share some insight into how to accomplish this problem. Normal voltage scaling assume some kind of commonality for example 0-3.3V must be scaled to 0-5V or 0-12V where 0V being common.
I have a problem where I need to scale (expand) the voltage range (0.547V - 2.757V) to (0V - 5V).
Unfortunately this is not a code function, but more a physical electronics problem. I was thinking of using op-amps but I am not sure how to go about constructing it.
To add or subtract a constant voltage pass a constant current through a resistor, that will give you a constant voltage that you can add to what you have. In your case you need 0.547V to get down to 0V, giving you a range of 0V to 2.21V. Once you have that you can use a simple op-amp to get the range you want. You will need a negative supply rail. You will also need a very clean power supply; linear regulators and don't skimp on the decoupling capacitors.
First, a differential amp with your raw voltage on the + input and 0.547V on the - input, output to a non inverting amp with a total gain of 2.2624.
2.757 - 0.457 = 2.21 * 2.26244343891 = 5.
The single stage opamp differential amp circuit I linked to in #5 can do it all - set the reference voltage
for the offset, set the resistor values to set the gain.
The reference voltage can be set by splitting that Rf into two resistors one to 0V one to 5V. Their parallel
equivalent resistance must be Rf, their ratio sets the voltage.