I'm working on building a two-wheeled robot, and want to power both the microcontroller and motor driver off a single battery source.
I want the 2x 14500 batteries (7.4V) to deliver 7.4V to the microcontroller, and 5V to the motor driver through a 5V buck converter.
In the final setup of this project, there will be NO breadboard, so I'm tring to understand how to get the power from the battery to both the microcontroller and driver, without the help of shared pins on the breadboard. All wiring to pins will be directly soldered.
Here are the two circuit options I'm contemplating:
Option 1:
Here the battery wires are connected to the VIN and GND pins of the buck converter.
The microncontroller is supplied 7.4V by connecting its VIN/GND pins to the VIN/GND pins of the buck converter.
The motor driver is supplied 5V by connecting to the 5V and GND pins of the converter.
Option 2:
Here the positive and ground wires coming off of the battery are split by soldering on two extension wires to the end of each wire.
One set of wires is connected to the VIN and GND pins of the microcontroller to provide it 7.4V.
One set of wires is connected to the VIN and GND pins of the conveter, which the motor driver is connected to.
I'd like some help understanding the following:
-
Each of these wiring options will corretly provied 7.4V to the microcontroller and 5V to the motor driver, correct?
-
Is there a better choice between these two options and why?

