{"id":142880,"date":"2022-07-26T08:02:43","date_gmt":"2022-07-26T13:02:43","guid":{"rendered":"https:\/\/lifeboat.com\/blog\/2022\/07\/raspberry-pi-zero-2-w-lego-powered-submarine-makes-a-splash"},"modified":"2022-07-26T08:02:43","modified_gmt":"2022-07-26T13:02:43","slug":"raspberry-pi-zero-2-w-lego-powered-submarine-makes-a-splash","status":"publish","type":"post","link":"https:\/\/lifeboat.com\/blog\/2022\/07\/raspberry-pi-zero-2-w-lego-powered-submarine-makes-a-splash","title":{"rendered":"Raspberry Pi Zero 2 W Lego-Powered Submarine Makes a Splash"},"content":{"rendered":"<p><\/p>\n<p><iframe style=\"display: block; margin: 0 auto; width: 100%; aspect-ratio: 4\/3; object-fit: contain;\" src=\"https:\/\/www.youtube.com\/embed\/KLEH8RJsYgI?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; encrypted-media; gyroscope;\n   picture-in-picture\" allowfullscreen><\/iframe><\/p>\n<p>BEC was kind enough to share a parts list of everything used to create this project. It\u2019s operated primarily by a Raspberry Pi Zero 2 W, with most components housed neatly inside an acrylic cylinder. It\u2019s driven by a drone propeller alongside a couple of Pololu 2,130 DRV8833 Dual H-bridge motor drivers. The sensors include both a pressure sensor and a distance sensor, while a Lego Rechargeable 9V Battery Box supplies the power with the assistance of a Pololu 2,123 S7V8F5 5V voltage regulator.<\/p>\n<p>The Raspberry Pi runs Raspberry Pi OS, while the code used to operate the submarine functions is handled using a custom Python script. BEC explains that Thonny was used to run the <a href=\"https:\/\/mega.nz\/folder\/wqhhxJoI#cHnVI6NjaPkfZcdZvFZZ0Q\">Python code<\/a>, which is open-source and available for anyone to explore.<\/p>\n<p>If you want to recreate this <a href=\"https:\/\/www.tomshardware.com\/features\/best-raspberry-pi-projects\">Raspberry Pi project<\/a> for yourself or make something similar, check out the full blog post shared on the official <a href=\"https:\/\/brickexperimentchannel.wordpress.com\/rc-submarine-4-0-blog-post-series\">Brick Experiment Channel<\/a> blog. We also implore you to check out the video shared on YouTube for a demo of the submarine in action.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>BEC was kind enough to share a parts list of everything used to create this project. It\u2019s operated primarily by a Raspberry Pi Zero 2 W, with most components housed neatly inside an acrylic cylinder. It\u2019s driven by a drone propeller alongside a couple of Pololu 2,130 DRV8833 Dual H-bridge motor drivers. The sensors include [\u2026]<\/p>\n","protected":false},"author":599,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1488,1694],"tags":[],"class_list":["post-142880","post","type-post","status-publish","format-standard","hentry","category-drones","category-electronics"],"_links":{"self":[{"href":"https:\/\/lifeboat.com\/blog\/wp-json\/wp\/v2\/posts\/142880","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lifeboat.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lifeboat.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lifeboat.com\/blog\/wp-json\/wp\/v2\/users\/599"}],"replies":[{"embeddable":true,"href":"https:\/\/lifeboat.com\/blog\/wp-json\/wp\/v2\/comments?post=142880"}],"version-history":[{"count":0,"href":"https:\/\/lifeboat.com\/blog\/wp-json\/wp\/v2\/posts\/142880\/revisions"}],"wp:attachment":[{"href":"https:\/\/lifeboat.com\/blog\/wp-json\/wp\/v2\/media?parent=142880"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lifeboat.com\/blog\/wp-json\/wp\/v2\/categories?post=142880"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lifeboat.com\/blog\/wp-json\/wp\/v2\/tags?post=142880"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}