How can I create a constant 12V for my motors?

I’m new to this, so sorry if this is a silly question. What’s the best way to create a constant voltage for my motors? I was going to use these motors: 29:1 Metal Gearmotor 37Dx52L mm with 64 CPR Encoder ( I have the 5V 3.5A step down regulator for my logic. Is there something similar that can deliver a few amps at about 12V? Thanks! --Osman


Why do you want a constant 12 V supply for your motors? The main drawback to using a battery for motor power is that open-loop motor speed will decrease over time as the battery voltage drops, and this can introduce problems if you have your robot highly tuned for a particular voltage. However, you are using a motor with an encoder, which means you can use closed-loop control to maintain a constant motor speed, even as the battery voltage decreases.

- Ben