Making a small working submarine with LEGO and Raspberry Pi
This radio-controlled submarine is smart enough to maintain a steady depth and keep a set distance from the bottom of the body of water it’s dropped in. A pressure sensor and a laser distance sensor make all of this possible. The LEGO submarine has so far survived tests in a swimming pool and a real-life river.
Specs
- The brains of the operation: Raspberry Pi Zero 2 W
- Ballast tank: 60 ml syringe
- Honeywell pressure sensor
- SparkFun TFMini-S laser distance sensor
- Power supply: Lego 9V Battery Box (you’ll need a voltage regulator as the Raspberry Pi takes 5V)
- On-board camera: RunCam 5 Orange
The submarine is entirely remote-controllable. The syringe submarine needed a low-frequency radio controller that is able to penetrate water, but those are really hard to find. The maker resorted to canonicalizing a mini u-boat toy they found on Amazon.
The code is written in Python.
See the video below and more on the Raspberry Pi News and Brick Experiment Channel.
Read More: Making a small working submarine with LEGO and Raspberry Pi #PiDay #LEGO @Raspberry_Pi