I am a beginner and want to use 8 Servos (Miuzei 9g with 4,8V to 6V) with my Arduino Mega 2560 R3 for a school project. Is it possible or how is it possible? I have a 11,1V LiPo battery for powering the motor as well. To be able to use the battery for the servos i have voltage regulators (7805). They should bring it to 5V, but whatever I do it won't work.
I would be very happy if some of you have a sollution.
Thank you.
It is perfectly possible.You will need some code. And some connections. And a much better 5V supply. Each servos may take a maximum of 650mA, 8 x 650mA is way more than a 7805 can supply (unless you have a 7805 for each servo). Much better would be a 5V DC-DC converter, preferably with around 5A.
Please post a schematic showing how everything is connected and your code. Also explain what it is supposed to do and what "it won't work" means in detail.
Thanks for your help. I actually have a 7805 for each servo. It is supposed to control 8 flaps on a drone, each flap with one servo. The code is programmed by a classmate, I can put it at the end of my message. For testing the power supply I tried to power at first only one servo with the LiPo battery and a 7805. But I used the Servo Sweep Sketch from Arduino for testing. In this case the servo either does nothing or quivers. I tried to make the circuitplan on the internet with my computer, but did not succeed. So i made a handwritten plan. I hope it is ok.
My classmate, who wrote the code, tested the code and it worked. I don't know what the ServoInput library is for, but i asked him and now I wait for his answer (I will write again when I have an answer). The problem that I try to solve is the power supply for the servos with the LiPo battery.
The library looks like all it does is to allow you to determine the position most recently written to the servo. If that is the case then why not use the Servo library read() function ?
Go back to basics and try the Sweep example with 1 servo again. It is not present in your circuit drawing but do the servos and Arduino have a common GND connection ?
I added a GND connection between the servo and the arduino and it works. Thank you very very much, I tried it for 5 hours now and grilled two voltage regulators and one servo. But it works now. Thanks a lot
Today I found a new problem. The servos are getting powered by the LiPo, so I added more and more servos. After I added the fourth servo, they started quivering. If I connected the most quivering servo with a voltage messuring device they all stopped quivering and moved as supposed to. Now I'm not sure if I need some capcitors or something else (for example resistances). I searched on the internet, how the messuring device works and it seems to have an inbuild resistance.
Do you still have a 7805 for each servo? Does each 7805 have the 2 capacitors it needs? What is the specification of the LiPo (voltage, capacity and C-rating)? How is everything connected together (NOTE - through a breadboard is the wrong answer!).
Ah right, thank you. I tried to achieve better visibility for the picture and therefore stretched it
When I saw the problem the cable was connected right.
The Servos still quiver. I think I need the capacitors but I don't know, which specifications they need. Is the stated voltage in the product describtion the maximum of voltage he can sustain or is it his voltage output?