Abdullah Mustafa

← All work

CRAB Lab, Georgia Tech · 2026In progress

Swimming snake robot

A 12-module snake robot with a servo in every joint. I brought up the electronics, then redesigned the links to print flat with no supports after the first version turned out to be close to impossible to assemble. Ten modules now run on their own battery.

Role
Design, electronics and build
Team
With James (Zhaochen) Xu, CRAB Lab
When
October 2026 to now
Tools
Fusion 360, Bambu P2S, DYNAMIXEL XL-320, OpenRB-150, Arduino
Fig. 1 Ten modules running their wave on the robot's own battery, with no tether and no laptop, seen from above on a lab table. It has not been in water yet.
10 of 12modules built so far, one XL-320 servo each
3printed parts per link, no supports
6screws per link
26 gof PLA per link
01

Why a snake

After the centipede robot, the lab wanted a swimmer with many more body joints. With twelve links, two full waves fit along the body and the robot can bend much further before it hits itself. That matters most for turning, which is what we want to study next.

It is built to run untethered. The program is uploaded first and the robot runs on its own battery.

The 12-link concept: eleven body links and a fin-shaped tail.
Fig. 2 The 12-link concept: eleven body links and a fin-shaped tail.
02

First version and electronics

I modeled a first modular version in Fusion 360 in October, with segments, pivot caps and a battery pod, and had parts printing within two days. James then reworked the shells into the 12-link design, and I took on the electronics.

That meant learning a new stack: DYNAMIXEL XL-320 servos on one daisy-chained bus, an OpenRB-150 controller, and a 2S LiPo. On November 1 a printed three-module section ran two servos from the battery with no laptop power. After that I designed the tail, which holds the battery and the board so that every body link can stay identical.

Fig. 3 November 1: three printed modules and two servos running from the battery.
First printed links of the 12-link design.
Fig. 4 First printed links of the 12-link design.
The first tail, cut away: battery underneath, controller on a printed tray.
Fig. 5 The first tail, cut away: battery underneath, controller on a printed tray.
03

What went wrong

On November 11 I tried to assemble a printed section and it was close to impossible. I wrote down everything that fought me, and that list became the requirements for a redesign.

What I found on the benchWhat the redesign does about it
Nuts slid out of their slots whenever I tilted a shellNuts sit in side slots of two posts and are trapped as soon as the base goes on
The lower pivot was loose in every directionA printed pivot boss turns in a round socket
Cables pinched and barely fit through the side windowsThe cable runs down through the hollow pivot, on the joint axis, so its length never changes
Three parts took over 45 minutes of support removalEvery part prints flat on one face with no supports
The horn disk was flimsy and none of the rivets fitFour printed pegs drop straight into the servo horn's own holes
The tail was heavy, with a solid block in its lower halfA hollow tail with the battery on the floor and the board above it
04

The new link

Each link is now three parts. A base holds the servo on crush ribs. A lid carries an arm that reaches back over the previous servo's horn. A strap underneath carries the pivot. Two M3 screws from the top clamp all three together around the previous module, and four small screws tie the arm to the horn.

Everything prints flat. One link is about 26 g of PLA and takes about 1 hour 45 minutes on the lab's P2S. I also drew a fit gauge to set the peg and pivot sizes, but to have a robot ready for a lab meeting I skipped it and printed with slightly loosened holes instead.

One link exploded on the tail: strap, base, servo, lid and screws.
Fig. 6 One link exploded on the tail: strap, base, servo, lid and screws.
The three printed parts around the servo.
Fig. 7 The three printed parts around the servo.
Fit gauge: test pegs, a pivot socket and a nut slot.
Fig. 8 Fit gauge: test pegs, a pivot socket and a nut slot.
Top view in a wave. The joints swing about 80 degrees each way before the links touch.
Fig. 9 Top view in a wave. The joints swing about 80 degrees each way before the links touch.
Tail with the lid off: servo at the front, controller above the battery.
Fig. 10 Tail with the lid off: servo at the front, controller above the battery.
The whole robot, straight.
Fig. 11 The whole robot, straight.
05

Building it

The first two print runs failed on the first layer, on two different printers. I reprinted with a brim and a slower first layer, and by November 16 six links were assembled with seven servos on the bus. On the first bench run the six joints followed the commanded wave about 70 to 100 ms behind it and never touched their hard stops.

The closed tail had no way in: no power switch, no USB, and the battery plug was inside. I redesigned it with a power switch in the side wall, a USB-C port through a right-angle adapter in the lid, and a notch for the battery's balance lead, so I can switch it on, charge it and upload code with the tail closed.

Fig. 12 November 16: the first six links running their wave on the bench, still on a USB cable to the laptop.
First logged run, November 16: commanded (grey) and measured (black) angle for two of the six joints. The dotted lines are the hard stops.
Fig. 13 First logged run, November 16: commanded (grey) and measured (black) angle for two of the six joints. The dotted lines are the hard stops.
The redesigned tail: lid with the USB-C opening, controller board, base with the switch slot, and floor. The switch and adapter are drawn as plain blocks.
Fig. 14 The redesigned tail: lid with the USB-C opening, controller board, base with the switch slot, and floor. The switch and adapter are drawn as plain blocks.
Tail and nine links, ten servos in all, curled up on the lab table.
Fig. 15 Tail and nine links, ten servos in all, curled up on the lab table.
06

Will it float

Before printing twelve links I checked the hydrostatics on the CAD. With estimated masses the whole robot is about 650 g and well under the density of water inside its plastic cover, so it should float with about 15 mm showing.

The catch is roll. A straight chain is barely stable and wants to tip over. Any curve in the body fixes that, so the firmware holds a shallow S shape whenever the robot is at rest.

07

Where it stands

By November 19 the robot had a tail and nine links, ten servos in all. It switches on, waits a few seconds and runs its wave on its own battery, with no tether and no laptop. I showed it at the lab meeting on November 20.

It has not been in water yet. The next problem is waterproofing, since the lab wants something better than a plastic bag over the robot. After that come the last two links, weighing the parts to check the float estimate, and turning tests, which are what the robot was built for.

08

Credit

The 12-link concept and the earlier shells are James (Zhaochen) Xu's. The lab is led by Prof. Daniel Goldman.