Go Down

Topic: Is my power supply sufficient enough? (Read 1 time) previous topic - next topic

Coding Badly


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


khimm19

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?

khimm19

#17
Apr 14, 2018, 06:43 am Last Edit: Apr 14, 2018, 06:44 am by khimm19
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

Wawa

Yes, but you don't 'need' 1Amp to power a 50mA Arduino (unless you have to power someting else as well).

This one is 500mA, and 1/3 of the price.
Leo..

Robin2

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

Two or three hours spent thinking and reading documentation solves most programming problems.

khimm19

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?

juma_yetu

#21
Apr 15, 2018, 05:43 am Last Edit: Apr 15, 2018, 05:45 am by juma_yetu
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, 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.




khimm19

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, 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.




so i cant use the 5v pin of arduino? so it means i need extra power supply just for the servo?

juma_yetu

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 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.


septillion

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

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.
Use fricking code tags!!!!
I want x => I would like x, I need help => I would like help, Need fast => Go and pay someone to do the job...

NEW Library to make fading leds a piece of cake
https://github.com/septillion-git/FadeLed

khimm19

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

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?

septillion

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.
Use fricking code tags!!!!
I want x => I would like x, I need help => I would like help, Need fast => Go and pay someone to do the job...

NEW Library to make fading leds a piece of cake
https://github.com/septillion-git/FadeLed

khimm19

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?

septillion

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 ;) ).
Use fricking code tags!!!!
I want x => I would like x, I need help => I would like help, Need fast => Go and pay someone to do the job...

NEW Library to make fading leds a piece of cake
https://github.com/septillion-git/FadeLed

khimm19

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?

Go Up