Hi
Planning on using a STM8 microcontroller as an ADC to measure battery voltage.
Battery voltage range 5.5v to 9v (5-10v is a safe range if it makes the calculation easier).
The STM8 will be running off a 1.8v LDO supply.
How do I use a op-amp to voltage scale and offset the battery input so that I have maximum dynamic range for the ADC.
Planning on using a STM8 microcontroller as an ADC to measure battery voltage.
Battery voltage range 5.5v to 9v (5-10v is a safe range if it makes the calculation easier).
The STM8 will be running off a 1.8v LDO supply.
How do I use a op-amp to voltage scale and offset the battery input so that I have maximum dynamic range for the ADC.