Society of Robots - Robot Forum

Electronics => Electronics => Topic started by: Abdulla M.A. on September 15, 2010, 12:02:28 PM

Title: Choosing the correct battery for robot
Post by: Abdulla M.A. on September 15, 2010, 12:02:28 PM
Hi, just check my calculation, I did the following calculations to choose the correct battery for my robot.
1-LM324--> if the supply voltage from 7805-----> P1=0.8mA x 5=4mW
2-Two Sensor (QRE1113)-----> P2=2x(5x10mA)=100mW
3-L298-----> P3=5x60mA=300mA
4-Motors(http://www.sparkfun.com/commerce/product_info.php?products_id=319 (http://www.sparkfun.com/commerce/product_info.php?products_id=319))--->P4=2x(5x230mA)=2300mW
5-7414--->P5=1uAx5=5uA

so the total power about 2705mW, if the battery voltage is 9.6v , so the current should be  541mA, is this correct???
grateful for any help

Abdulla

Note: I do not want to use the calculator of the web.
Title: Re: Choosing the correct battery for robot
Post by: Soeren on September 16, 2010, 10:50:57 PM
Hi, just check my calculation, I did the following calculations to choose the correct battery for my robot.
1-LM324--> if the supply voltage from 7805-----> P1=0.8mA x 5=4mW
2-Two Sensor (QRE1113)-----> P2=2x(5x10mA)=100mW
3-L298-----> P3=5x60mA=300mA
4-Motors(http://www.sparkfun.com/commerce/product_info.php?products_id=319 (http://www.sparkfun.com/commerce/product_info.php?products_id=319))--->P4=2x(5x230mA)=2300mW
5-7414--->P5=1uAx5=5uA

so the total power about 2705mW, if the battery voltage is 9.6v , so the current should be  541mA, is this correct???
You're assuming that the LM7805 doesn't count and you're assuming a steady load, which it will never be, especially not with the motors. The load on the L298 should be the motors, so you gotta view it a bit more holistic.
Nevertheless... Since the motors will be the main load on the battery, just size the battery for that (plus perhaps 10..20% extra for the rest) - battery selection is ballpark-figures anyway.
Part of the selection is choosing how long the battery should drive the load, a bit you seem to ignore?


Note: I do not want to use the calculator of the web.
Why not? Easier to get others to do the job?

It's very comforting to know that you claim to be an engineer and are teaching students... A first year engineering student should be able to seize up a battery just looking at what the loads will be.
Title: Re: Choosing the correct battery for robot
Post by: billhowl on September 17, 2010, 12:15:13 AM
Hi, just check my calculation, I did the following calculations to choose the correct battery for my robot.
1-LM324--> if the supply voltage from 7805-----> P1=0.8mA x 5=4mW
2-Two Sensor (QRE1113)-----> P2=2x(5x10mA)=100mW
3-L298-----> P3=5x60mA=300mA
The 7805 need to source out 81.6mA, your supply is 9.6V so this power by 7805 will (9.6V-5V)x81.6mA = 372.6mW or when the battery is full chage (11.6V-5V)x81.6mA = 534.6mW

4-Motors(http://www.sparkfun.com/commerce/product_info.php?products_id=319 (http://www.sparkfun.com/commerce/product_info.php?products_id=319))--->P4=2x(5x230mA)=2300mW
5-7414--->P5=1uAx5=5uA

so the total power about 2705mW, if the battery voltage is 9.6v , so the current should be  541mA, is this correct???

This Motor having the stall current of 800mA ---> P4=2x(5x800mA)= 8000mW
So all in will 8839.6mW so the current should be 920mA or more.
This assuming your motors is power by the battery directly.
Title: Re: Choosing the correct battery for robot
Post by: Abdulla M.A. on September 17, 2010, 09:51:46 AM
Sorry I forget 7805 ;D

@Soeren
I know how to choose the correct battery, I built a robot in the past year you can check it on my web, second I would
like to do very accurate calculations so I asked for that because I do not have that big experiance in robots.
BTW, I do not need to claim. OK!!! we are humans, so everybody can do a mistake. I saw if you answer my question in good
form will be better from these comments. You feel as a perfect engineer, here !!!!! but in
Electronics Forum, you are nothing  :-\
so stop "The Claim Engineer"

@billhowl
thank you so much, just I have few questions
1- why 7805 need to source out 81.6mA?
2- did you have the data sheet of this motor??

Abdulla
Title: Re: Choosing the correct battery for robot
Post by: billhowl on September 17, 2010, 10:06:09 AM
LM324 --> 2 x 0.8mA = 1.6mA
Two sensors 2 x 10mA = 20mA
L298 --->  60mA
Total 81.6mA
You have not include current for Microcontroller.

I don't have data sheet of the motor, Please read the comments in the link that you posted.
Title: Re: Choosing the correct battery for robot
Post by: Abdulla M.A. on September 17, 2010, 10:43:36 AM
Can I use L293D if each channel can only provide 600mA, in Sparkfun web they said it's possible, but how is this possible
if the motor draw 800mA at stand still??
thankx

Abdulla
Title: Re: Choosing the correct battery for robot
Post by: billhowl on September 18, 2010, 07:28:21 AM
Two important mistakes for newbies to avoid:  low-voltage motors very often draw more current than the L293D can safely supply.  And they usually draw more current than the onboard regulator 7805 can comfortably supply.  The results are burnt-out L293Ds and/or unreliable operation because the motors drag down the 5V supply when they're running.

It's always better to run the motor(s) off a separate power supply if you can.  Next best is to run them off the unregulated input to the MCU (but make sure it has the needed current capacity).

Tamiya 980112M Mabuchi FA-130 Motor (http://www.pololu.com/catalog/product/77)
Mabuchi FA-130 Motor (http://www.mabuchi-motor.co.jp/cgi-bin/catalog/e_catalog.cgi?CAT_ID=fa_130ra)

motors draw a bit too much current though, piggy back two SN754410 or L293D, and it shouldn't cause any harm.
Title: Re: Choosing the correct battery for robot
Post by: chelmi on September 18, 2010, 09:22:06 AM
I use this gearbox in my current project (I need to update my blog about it...), but changed the default motor to a higher voltage, lower current one.
http://www.pololu.com/catalog/product/1117 (http://www.pololu.com/catalog/product/1117)

This way I can used "standard" h-bridge and I don't have to worry to much about stall current, battery, etc.
And apparently, 6V is not good for these motors:
http://www.pololu.com/docs/0J11 (http://www.pololu.com/docs/0J11)
Title: Re: Choosing the correct battery for robot
Post by: Abdulla M.A. on September 18, 2010, 10:05:59 AM
Thank you alot guys for help. :-X

Abdulla