I am working on robotics project. The drive chassis is powered by a 3-cell 12V 8 Amps battery (I might also go for connecting two batteries to attain speed as my drive motors work at 24V full power). The battery can get charged up to 12.8V.
As I start driving the chassis, the voltage goes on dropping which is obvious! But that's where the problem arises. All my calculations of Arduino are based on a constant value of voltage. So when the voltage drops the calculations go wrong. I tried taking feedback from the voltage and changing the code, but it gets too complicated. I need a stable voltage of at least 11V (or 22V in the future). What can I do?