# Stable voltage at high current

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?

• I suggest you to improve your voltage sensing and clean up your code. Such motors are normally not feed with a stable voltage, because it's somewhere between very difficult and nearly impossible. – Laszlo Valko Oct 7 '14 at 3:14
• What exactly are you calculating with the feedback voltage? If you give us more details, I bet we can help you come up with a better method than the one you're trying. – Dan Laks Oct 7 '14 at 3:18
• are you just using a fixed duty cycle %, assuming a certain voltage? It is very easy to use an ADC input to just scale the duty %... it is very few lines of code – KyranF Oct 7 '14 at 6:02
• oh can I also mention that with robotics you should always be aiming to get encoder/optical sensor feedback of the speed of your wheels and have your motors driven by a "speed controller" preferrably a "PI" closed loop feedback controller. This is the best middle ground between something that works and getting too complicated – KyranF Oct 7 '14 at 6:06
• are trying to measure the speed of the motor using the voltage or you face problem in calculating the DC voltage itself;it would be better if you could share the schematic – yogece Oct 7 '14 at 8:35