Quick implementation of circuit to characterize battery impedance as it degrades due to aging.
More aging should result in larger output swing at lower frequencies. Play with source resistance and inductance as well as the test frequency at the bottom left to check it out