Projects2026

Sea turtle robot

Role
Umbilical and mechatronics lead
Team
Five engineers in one subassembly group
  • Mechatronics
  • Control

I led the umbilical and mechatronics work on a robotic sea turtle. I built the Simulink model of its variable-buoyancy depth control and tuned the PID controller.

Result

In a tank test of the buoyancy tube, PID control settled in 4.5 s against 11.5 s for P control

CAD of the sea turtle robot with its shell opened, labelled. The umbilical and cable management reel sits beside the robot with a handheld controller on its cable; inside the shell are the clear buoyancy cylinder and two round electronics enclosures, with the shell and flippers around them.Assembly CAD
Photo from above of the built robot with its shell removed, showing the clear buoyancy cylinder, wiring, servo mounts and electronics on the base plate, four flippers, a green tail section and the yellow tether.Built prototype, shell removed
The robot as designed and as built. The yellow tether is the umbilical to the surface.

Problem

The robot changes depth with a variable-buoyancy cylinder: a linear actuator moves a diaphragm, which changes the volume of water the cylinder displaces. My job was to close the loop, so the robot holds a commanded depth on its own.

Design

The buoyancy cylinder sits inside the shell, tilted under its arch. The two round electronics enclosures sit low in the hull beneath it, and the umbilical leaves the robot to a reel at the surface.

I modelled the buoyancy tube in Simulink as a single body moving vertically, with an effective mass and linear hydrodynamic damping. The loop runs from the depth error through the controller, motor driver and actuator to the diaphragm, and back through the pressure sensor. I tuned the gains with the Ziegler–Nichols method: raising a proportional gain until the depth response oscillated steadily, then calculating the PID gains from that gain and the oscillation period.

Side section CAD of the robot, labelled. The buoyancy system, a cylinder with a red actuator inside, sits tilted under the arched wood-strip shell; two round electronics enclosures sit low in the hull below and behind it.Side section through the robot
Where the buoyancy system and electronics enclosures sit inside the shell.

Before closing the loop, the group measured what the actuator can do. Over three extension and retraction cycles, the cylinder produced 6.45 ± 0.60 N of buoyancy force at 50 mm of diaphragm displacement.

The assembled sea turtle robot seen from above, with a wood-strip shell and four flippers.The built robot, from above
The variable-buoyancy cylinder, a clear tube holding a linear actuator that moves a diaphragm.The variable-buoyancy cylinder
The finished robot and its buoyancy cylinder.

Testing and results

Two tests set up the results: a calibration of the depth sensor, then the closed-loop control test on the buoyancy tube.

Pressure sensor calibration

The depth reading comes from a pressure sensor, so the group checked the sensor on its own first, before any control. We held the sensor against a ruler and lowered it through the tank in 5 cm steps from 0 to 30 cm, letting the reading settle at each step. The sensor tracked depth, but in steps: its reported resolution was 0.069 m, and the maximum measurement error was approximately ±0.069 m.

  1. Transient spikes while the sensor was being moved
  2. Quantisation: readings step between levels 0.069 m apart

Measured depth against the actual depth as the sensor was lowered in 5 cm steps. Pressure sensor calibration, from the group's testing.

The spikes are local pressure disturbances from moving the sensor through the water; they settle once it stops. The quantisation stays, and it shapes the control results below.

Closed-loop depth control

This test ran the controllers on the buoyancy tube by itself, not on the assembled robot. The tube was front-heavy and pitched forward once submerged, so we tied a counterweight to its rear to keep it close to level. Each controller started at the surface with a 0.30 m depth command.

Closed-loop results for the buoyancy tube at a 0.30 m setpoint, from Table 5 of the testing report. Bars show settling time and steady-state error; shorter is better.
ControllerRise timeOvershootSettling timeSteady-state error
P6.0 s0%11.5 s0.024 m
PD2.7 s12%5.0 s0.015 m
PID2.4 s8%4.5 s0.010 m
Closed-loop results for the buoyancy tube at a 0.30 m setpoint, from Table 5 of the testing report. Bars show settling time and steady-state error; shorter is better.

From P to PID, rise time fell from 6.0 s to 2.4 s and settling time from 11.5 s to 4.5 s. Adding the derivative term cut settling time the most; the integral term then brought the reported steady-state error down from 0.015 m to 0.010 m.

The measured depth switches between neighbouring levels around the setpoint, and the calibration explains why: the sensor can only report depth in 0.069 m steps, so the controller keeps switching while the true depth stays close to the setpoint. The 0.010 m figure is the reported error used to compare the three controllers in this test. It is finer than the sensor’s resolution, so it isn’t the assembled robot’s depth accuracy.

Chart of depth against time over 30 seconds for P, PD and PID control, with the 0.30 m target and the theoretical response. The measured traces step between fixed depth levels and keep oscillating around the target.
  • Target depth
  • Theoretical response
  • P
  • PD
  • PID
Closed-loop depth traces over 30 s View full-size depth chart
Measured depth for P, PD and PID control against the model's predicted response. The measured depth switches between neighbouring levels around the setpoint. On a phone, the chart scrolls sideways; the key stays below it.
The buoyancy tube under closed-loop PID control in the test tank, commanded to a depth of 0.30 m. 37 seconds.

What I’d change

A finer pressure sensor first: its resolution, not the controller, limits how steadily the robot can hold depth. I’d also add a deadband around the setpoint, so the actuator stops chasing quantisation steps and the motor driver runs cooler.