Arduino Forum

Using Arduino => Motors, Mechanics, and Power => Topic started by: khimm19 on Apr 12, 2018, 11:45 am

Title: Is my power supply sufficient enough?
Post by: khimm19 on Apr 12, 2018, 11:45 am
I have a project and im using this FF. components to be controlled by arduino uno and 1 power supply.

1x 12v DC motor(https://www.lazada.com.ph/products/high-torque-12v-dc-120rpm-dc-worm-geared-motor-with-gear-reducer-turbo-motor-intl-i161675531-s197762262.html?spm=a2o4l.searchlist.list.56.172e328dOEYusd&search=1)

1x 12v DC motor(https://www.lazada.com.ph/products/550-dc-12v-21000rpmmin-07a-high-power-high-speed-dc-motor-diy-electric-tools-intl-i152146576-s180326232.html?spm=a2o4l.searchlist.list.28.9d5451909ejAIU&search=1)

2x 12v dc solenoid lock(https://www.lazada.com.ph/products/12v-dc-solenoid-lock-i141825423-s161555733.html?spm=a2o4l.searchlist.list.3.74e655f8o7DyfL&search=1)

1x servo motor (https://www.lazada.com.ph/products/oh-mg996r-torque-digital-all-metal-gear-servo-for-helicopter-car-boat-model-i1827351-s2219545.html?spm=a2o4l.searchlist.list.11.61d0568c96hfjO&search=1)

1x HC-SR04

and finally my power supply(https://www.portablepower.com/product/gs-portalac-yuasa-pxl-12090/)



My question:
*Is my power supply sufficient to control all of the components?
     a.if yes, can i directly connect it to the barrel jack of arduino?
     b.if no, can you give me specific power supply in able to control all the components.

tnx in advance
Title: Re: Is my power supply sufficient enough?
Post by: juma_yetu on Apr 12, 2018, 11:54 am
Impossible to say, for at least these 2 reasons:



Title: Re: Is my power supply sufficient enough?
Post by: Robin2 on Apr 12, 2018, 11:59 am
That 12v 9Ah battery should be capable of powering everything. Lead acid batteries can usually supply high currents for short periods. But I can't say how long it will be until the battery needs recharging. I would assume 9Ah really means 3 or 4.

You can certainly connect the battery to the Arduino. However do NOT draw current for the other device through the Arduino.

...R

PS ... do not leave a lead-acid battery in a discharged state - it will greatly shorten its life.
Title: Re: Is my power supply sufficient enough?
Post by: septillion on Apr 12, 2018, 12:04 pm
Your "power supply"is a battery. Those 9Ah batteries can output quite a lot of current so I would say that's plenty.

And yes, you can connect it straight to the Arduino if you don't load down the 5V output of the Arduino with stuff you might not mentioned. And for the motors, speed will change a bi depending on the charge of the battery.

@juma_yetu, first point, read better ;) Second, those lead acid batteries happily do 1C which is plenty.
Title: Re: Is my power supply sufficient enough?
Post by: khimm19 on Apr 12, 2018, 12:10 pm
hmmm.. 3-4 hrs seems too fast.. can i use atx power supply(PSU) instead?
Title: Re: Is my power supply sufficient enough?
Post by: juma_yetu on Apr 12, 2018, 12:12 pm
@juma_yetu, first point, read better ;)
Actually I read fine, posted wrong. It's the second motor which doesn't give the stall current, just no-load of 0.7A.

Title: Re: Is my power supply sufficient enough?
Post by: septillion on Apr 12, 2018, 12:55 pm
Hehe, that's true :D But from the size you can assume it's not very power hungry. I agree, not very scientific but will do for hobby standards (and more then you want to know for industry as well...)
Title: Re: Is my power supply sufficient enough?
Post by: Robin2 on Apr 12, 2018, 07:32 pm
hmmm.. 3-4 hrs seems too fast.. can i use atx power supply(PSU) instead?
If that is a response to my Reply #2, I did not mean 3 or 4 hours. I meant 3 or 4 amp hours - of course if you are drawing 1 amp from the battery it amounts to the same thing. Unfortunately battery manufacturers are very optimistic.

...R
Title: Re: Is my power supply sufficient enough?
Post by: khimm19 on Apr 13, 2018, 04:46 am
Hehe, that's true :D But from the size you can assume it's not very power hungry. I agree, not very scientific but will do for hobby standards (and more then you want to know for industry as well...)
If that is a response to my Reply #2, I did not mean 3 or 4 hours. I meant 3 or 4 amp hours - of course if you are drawing 1 amp from the battery it amounts to the same thing. Unfortunately battery manufacturers are very optimistic.

...R
how can i charge the battery if its attach in the barrel jack of arduino?
Title: how to?
Post by: khimm19 on Apr 13, 2018, 06:33 am
I have a battery (https://www.portablepower.com/product/gs-portalac-yuasa-pxl-12090/) and i want to charge it even if it is attach in arduino via power jack.
Title: Re: how to?
Post by: Wawa on Apr 13, 2018, 06:53 am
You have already mentioned this battery in your other thread.
https://forum.arduino.cc/index.php?topic=541078.0
You could have asked it there.

If you want to charge a 12volt SLA battery, then connect a 12volt SLA battery charger to it.

I always get nervous when powering an Arduino with more than 9volt (>= 13.5volt in this case).
The 5volt regulator on the Uno could overheat, depending on what else the Uno has to power.
You might want to power the Arduino with a 5volt buck converter (on the 5volt pin).
Leo..

Title: Re: how to?
Post by: juma_yetu on Apr 13, 2018, 07:06 am
You have already mentioned this battery in your other thread.
https://forum.arduino.cc/index.php?topic=541078.0
You could have asked it there.
S/he did:

how can i charge the battery if its attach in the barrel jack of arduino?
;)

Title: Re: how to?
Post by: khimm19 on Apr 13, 2018, 07:07 am
how to connect it sir?.. first time encountering that one  :(
Title: Re: how to?
Post by: Wawa on Apr 13, 2018, 07:14 am
Did you search for "SLA battery charger" on ebay or Amazon.
Or ask for it in a local car/motorbike shop.
Leo..
Title: Re: Is my power supply sufficient enough?
Post by: septillion on Apr 13, 2018, 09:05 am
By connecting a charger ;)
Title: Re: Is my power supply sufficient enough?
Post by: Coding Badly on Apr 13, 2018, 09:21 am

@khimm19, please do not cross-post.  Threads merged.

Title: Re: Is my power supply sufficient enough?
Post by: khimm19 on Apr 14, 2018, 05:34 am
That 12v 9Ah battery should be capable of powering everything. Lead acid batteries can usually supply high currents for short periods. But I can't say how long it will be until the battery needs recharging. I would assume 9Ah really means 3 or 4.

You can certainly connect the battery to the Arduino. However do NOT draw current for the other device through the Arduino.

...R

PS ... do not leave a lead-acid battery in a discharged state - it will greatly shorten its life.
so how can i control the servo motor and the HC-SR04 if i will not draw any current from other devices from arduino?
Title: Re: Is my power supply sufficient enough?
Post by: khimm19 on Apr 14, 2018, 06:43 am
You have already mentioned this battery in your other thread.
https://forum.arduino.cc/index.php?topic=541078.0
You could have asked it there.

If you want to charge a 12volt SLA battery, then connect a 12volt SLA battery charger to it.

I always get nervous when powering an Arduino with more than 9volt (>= 13.5volt in this case).
The 5volt regulator on the Uno could overheat, depending on what else the Uno has to power.
You might want to power the Arduino with a 5volt buck converter (on the 5volt pin).
Leo..


can i use this sir? for the 5v pin?
https://www.adafruit.com/product/1065
Title: Re: Is my power supply sufficient enough?
Post by: Wawa on Apr 14, 2018, 06:55 am
Yes, but you don't 'need' 1Amp to power a 50mA Arduino (unless you have to power someting else as well).

This one (https://www.pololu.com/product/2843) is 500mA, and 1/3 of the price.
Leo..
Title: Re: Is my power supply sufficient enough?
Post by: Robin2 on Apr 14, 2018, 08:59 am
so how can i control the servo motor and the HC-SR04 if i will not draw any current from other devices from arduino?
Powering the HC-SR04 from the Arduino 5v pin is probably OK, but not the servo.

If (as @Wawa has suggested) you use a 5v regulator to power the Arduino then you could also use that to power the Servo and the HCSR04. If it is a small servo the 500mA should be sufficient.

...R

Title: Re: Is my power supply sufficient enough?
Post by: khimm19 on Apr 15, 2018, 05:22 am
Powering the HC-SR04 from the Arduino 5v pin is probably OK, but not the servo.

If (as @Wawa has suggested) you use a 5v regulator to power the Arduino then you could also use that to power the Servo and the HCSR04. If it is a small servo the 500mA should be sufficient.

...R


i have posted my servo.. can u plss suggest what should i do to control it.. why cant i use the 5v pin of arduino to control it?
Title: Re: Is my power supply sufficient enough?
Post by: juma_yetu on Apr 15, 2018, 05:43 am
i have posted my servo.. can u plss suggest what should i do to control it.. why cant i use the 5v pin of arduino to control it?
When you say "control" presumably you mean "power", because you will control it with a 5V digital output; powering it is a different matter.

According to this page (http://www.electronicoscaldas.com/datasheet/MG996R_Tower-Pro.pdf), that MG996R servo needs substantial current. When it's running it draws 500-900mA, but more to the point at stall it requires 2.5A. Stall current is what it draws for a short time each time it starts to move, and of course any time it actually jams.

So you need to provide at least 2.5A just for the servo.

(https://forum.arduino.cc/index.php?action=dlattach;topic=541078.0;attach=253534)

Title: Re: Is my power supply sufficient enough?
Post by: khimm19 on Apr 15, 2018, 06:19 am
When you say "control" presumably you mean "power", because you will control it with a 5V digital output; powering it is a different matter.

According to this page (http://www.electronicoscaldas.com/datasheet/MG996R_Tower-Pro.pdf), that MG996R servo needs substantial current. When it's running it draws 500-900mA, but more to the point at stall it requires 2.5A. Stall current is what it draws for a short time each time it starts to move, and of course any time it actually jams.

So you need to provide at least 2.5A just for the servo.

(https://forum.arduino.cc/index.php?action=dlattach;topic=541078.0;attach=253534)


so i cant use the 5v pin of arduino? so it means i need extra power supply just for the servo?
Title: Re: Is my power supply sufficient enough?
Post by: juma_yetu on Apr 15, 2018, 06:26 am
so i cant use the 5v pin of arduino? so it means i need extra power supply just for the servo?
Even tiny servos like this (https://www.addicore.com/Addicore-SG90-Mini-Servo-p/113.htm) are up in the 750mA area, too hungry to power off the Arduino.

From time to time I run a tiny servo like that off the Arduino just for a quick test, and it sometime resets. So it's never a good idea.

So yeah, it's very clear that you need some substantial external power supply for yours.

Title: Re: Is my power supply sufficient enough?
Post by: septillion on Apr 15, 2018, 12:23 pm
Just looking at the site you listed before I would go for:
https://www.lazada.com.ph/products/lm2596s-dc-dc-buck-converter-step-down-adjustable-power-module-i6005010-s7605914.html (https://www.lazada.com.ph/products/lm2596s-dc-dc-buck-converter-step-down-adjustable-power-module-i6005010-s7605914.html)

If you're planning to use the servo heavily I would add a small heat sink but if you don't tend to let the servo stall/move heavy stuff it's fine.
Title: Re: Is my power supply sufficient enough?
Post by: khimm19 on Apr 16, 2018, 09:38 am
Just looking at the site you listed before I would go for:
https://www.lazada.com.ph/products/lm2596s-dc-dc-buck-converter-step-down-adjustable-power-module-i6005010-s7605914.html (https://www.lazada.com.ph/products/lm2596s-dc-dc-buck-converter-step-down-adjustable-power-module-i6005010-s7605914.html)

If you're planning to use the servo heavily I would add a small heat sink but if you don't tend to let the servo stall/move heavy stuff it's fine.
can i connect the HC-SR04 also in this with the servo motor?
Title: Re: Is my power supply sufficient enough?
Post by: septillion on Apr 16, 2018, 09:52 am
You can but I wouldn't :D The HC-SR04 is pretty low current and it likes a stable voltage. A servo is a beast when it comes to current which will probably make the 5V prone to having spikes and dips. Not a problem for the servo but it is for an IC. And because the HC-SR04 is low current you can connect it to the Arduino 5V which is decoupled from the servo and thus more stable.
Title: Re: Is my power supply sufficient enough?
Post by: khimm19 on Apr 16, 2018, 10:01 am
You can but I wouldn't :D The HC-SR04 is pretty low current and it likes a stable voltage. A servo is a beast when it comes to current which will probably make the 5V prone to having spikes and dips. Not a problem for the servo but it is for an IC. And because the HC-SR04 is low current you can connect it to the Arduino 5V which is decoupled from the servo and thus more stable.
TY sir.. hmm.. can u help me code my project?
Title: Re: Is my power supply sufficient enough?
Post by: septillion on Apr 16, 2018, 10:31 am
Of course, just describe into detail what you want, what you have (code and schematic (NO Fritzing breadbord mess) and what the problem is (does not work doesn't cut it ;) ).
Title: Re: Is my power supply sufficient enough?
Post by: khimm19 on Apr 17, 2018, 04:59 am
Of course, just describe into detail what you want, what you have (code and schematic (NO Fritzing breadbord mess) and what the problem is (does not work doesn't cut it ;) ).
i will post my wiring diagram diagram tom. what i want is that when my ultrasonic sensor detect anything pass by it will trigger the servo to rotate 90° then back after 1 second, at the same time the DC motors also run for 2 mins. and then trigger the solenoid locks after the 2 min.. is this possible?
Title: Re: Is my power supply sufficient enough?
Post by: septillion on Apr 17, 2018, 09:31 am
yeah, no problem :)
Title: Re: Is my power supply sufficient enough?
Post by: khimm19 on Apr 18, 2018, 11:24 am
so this is my wiring diagram..
(https://forum.arduino.cc/index.php?action=dlattach;topic=541078.0;attach=253916)
Title: Re: Is my power supply sufficient enough?
Post by: Robin2 on Apr 18, 2018, 07:25 pm
Please display your image in your post so we can see it without downloading it. See this  Simple Image Guide (http://forum.arduino.cc/index.php?topic=519037)

...R
Title: Re: Is my power supply sufficient enough?
Post by: khimm19 on Apr 20, 2018, 05:49 am
yeah, no problem :)
i have posted my wiring diagram plss help me with the codes sir.. im planning to use the delay function but as i go forward searching.. i think it will not do the job
Title: Re: Is my power supply sufficient enough?
Post by: septillion on Apr 20, 2018, 09:39 am
We're not going to write the program for you ;) So you have to make a start.

Delay() is a pore choice in most instances because it stops EVERYTHING dead in his tracks, including reading buttons etc. Might not really be a problem here but if you want to learn along the way, have a look at Blink without delay.

And base line, start by chopping up all you want to do do is small baby steps. Things like "start motor", rad button etc and try to make a complete description of what you want to do and/or make a flow diagram.
Title: Re: Is my power supply sufficient enough?
Post by: khimm19 on May 01, 2018, 05:38 am
im done with my project.. my problem now is my DC lock cant trigger when something heavy is pressured in it.. what i want to do with it is to carry something then drops suddenly.. does it do that?
Title: Re: Is my power supply sufficient enough?
Post by: Robin2 on May 01, 2018, 09:07 am
my problem now is my DC lock cant trigger when something heavy is pressured in it..
That sounds like a mechanical problem.

Please post a diagram that shows the actual arrangement of the lock.

Maybe (for security) it is a good idea that it cannot move when it is being abused?

...R
Title: Re: Is my power supply sufficient enough?
Post by: khimm19 on May 02, 2018, 12:09 pm
That sounds like a mechanical problem.

Please post a diagram that shows the actual arrangement of the lock.

Maybe (for security) it is a good idea that it cannot move when it is being abused?

...R
Tnx sir.. i have fix that issue..
i have an AC motor of the dryer from washing wachine and i am controlling it with arduino and relay.. my problem now is that its RPM is too fast (900RPM) and i want to reduce to 100RPM.. any suggestions sir on how i could do that?
Title: Re: Is my power supply sufficient enough?
Post by: Robin2 on May 02, 2018, 12:36 pm
Tnx sir.. i have fix that issue..
i have an AC motor of the dryer from washing wachine and i am controlling it with arduino and relay.. my problem now is that its RPM is too fast (900RPM) and i want to reduce to 100RPM.. any suggestions sir on how i could do that?
I have no idea.

...R
Title: Re: Is my power supply sufficient enough?
Post by: Coding Badly on May 02, 2018, 08:45 pm
i have an AC motor of the dryer from washing wachine ... RPM is too fast (900RPM) ... reduce to 100RPM
any suggestions sir on how i could do that?
This would be a great moment to start a new thread on that much different topic.

But, there is an obvious answer: gear / belt reduction.