Take the 2-minute tour ×
Electrical Engineering Stack Exchange is a question and answer site for electronics and electrical engineering professionals, students, and enthusiasts. It's 100% free, no registration required.

I have ordered a Dual H-Bridge 12A continuous (30A peak) Polulu motor driver shield for my upcoming (first time ever, a 1.2m long tank made of wood) robot project.

I was thinking about how to supply the power to all the components in the circuit without wasting much power, but the only thing I can come up with is this simple voltage divider connected in parallel to the motor drive:

Schematic

Knowing the Arduino can handle max 5V I did make sure to make it a bit lower.

But my wonders go to the fact that I am suspicious that connecting the motor driver and Arduino to the same power source isn't a great idea? Or am I paranoid?

And what about power waste by the voltage divider, how can I reduce/minimize it? Make the resistors smaller? (15/10 ohm - but more error and higher current)

Is there a formula to find the most effective R1 and R2?

Do I have to worry about current spikes?

Any other things I could miss in this simple-yet-suspicious circuit?

Also, if I wanted to simulate any possible scenario, which components should I choose in the circuit to keep it as simple as possible (for simulating in Multisim 13)?

share|improve this question
    
Where did you pull 10megohm from? And 5V isn't the maximum voltage. –  Ignacio Vazquez-Abrams May 23 at 22:49
    
Just guess values, had to put something there for the simulation –  Gizmo May 23 at 23:27
add comment

2 Answers 2

up vote 7 down vote accepted

Using a voltage divider as a power source for almost anything is a Very Bad Idea. The actual voltage supplied to the load will vary with the load current. I expect that the current drawn by an Arduino will be Much, Much Greater than is drawn by your 10 meg resistor, so the voltage will be much less than you expect.

You should use a DC-DC converter (AKA switching regulator) to drop the 12 volts down to 5 for the logic. A linear regulator such as the LM7805 could also be used, if the 5 volt current demand is low, but a linear regulator will waste the excess power as heat.

share|improve this answer
    
Regulator is a good recommendation. Make sure it is decoupled both on input and output (especially to prevent noise from motor from ending up on the Arduino) - usually a 100 nF ceramic capacitor will do wonders. –  Floris May 24 at 4:57
add comment

The standard arduino boards ( ng, uno, duo, micro ) have a built-in regulator to which you can connect the 12V. Although a linear regulator is not efficient, it's unlikely to be significant compared to the power taken for the motors in your tank.

A 1.2m tank could be quite heavy. I hope the fish enjoy it.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.