Society of Robots - Robot Forum

Electronics => Electronics => Topic started by: Cyntrox on February 15, 2011, 02:40:33 PM

Title: Dual-battery setup
Post by: Cyntrox on February 15, 2011, 02:40:33 PM
Hello, everyone! I am new to this forum, but am a big fan of the site.

I'd like to start off with a question. I am building my first robot, and have decided to use two power sources:


My trouble comes with the motor driver (L293D). While it has two voltage inputs (logic and supply), the ground is, as far as I can tell, common.

I have tried to connect the ground of the 6-volt pack to the regulated 5-volt power, this caused three of the batteries in the pack to discharge.

How can I use different voltages like this? Thanks in advance for any help.
Title: Re: Dual-battery setup
Post by: rbtying on February 15, 2011, 03:24:27 PM
Connect all grounds (- terminals) together.

Connect the +9v rail from the 9v battery to the 5v regulator

Connect the +5v output from the regulator to the logic power pin on the L293D

Connect the +6v rail from the 5 1.2v batteries in series to the supply power pin on the L293D

Common grounds should not discharge your battery, you may have hooked something up wrong.
Title: Re: Dual-battery setup
Post by: Cyntrox on February 15, 2011, 03:48:47 PM
It turns out that your last theory was (almost) right. My faulty soldering had short-circuited the 6v pack. Now everything works, and I have a regulated 5v and unregulated 6v rails!
Title: Re: Dual-battery setup
Post by: rbtying on February 16, 2011, 01:21:49 AM
It's great to hear that you've solved your problem.  Good luck on your robot!