Building a Lego-powered Submarine 4.0 - automatic depth control
Building a Lego-powered Submarine 4.0 - automatic depth control

This radio-controlled submarine can maintain a steady depth or a certain distance from the bottom.

It is equipped with a pressure sensor and a laser distance sensor.

Raspberry Pi and PID control are used for automation.

Tested in a swimming pool and a small river (at the end of the video).

Enjoy!