I have an raspberry pi 3B I want to use as the brains for a robot car. In my initial setup I used a power bank for the Pi and a powered the motors using a seperate pack of two 18650 batteries in series. I want to combine the two power sources and see if I can power the entire device off a single power source.
I was looking at using a an LM2596 buck converter to bring the voltage down to 5V and a set of capacitors to smooth any fluctuations caused by the motor. I would then connect directly to the 5v and gnd pins. Is this setup possible, or am I just inviting more problems? what else should I add to make sure the PI runs stable?