I've been through a few design iterations of an 8 bit MCU, using a voltage divider and ADC to display the battery level of a system. It works okay, but I've found reading battery voltages requires a bit of acrobatics in the software to average and clean and hide any gremlins from the end user as the batteries age and start acting funky.
I'm loosely aware of gas gauge ICs, and what they do -- also how much they cost... not cheap (well compared to a "free" ADC on your MCU + two resistors for the divider network).
Is anyone aware of any alternative ICs or approaches, that cost less than a gas gauge IC but require a bit less development time than an ADC + Voltage Divider? (I'm thinking like ~$0.10). I'm seeing low cost gas gauge ICs reading voltages and calculating current, so looks like the most recent approach?
I haven't been around embedded systems very long, so maybe there are some older ICs prior to gas gauge ICs that can get the job done? Some different approach?