I'm working on my own SLA charger that has MCU onboard, can regulate switching DC/DC converter to charge 12V battery in 3 stages and can do temperature correction.
Everything is fine except that I want to improve on battery voltage measurement.
Currently, I use simple voltage divider to reduce battery voltage range into MCU's ADC range of 0-1.8V. The thing is I don't care of battery voltage (let's say) less than 10V because that is a bad battery and I don't want to charge it at all. I would like to map 10-16V into 0-1.8V instead of 0-16V into 0-1.8V so ADC measurement could be done more precise: