Hello!
I am working on a project related to the mg995 servo.
There is such a problem with improper nutrition.
If you connect a 5V 2.4A battery, it doesn't work after 2 times for some reason.
And when powered from a 5 V 2 A network, it works adequately.
Please tell me why this is so.
Where am I wrong about something
Sketch:
#include <Servo.h>
Servo myservo; // create servo object to control a servo
void setup() {
myservo.attach(2); // attaches the servo on pin 2 to the servo object
myservo.write(0);
}
void loop() {
myservo.write(180);
delay(3000);
myservo.write(0);
delay(3000);
}
the battery might be crap and not holding the charge..
link to your boost converter ? (why would you use something with a display if you want to save on energy consumption. you want the most efficient power boost converter...)
Thank you for your comments.
You mean the 6v battery pack.
The disadvantage is that they do not charge. I need a battery that I use 1-2 days and charge.
I checked it out. On the first Usb converter, I charged the phone (so that the converter would not turn off), on the second the entire sensor. Everything works almost like a power supply. But I can't carry and charge my phone to make the sensors work ...
please tell me what can be done?
Calculate the number of Ampere-hours (battery capacity) required by multiplying the average system current consumption in Amperes and the number of hours in use between recharges.
Thanks! This is a very good option
But I live in Kazakhstan, and the parcel will arrive to us only in a month. So, is it possible to come up with something that I have in my hands
That boost converter may work but mind that it will draw significant quiescent current, which is quite a drain on your batteries.
Alternative option: try to use 2x Li batteries. Voltage is a bit higher than the rating of the servo, my experience is that they will run faster but the electronics seem to handle the 8.4V of two fully charged batteries just fine. If the servo is loaded constantly it's a recipe for disaster as they are likely overheat with this extra voltage (do a servo disconnect call in your code to stop the signal and have the servo not try to keep its position). No boost circuit; power your Arduino via the VIN or RAW pin, not the 5V pin.
Whether that can make two days without recharge depends a lot on the rest of your components. An Uno will suck those batteries dry on its own, for example.