SparkFun Forums 

Where electronics enthusiasts find answers.

General project discussion / help
Did you make a robotic coffee pot which implements HTCPCP and decafs unauthorized users? Show it off here!
By jackissac
#195235
Hello guys!

I am doing a hexapod using arduino mega, SainSmart mega sensor shield V2 (https://www.sainsmart.com/sainsmart-sen ... sd-io.html), Tunirgy LiPo battery 1000mAh 2s 20-30C discharge rate (https://hobbyking.com/en_us/turnigy-100 ... -pack.html), a voltage regulator (https://amzn.com/B00C4QVTNU) and 18 Tower Pro SG90 micro servos. My code is correct and the legs are moving properly when I hold it in the air, but when I put it in the ground. The legs just stall and not moving. I can feel all the six legs' torques aren't enough compared to powering a single leg at one time. It should be the power issue but I use LiPo battery to power the servos and a 9v battery to power the arduino so the power for legs should be enough (please let me know which type of battery I should use if the one I am using right now is not correct). I can tell the load of my robot is heavy but the legs' torque are definitely not enough. If the leg can supply enough torque it should be able to support this kind of load.I measured the voltage output from the servo shield. It is varying from around 2V to 5V when all six legs are moving.
I have tried another plan for my hexapod. I bought 4 NIMH batteries (2700 mAh rechargeable POWEREX 1.2V. link: https://www.amazon.com/Powerex-MHRAA4-2 ... +batteries). I connected them to the servo shield using the external power mode with two wires. When I tried the first servo, it is working fine, but the arduino mega board underneath the servo shield burns when I connect the second servo. But the second servo is not broken (I tried that servo after this thing happened). I am really confused about this. The reason why I tries 4 NIMH batteries is because I saw a project called Hexy that it uses the same power supply for 18 micro servos and it works perfect. So I decided to try them on my project. From calculation, 4 NIMH batteries are 4.8V, it should not be able to burn anything. I am so confused. I really need help with this thing. My questions: 1: According to my descriptions, where is the problem with my hexapod, do I need to use another power supply? which brand and type of battery should I use? Feel free to provide another plan of different electronics to fulfill the hexapod! 2: why 4 NIMH rated at 4.8V in total will burn the arduino mega when connecting the second servo (servos are not broken.) 3: Is the Tower Pro SG90 a good servo? Is it possible that the servo is bad and not designed for the hexapod?
Thanks so much for everyone who is trying to help. I really need a pro to help me to troubleshoot this thing. I am struggling by my own for a long time. Thx!




Update: I'v tried to measure the current flowing through the servo for two situations: 1: I measured it when connecting only one servo, I put my hand against the servo and it draws current up to about 0.5A, and it draws 0.1A in normal situation (no barrier against to it). 2: I connect all 18 servos and then measure the single servo, it is vary like from 0.02A to 0.07 or from 0.02A to 0.1A even when I put my hand against to it. (I don't quite remember the exact value of current draw but it is definitely less than the first situation!!).
From the above, it looks like it is a battery issue but the battery should be enough with no doubt. This is why I am so confused about the power supply.
By jremington
#195238
A servo can draw more than 1 Ampere, when starting up or working hard, so plan on a VERY BEEFY power supply with heavy wiring.

There is no doubt in my mind that your battery and/or wiring is inadequate. Consider RC racing car battery packs. I've been happy with Tenergy battery packs from http://www.all-battery.com/