Arduino Nano, Servo SG-90, +9 V PP3 battery, stabilizer +6V L7806
Stabilizer has two outputs: 2. +9 V directly from the battery, 1. +6 V B. is Voltage in for Arduino A. is Voltage in for Servo
(See attachment)
First it was connected like: 2 -> A, 2 -> B
This option works great. But I'm afraid to burn the servo, though the load it is episodic. (Loads last for 0.1 second not more than once per second)
If I connects via stabilizer: 1 -> A, 2 -> B
Servo goes crazy - goes from 0 to 180 and back infinitely. Arduino board is operating normally.
I tried option 1 -> A, 1 -> B - in this embodiment, servo emits strange sounds, Arduino does not work.
Option 1 -> B, 2 -> A works perfectly, but it defeats the purpose of the stabilizer, the servo is still +9V
Questions:
What's going on and how to fix it? I'd like to use 1 -> A, 2 -> B
Is it possible to feed servo from +9V. If it does not work all the time, it may work normal?
Typical servos voltage ratings are 4.5 to 6.0 vdc, operating them at 9vdc is most likely will only cause damage to the servo. Your most fundamental problem is that a PP3 battery is just not a good match for powering a servo even if you use a 6vdc regulator, because of the current draw requirements of a typical servo. A battery pack made up of AA alkaline cells is a better match if you must use batteries, or a suitable rated 1 amp wall wart power supply. If running multiple servos allow current capacity of the power supply of 1 amp per servo.
Battery size is critical. And actually PP3 has enough power to run this circuit as is clearly seen when board is connected without regulator. I don't need to run this for long. Even if battery will drain in 10 minutes - it's fine - it is Li-ion rechargable
It is small servo with minimum torture that is powered on for like 0.1 sec in long periods. Show me a good site to look for load CURRENT (not only VOLTAGE) datasheets for servos. Was I supposed to know this telepathically?
I have used 5 x 13kg/cm servos and they consumed <2A when used same time.
PS Though I still hate that almost no site provides load CURRENT for servos they sale
I did some tests on servos. I use the "pot" code, the servo current usinf an external +6 V and test the current. One servo on continous mode and the other "normal' servo. The current is : about 150 mA for the continous ( move CW or CCW ), and 50 mA to 200 mA for the normal type ( move & stop )
Therefore, when you use a servo, design for 250 mA for each servo. The more servos, the more currents it will eats. And using a battery to power them, expect the battery to be drain pretty fast... If I was making a robot using motors & servos, I will be using a car battery for LOL. Go Ahead, Drain This ( car battery ) !!! ]
The motto is : Electric Motors Eats Currents for Breakfast