Current flows through a given path at a "quantity" (in amps) dictated by the most resistant part of the path. A very comparable analogy is that of water travelling through a series of pipes: it can only travel as fast as it does through the most restrictive bottleneck in the path. Considering a simple straight pipe; it doesn't matter if 90% of the pipe is a metre wide, if there is a part of it that is only a millimetre wide, the overall flow of the water is only as fast as the maximum flow going through that millimetre bottleneck (making the pipe as effective as a pipe that is entirely 1 millimetre in diameter). The same principles apply to current flow. Furthermore, if a large amount of current is run through a wire with such a bottleneck, the result will be a lower current flow (dictated by the bottleneck) with heat being generated around the bottleneck.
Resistance of a wire (conceptually equivalent to the width of a water pipe bottleneck (high resistance = narrow pipe)) is given by the formula:
Resistance = (resistivity of material * length of wire) / cross-sectional area
In short: high resistivity (the intrinsic resistance of a material) and long length raise resistance, while a thicker wire lowers the resistance.
The type of alligator clip that I used
Now, I'm not sure what metal these alligator clips were made of, but since they're silver-coloured I know it's not copper, which has one of the lowest resistivities of all metals, meaning that its resistivity is relatively high (or at least higher than it otherwise could be). It's worthy of note that the wire itself is copper, but the clips are not, and in this case, the difference in resistivity of copper doesn't make the difference. This indicated that they were not meant to carry large amounts of current (current on the scale of an Arduino board would be fine, but the much higher current that I was trying to use was too much). Furthermore, the actual wire in them was not very thick (low cross-sectional area). Finally, the actual contact between the teeth of the clamps and the battery contacts was extremely thin (since the teeth are pointy, it was really just the tip). Altogether this meant that the alligator clips had extremely high resistance, which was limiting the current being supplied to the hexapod. Mystery solved!
The obvious solution to this was to exchange the alligator clips for something else, but before I swapped them out, I had another current-bottleneck-related problem. I ran the hexapod for a bit too long, and an even weaker bottleneck made itself known: The very thin jumper wire (shown below) that carried all of the current for the servos melted clean in half. Specifically, the ground wire melted, breaking at the white wire's end of the soldered join, shown by the arrow.
So now I had no way of powering any of the servos. Obviously, this was a problem, and one that would have happened immediately had I supplied the part with 15A. It's also entirely possible that this was actually the cause of the bottleneck that I thought I solved by replacing the alligator clips; regardless, both of the possibilities needed to be fixed.
My solution was to get some thicker wire rated for higher current and create a single piece that took input from the battery and split it into the two clusters shown above and the barrel jack used to power the Arduino. This required a fair bit of soldering, but ultimately wasn't too difficult. I didn't take any photos of it before installing it, so I've tried to make the photos below as clear as possible.
The cable is shown by the green arrows.
The cable supplies power to the Arduino via the barrel jack.
The cable splits into the splitters so that the servos can be plugged in underneath.
The battery is plugged in underneath.
With the electrical system now at a standard that wouldn't cause it to melt under operation, I had to mount the battery on board, since I obviously don't want the hexapod to be dragging it around. Thankfully, with the current now uninhibited, the hexapod is actually surprisingly strong, and can support the weight of everything (including the battery) with ease.
I had hoped to store the battery between the top and bottom body parts, where it would be more out of the way, but it wouldn't fit. Ultimately, I used the low-tech but undeniably functional option of taping it to the top of the frame and then sticking the Arduino on top of it by tying it down with twist ties going through the screw holes. As you can probably tell, at this point I had stopped bothering to try to do things with "proper" hardware, but I have no doubt that these construction choices worked as well as any other option.
And so, after nearly a semester of work, I finally had a fully functional hexapod!
JUST KIDDING. Cue the next problem.
I had hoped to store the battery between the top and bottom body parts, where it would be more out of the way, but it wouldn't fit. Ultimately, I used the low-tech but undeniably functional option of taping it to the top of the frame and then sticking the Arduino on top of it by tying it down with twist ties going through the screw holes. As you can probably tell, at this point I had stopped bothering to try to do things with "proper" hardware, but I have no doubt that these construction choices worked as well as any other option.
In this photo, you can see the masking tape and black twist ties
that I used to secure everything to the frame.
And so, after nearly a semester of work, I finally had a fully functional hexapod!
JUST KIDDING. Cue the next problem.
The longitudinal (up-and-down) hip servo on the mid-right leg died during testing. The problem was that one of the small plastic gears inside of it snapped into bits - no chance of an easy fix. Thankfully, I bought 20 servos, needed 18 to build the hexapod, with 1 DOA, leaving 1 spare. I'm going to cut the dead servo's wires close to the servo itself and resolder, essentially replacing nothing other than the servo, since pulling out and replacing the wires further down the track would be much more work.
Once that's done, the last item of business this semester will be wiring an on/off switch. Ideally I'd do it across the power supply, but I'm pretty sure that most basic electrical switches couldn't handle 15A (now is as good a time as any to mention that 15A is NOT the normal operating current; I'm using it as an upper bound so that the hexapod can handle operation in any forseeable condition). However, giving the state of the switch to the program means that my code has to constantly check if it's supposed to stop, which adds complication to the program that I'd like to avoid.
A minor additional problem that I'm facing is that the nice compact switches that I bought from Jaycar (first image below) seem to have metal casing, which I fear might be able to short components on the Arduino if it touches the wrong things. The plastic switch that I have (second image below) shouldn't have that problem, but it's much bulkier.
The outer casing seems to be metal, but I'm not sure how conductive it is.
This switch is pretty bulky and inconvenient.

























