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!
0:00 building
2:36 tests in water
3:48 long journey in a small river
6:47 full Python code
SPECS
Displacement: 2.4 kg (5.3 lb)
Test depth: 1.5 m (5 ft)
Hull: acrylic plastic cylinder (250x110x3mm), SAN plastic lid (2mm thick)
Lid seal: o-ring 2.5 mm (NBR 70 shore)
Ballast tank: 60 ml syringe (Eotia marinade injector), Lego EV3 Medium Servo motor (45503)
Forward propeller: drone propeller (Diatone Bull Nose 4x4.5), Lego PF L-motor (88003)
Turn propeller: Lego propeller 3 blade (6041), Lego PF M-motor (8883)
Magnetic couplings: K&J Magnetics D38-N52 neodymium magnet, TapeCase 423-5 UHMW Tape, silicon spray
Motor driver: 2x Pololu 2130 DRV8833 Dual H-bridge
Radio control: 27 MHz controller dissembled from a toy submarine (no-name chinese Mini U Boat)
Pressure sensor: Honeywell SSCMANV030PA2A3 2 bar
Laser distance sensor: SparkFun TFMini-S Micro
Computer: Raspberry Pi Zero 2 W
Power supply: Lego Rechargeable Battery Box 9V (8878), Pololu 2123 S7V8F5 5V voltage regulator
On-board camera: RunCam 5 Orange
MORE DETAILS
LONG JOURNEY FULL VIDEO
CODE
#cHnVI6NjaPkfZcdZvFZZ0Q
or
PREVIOUS SUBS
1.0 syringe ballast
2.0 magnetic couplings
3.0 balloon and compressor
MUSIC
Tommy Baynen - Stone Paths
1 view
1986
616
2 weeks ago 00:41:23 1
I Took My Teacher to a Deadly Uninhabited Island To Survive
2 weeks ago 00:01:28 2
А ТЫ СМОЖЕШЬ 100-РАЗ В ДЕНЬ🫢#спорт #pushup #здоровье #bodybuilding #motivation #fitness #workout
3 weeks ago 00:48:20 1
Lembke - Dopamine Nation and the Age of Digital Drugs | Prof G Conversations
3 weeks ago 00:42:31 3
Secret Door Bookcase made from Pallet Wood and Scrap
4 weeks ago 00:10:32 21
Primitive Technology: Hut burned down, built new one
4 weeks ago 00:00:00 1
Australia Cyclone 2025 | LIVE Cyclone Alfred Landfall | First Cyclone To Hit East Coast In 50 Years
4 weeks ago 00:00:05 1
Economic Growth
4 weeks ago 00:00:05 1
Typhoon USA
4 weeks ago 00:00:07 1
Destructive Weather Warfare
1 month ago 00:12:01 168
RTX 5070 Ti vs RTX 4070 Ti Benchmark 💪 Max Settings Gameplay In 10 Games at 4K!
1 month ago 00:11:41 1
I UPGRADED new LEGO minifigures!
1 month ago 00:59:55 1
Énorme Tweet de Trump résumant Tout ce qui se passe-Pape François-Kash Patel:“L’impunité, C’est Fini
1 month ago 00:03:54 16
Primitive Technology: Wood Ash Cement
1 month ago 00:16:14 4
Coffee & Dreams: Uplifting Motivational Music for Resilience & Personal Growth
1 month ago 01:32:50 4
Human Flourishing & The Crime of the Century | The Acceptance of Life Podcast Ep. 03