{"id":2883,"date":"2022-07-24T11:12:16","date_gmt":"2022-07-24T11:12:16","guid":{"rendered":"https:\/\/picockpit.com\/raspberry-pi\/?p=2883"},"modified":"2023-08-29T09:52:23","modified_gmt":"2023-08-29T09:52:23","slug":"raspberry-pi-project-ideas-pi-lego-submarine-and-pieca-camera","status":"publish","type":"post","link":"https:\/\/picockpit.com\/raspberry-pi\/raspberry-pi-project-ideas-pi-lego-submarine-and-pieca-camera\/","title":{"rendered":"Lego Submarine &#038; Camera: Raspberry Pi Projects"},"content":{"rendered":"\n<p>Boy, oh, boy do we have some interesting Raspberry Pi projects this week.<\/p>\n\n\n\n<p>The first project is a radio-controlled submarine that can sink, surface, turn and move. At the heart of the submarine is a Raspberry Pi Zero 2.<\/p>\n\n\n\n<p>The second project is a &#8220;Pieca&#8221; camera, named after a Leica camera. The key similarity between the Pieca and a Leica is the use of a M-mount interchangeable lens, which is then paired to the Raspberry Pi 4 and the High-Quality image sensor module<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Raspberry Pi Zero + Lego Technic submarine<\/h2>\n\n\n\n<iframe loading=\"lazy\" width=\"625\" height=\"352\" src=\"https:\/\/www.youtube.com\/embed\/KLEH8RJsYgI\" title=\"Building a Lego-powered Submarine 4.0 - automatic depth control\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen=\"\"><\/iframe>\n\n\n\n<p>Fourth time&#8217;s the charm for <strong>Brick Experiment Channel<\/strong> (BEC), who created this project using Lego Technic parts and a Raspberry Pi Zero 2.<\/p>\n\n\n\n<p>The biggest challenge BEC faced is keeping the submarines at the depth he wanted it to be, but for the fourth project, he decided to use a syringe. The past three failed because,<\/p>\n\n\n\n<p>&#8220;Unsteady depth had been a nuisance with the three submarines I made earlier, especially subs 1 and 3. Those submarines were always either at the bottom or at the surface. A good challenge to overcome.&#8221;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How BEC integrates the Raspberry Pi into the submarine<\/h2>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/07\/image-60.png\" alt=\"\" class=\"wp-image-2889\" style=\"width:623px;height:336px\" width=\"623\" height=\"336\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/07\/image-60.png 1024w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/07\/image-60-300x162.png 300w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/07\/image-60-768x415.png 768w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/07\/image-60-18x10.png 18w\" sizes=\"auto, (max-width: 623px) 100vw, 623px\" \/><figcaption class=\"wp-element-caption\"><a href=\"https:\/\/brickexperimentchannel.files.wordpress.com\">Photo from BEC&#8217;s blog<\/a>.<\/figcaption><\/figure>\n<\/div>\n\n\n<p>The main purpose of BEC&#8217;s Raspberry Pi Zero 2 is to control the depth of the submarine.<\/p>\n\n\n\n<p>BEC initially wanted to use a Raspberry Pi Pico but the Pico&#8217;s limited flash memory of 2MB was too little for his data logging needs.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Collecting pressure data with a pressure sensor<\/h3>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/brickexperimentchannel.files.wordpress.com\/2022\/06\/submarine_4_pressure_sensor1_raspberry.jpg\" alt=\"Raspberry Pi Project Lego submarine pressure sensor\" style=\"width:631px;height:287px\" width=\"631\" height=\"287\"\/><figcaption class=\"wp-element-caption\">BEC&#8217;s Pi Zero 2 with a Honeywell relative pressure sensor (he eventually changed it to an absolute pressure sensor). <a href=\"https:\/\/brickexperimentchannel.files.wordpress.com\">Photo from BEC&#8217;s blog<\/a>.<\/figcaption><\/figure>\n<\/div>\n\n\n<p>BEC used an absolute pressure sensor in the submarine.<\/p>\n\n\n\n<p>BEC initially used a relative pressure sensor, but the data was not reliable and so he switched up for a Honeywell SSCMANV030PA2A3, which is an absolute pressure sensor.<\/p>\n\n\n\n<p>The pressure sensor tells how deep the submarine is.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Alternative way to measure depth: laser distance sensor<\/h3>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/07\/image-58.png\" alt=\"Raspberry Pi Project Lego Submarine distance sensor\" class=\"wp-image-2887\" style=\"width:614px;height:345px\" width=\"614\" height=\"345\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/07\/image-58.png 960w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/07\/image-58-300x169.png 300w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/07\/image-58-768x432.png 768w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/07\/image-58-18x10.png 18w\" sizes=\"auto, (max-width: 614px) 100vw, 614px\" \/><figcaption class=\"wp-element-caption\">Sparkfun TFMini-S Micro laser distance sensor. <a href=\"https:\/\/brickexperimentchannel.files.wordpress.com\">Photo from BEC&#8217;s blog<\/a>.<\/figcaption><\/figure>\n<\/div>\n\n\n<p>BEC integrated a Sparkfun TFMini-S Micro laser distance sensor in an attempt to find another way to measure depth by measuring the distance from the bottom.<\/p>\n\n\n\n<p>Unfortunately, laser depth measurements aren&#8217;t very reliable in muddy waters. BEC said, &#8220;data is very patchy and not really usable for control&#8221; so BEC didn&#8217;t really use the laser distance sensor much.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How depth is determined<\/h2>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/brickexperimentchannel.files.wordpress.com\/2022\/06\/submarine_4_radio_testing.jpg?w=655\" alt=\"Raspberry Pi Project Lego Submarine\" style=\"width:539px;height:303px\" width=\"539\" height=\"303\"\/><figcaption class=\"wp-element-caption\">The complete submarine. <a href=\"https:\/\/brickexperimentchannel.files.wordpress.com\/\">Photo from BEC&#8217;s blog<\/a>.<\/figcaption><\/figure>\n<\/div>\n\n\n<p>The data from the depth sensors are then used to drive the syringe.<\/p>\n\n\n\n<p>The syringe is connected to a Lego Technic motor which stores how far pushed in or retracted the syringe is.<\/p>\n\n\n\n<p>With data from the pressure sensor and\/or the laser distance sensor, BEC wrote a program that calculates the syringe&#8217;s position, gets depth data, calculates PID control output, then drives the syringe motor to the target depth.<\/p>\n\n\n\n<p>And that&#8217;s how BEC built his Raspberry Pi + Lego submarine. <a href=\"https:\/\/brickexperimentchannel.wordpress.com\/2022\/06\/25\/rc-submarine-4-0-background-1-10\/\">You can read the 10 part blog post here.<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Pieca Camera<\/h2>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/07\/Screenshot_1-1-1024x576.jpg\" alt=\"Pieca: A Raspberry Pi Camera System for Leica M Mount Lenses\" class=\"wp-image-2894\" style=\"width:503px;height:282px\" width=\"503\" height=\"282\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/07\/Screenshot_1-1-1024x576.jpg 1024w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/07\/Screenshot_1-1-300x169.jpg 300w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/07\/Screenshot_1-1-768x432.jpg 768w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/07\/Screenshot_1-1-18x10.jpg 18w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/07\/Screenshot_1-1.jpg 1273w\" sizes=\"auto, (max-width: 503px) 100vw, 503px\" \/><figcaption class=\"wp-element-caption\">Tom Shucker with his Pieca. <a href=\"https:\/\/www.youtube.com\/watch?v=gknlDyM9RU8\">Screenshot from his YouTube video.<\/a><\/figcaption><\/figure>\n<\/div>\n\n\n<p>Tom Schucker built his Pieca using a Raspberry Pi 4, the Raspberry Pi High Quality Camera, a 5&#8243; display that connected via the DSI port and a 3D printed case. The whole system is powered by the PiSugar battery system. <\/p>\n\n\n\n<p>It&#8217;s the ideal Raspberry Pi project to now take photos of your cool new Lego submarine!<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/buyzero.de\/products\/raspberry-pi-hq-kameramodul-hq-camera?_pos=17&amp;_sid=03cb6e0c2&amp;_ss=r\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/07\/image-61.png\" alt=\"\" class=\"wp-image-2896\" style=\"width:442px;height:331px\" width=\"442\" height=\"331\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/07\/image-61.png 800w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/07\/image-61-300x225.png 300w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/07\/image-61-768x576.png 768w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/07\/image-61-16x12.png 16w\" sizes=\"auto, (max-width: 442px) 100vw, 442px\" \/><\/a><figcaption class=\"wp-element-caption\">Raspberry Pi HQ Camera Module is an integral part of the Pieca camera.<\/figcaption><\/figure>\n<\/div>\n\n\n<p>The camera also has other exciting features such as a GPS module, a battery life gauge and a USB thumb drive for ease of transferring files.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/teaandtechtime.com\/wp-content\/uploads\/2022\/06\/7EA5C16A-73E2-46DC-B917-5697A8E545B0.jpeg?fit=1024%2C1024&amp;ssl=1\" alt=\"\" style=\"width:375px;height:375px\" width=\"375\" height=\"375\"\/><figcaption class=\"wp-element-caption\">Pieca with a Jupiter 50mm f\/2 lens. <a href=\"https:\/\/teaandtechtime.com\/pieca-a-raspberry-pi-camera-system-for-leica-m-mount-lenses\/\">Photo from Tom&#8217;s blog<\/a><\/figcaption><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\">Use any M-mount rangefinder lens<\/h2>\n\n\n\n<p>The best part about this project is the ability to use any M39 rangefinder lens.<\/p>\n\n\n\n<p>Over the past century, many of these lenses were produced. You can buy Russian-made lenses very cheaply and you can buy German-made ones too.<\/p>\n\n\n\n<p>These lenses were created in an era of manual cameras with no autofocus or auto aperture. So, you&#8217;d have to set your aperture and focus on the lens, just as you would with an old rangefinder.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">All images are zoomed in<\/h2>\n\n\n\n<p>Using a lens meant for 35mm format on a smaller sensor would mean all images are inherently zoomed in.<\/p>\n\n\n\n<p>Think of it this way: the lenses are meant to project a 35mm x 24mm image. However, the sensor might only capture a 6mm x 4.5mm out of that 35mm x 24mm image. That means all pictures are cropped (and hence look like they&#8217;re zoomed in).<\/p>\n\n\n\n<p>Tom compensated by using a focal reducer which halves the focal length of the lenses.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Video<\/h2>\n\n\n\n<iframe loading=\"lazy\" width=\"565\" height=\"318\" src=\"https:\/\/www.youtube.com\/embed\/gknlDyM9RU8\" title=\"Pieca: A Raspberry Pi Camera System for Leica M Mount Lenses\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen=\"\"><\/iframe>\n\n\n\n<p><\/p>\n\n\n\n<p>Interested in more Raspberry Pi projects?<\/p>\n\n\n\n<p>You can check out our Paragon Projects series <a href=\"https:\/\/picockpit.com\/raspberry-pi\/category\/paragon-projects\/\">here<\/a>.<\/p>\n\n\n\n<p>What would you do with lego submarine and a pieca camera?<\/p>\n<div class=\"shariff shariff-align-center shariff-widget-align-left shariff-buttonstretch\"><ul class=\"shariff-buttons theme-white orientation-horizontal buttonsize-medium\"><li class=\"shariff-button twitter shariff-nocustomcolor\" style=\"background-color:#595959\"><a href=\"https:\/\/twitter.com\/share?url=https%3A%2F%2Fpicockpit.com%2Fraspberry-pi%2Fraspberry-pi-project-ideas-pi-lego-submarine-and-pieca-camera%2F&text=Lego%20Submarine%20%26%20Camera%3A%20Raspberry%20Pi%20Projects\" title=\"Share on X\" aria-label=\"Share on X\" role=\"button\" rel=\"noopener nofollow\" class=\"shariff-link\" style=\"; background-color:#000; color:#000\" target=\"_blank\"><span class=\"shariff-icon\" style=\"fill:#000\"><svg width=\"32px\" height=\"20px\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 24 24\"><path fill=\"#000\" d=\"M14.258 10.152L23.176 0h-2.113l-7.747 8.813L7.133 0H0l9.352 13.328L0 23.973h2.113l8.176-9.309 6.531 9.309h7.133zm-2.895 3.293l-.949-1.328L2.875 1.56h3.246l6.086 8.523.945 1.328 7.91 11.078h-3.246zm0 0\"\/><\/svg><\/span><span class=\"shariff-text\" style=\"color:#000\">share<\/span>&nbsp;<\/a><\/li><li class=\"shariff-button facebook shariff-nocustomcolor\" style=\"background-color:#4273c8\"><a href=\"https:\/\/www.facebook.com\/sharer\/sharer.php?u=https%3A%2F%2Fpicockpit.com%2Fraspberry-pi%2Fraspberry-pi-project-ideas-pi-lego-submarine-and-pieca-camera%2F\" title=\"Share on Facebook\" aria-label=\"Share on Facebook\" role=\"button\" rel=\"nofollow\" class=\"shariff-link\" style=\"; background-color:#3b5998; color:#3b5998\" target=\"_blank\"><span class=\"shariff-icon\" style=\"fill:#3b5998\"><svg width=\"32px\" height=\"20px\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 18 32\"><path fill=\"#3b5998\" d=\"M17.1 0.2v4.7h-2.8q-1.5 0-2.1 0.6t-0.5 1.9v3.4h5.2l-0.7 5.3h-4.5v13.6h-5.5v-13.6h-4.5v-5.3h4.5v-3.9q0-3.3 1.9-5.2t5-1.8q2.6 0 4.1 0.2z\"\/><\/svg><\/span><span class=\"shariff-text\" style=\"color:#3b5998\">share<\/span>&nbsp;<\/a><\/li><li class=\"shariff-button telegram shariff-nocustomcolor\" style=\"background-color:#4084A6\"><a href=\"https:\/\/telegram.me\/share\/url?url=https%3A%2F%2Fpicockpit.com%2Fraspberry-pi%2Fraspberry-pi-project-ideas-pi-lego-submarine-and-pieca-camera%2F&text=Lego%20Submarine%20%26%20Camera%3A%20Raspberry%20Pi%20Projects\" title=\"Share on Telegram\" aria-label=\"Share on Telegram\" role=\"button\" rel=\"noopener nofollow\" class=\"shariff-link\" style=\"; background-color:#0088cc; color:#0088cc\" target=\"_blank\"><span class=\"shariff-icon\" style=\"fill:#0088cc\"><svg width=\"32px\" height=\"20px\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 32 32\"><path fill=\"#0088cc\" d=\"M30.8 6.5l-4.5 21.4c-.3 1.5-1.2 1.9-2.5 1.2L16.9 24l-3.3 3.2c-.4.4-.7.7-1.4.7l.5-7L25.5 9.2c.6-.5-.1-.8-.9-.3l-15.8 10L2 16.7c-1.5-.5-1.5-1.5.3-2.2L28.9 4.3c1.3-.5 2.3.3 1.9 2.2z\"\/><\/svg><\/span><span class=\"shariff-text\" style=\"color:#0088cc\">share<\/span>&nbsp;<\/a><\/li><li class=\"shariff-button reddit shariff-nocustomcolor\" style=\"background-color:#ff5700\"><a href=\"https:\/\/www.reddit.com\/submit?url=https%3A%2F%2Fpicockpit.com%2Fraspberry-pi%2Fraspberry-pi-project-ideas-pi-lego-submarine-and-pieca-camera%2F\" title=\"Share on Reddit\" aria-label=\"Share on Reddit\" role=\"button\" rel=\"noopener nofollow\" class=\"shariff-link\" style=\"; background-color:#ff4500; color:#ff4500\" target=\"_blank\"><span class=\"shariff-icon\" style=\"fill:#ff4500\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\"><path fill=\"#ff4500\" d=\"M440.3 203.5c-15 0-28.2 6.2-37.9 15.9-35.7-24.7-83.8-40.6-137.1-42.3L293 52.3l88.2 19.8c0 21.6 17.6 39.2 39.2 39.2 22 0 39.7-18.1 39.7-39.7s-17.6-39.7-39.7-39.7c-15.4 0-28.7 9.3-35.3 22l-97.4-21.6c-4.9-1.3-9.7 2.2-11 7.1L246.3 177c-52.9 2.2-100.5 18.1-136.3 42.8-9.7-10.1-23.4-16.3-38.4-16.3-55.6 0-73.8 74.6-22.9 100.1-1.8 7.9-2.6 16.3-2.6 24.7 0 83.8 94.4 151.7 210.3 151.7 116.4 0 210.8-67.9 210.8-151.7 0-8.4-.9-17.2-3.1-25.1 49.9-25.6 31.5-99.7-23.8-99.7zM129.4 308.9c0-22 17.6-39.7 39.7-39.7 21.6 0 39.2 17.6 39.2 39.7 0 21.6-17.6 39.2-39.2 39.2-22 .1-39.7-17.6-39.7-39.2zm214.3 93.5c-36.4 36.4-139.1 36.4-175.5 0-4-3.5-4-9.7 0-13.7 3.5-3.5 9.7-3.5 13.2 0 27.8 28.5 120 29 149 0 3.5-3.5 9.7-3.5 13.2 0 4.1 4 4.1 10.2.1 13.7zm-.8-54.2c-21.6 0-39.2-17.6-39.2-39.2 0-22 17.6-39.7 39.2-39.7 22 0 39.7 17.6 39.7 39.7-.1 21.5-17.7 39.2-39.7 39.2z\"\/><\/svg><\/span><span class=\"shariff-text\" style=\"color:#ff4500\">share<\/span>&nbsp;<\/a><\/li><\/ul><\/div>","protected":false},"excerpt":{"rendered":"<p>Boy, oh, boy do we have some interesting Raspberry Pi projects this week. The first project is a radio-controlled submarine that can sink, surface, turn and move. At the heart of the submarine is a Raspberry Pi Zero 2. The second project is a &#8220;Pieca&#8221; camera, named after a Leica camera. The key similarity between&hellip;<\/p>\n","protected":false},"author":2,"featured_media":2899,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[220],"tags":[539,540,189,536,535,187,456,538,537],"class_list":["post-2883","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-raspberry-pi-projects","tag-laser-distance-sensor","tag-m-mount-rangefinder-lens","tag-pi","tag-pilego","tag-pieca","tag-raspberry-pi","tag-raspberry-pi-projects","tag-raspberry-pi-zero","tag-submarine"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Lego Submarine &amp; Camera: Raspberry Pi Projects | PiCockpit<\/title>\n<meta name=\"description\" content=\"The Raspberry Pi projects this week are the Pieca camera and a radio-controlled Lego submarine is built with a Pi Zero 2!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/picockpit.com\/raspberry-pi\/raspberry-pi-project-ideas-pi-lego-submarine-and-pieca-camera\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Lego Submarine &amp; Camera: Raspberry Pi Projects | PiCockpit\" \/>\n<meta property=\"og:description\" content=\"The Raspberry Pi projects this week are the Pieca camera and a radio-controlled Lego submarine is built with a Pi Zero 2!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/picockpit.com\/raspberry-pi\/raspberry-pi-project-ideas-pi-lego-submarine-and-pieca-camera\/\" \/>\n<meta property=\"og:site_name\" content=\"PiCockpit\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/pi3gshop\" \/>\n<meta property=\"article:published_time\" content=\"2022-07-24T11:12:16+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-08-29T09:52:23+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/07\/featured-image-6.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1000\" \/>\n\t<meta property=\"og:image:height\" content=\"563\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"raspi berry\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@pi3g\" \/>\n<meta name=\"twitter:site\" content=\"@pi3g\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"raspi berry\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/raspberry-pi-project-ideas-pi-lego-submarine-and-pieca-camera\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/raspberry-pi-project-ideas-pi-lego-submarine-and-pieca-camera\\\/\"},\"author\":{\"name\":\"raspi berry\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#\\\/schema\\\/person\\\/7af3a7a8c999bc722029ef9ca9d78eee\"},\"headline\":\"Lego Submarine &#038; Camera: Raspberry Pi Projects\",\"datePublished\":\"2022-07-24T11:12:16+00:00\",\"dateModified\":\"2023-08-29T09:52:23+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/raspberry-pi-project-ideas-pi-lego-submarine-and-pieca-camera\\\/\"},\"wordCount\":811,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/raspberry-pi-project-ideas-pi-lego-submarine-and-pieca-camera\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/featured-image-6.jpg\",\"keywords\":[\"laser distance sensor\",\"M-mount rangefinder lens\",\"Pi\",\"Pi+Lego\",\"Pieca\",\"Raspberry Pi\",\"Raspberry Pi projects\",\"Raspberry Pi Zero\",\"submarine\"],\"articleSection\":[\"Raspberry Pi projects\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/raspberry-pi-project-ideas-pi-lego-submarine-and-pieca-camera\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/raspberry-pi-project-ideas-pi-lego-submarine-and-pieca-camera\\\/\",\"url\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/raspberry-pi-project-ideas-pi-lego-submarine-and-pieca-camera\\\/\",\"name\":\"Lego Submarine & Camera: Raspberry Pi Projects | PiCockpit\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/raspberry-pi-project-ideas-pi-lego-submarine-and-pieca-camera\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/raspberry-pi-project-ideas-pi-lego-submarine-and-pieca-camera\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/featured-image-6.jpg\",\"datePublished\":\"2022-07-24T11:12:16+00:00\",\"dateModified\":\"2023-08-29T09:52:23+00:00\",\"description\":\"The Raspberry Pi projects this week are the Pieca camera and a radio-controlled Lego submarine is built with a Pi Zero 2!\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/raspberry-pi-project-ideas-pi-lego-submarine-and-pieca-camera\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/raspberry-pi-project-ideas-pi-lego-submarine-and-pieca-camera\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/raspberry-pi-project-ideas-pi-lego-submarine-and-pieca-camera\\\/#primaryimage\",\"url\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/featured-image-6.jpg\",\"contentUrl\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/featured-image-6.jpg\",\"width\":1000,\"height\":563,\"caption\":\"raspberry pi submarine and camera\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/raspberry-pi-project-ideas-pi-lego-submarine-and-pieca-camera\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Raspberry Pi projects\",\"item\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/category\\\/raspberry-pi-projects\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Lego Submarine &#038; Camera: Raspberry Pi Projects\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#website\",\"url\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/\",\"name\":\"PiCockpit\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#organization\",\"name\":\"PiCockpit.com\",\"url\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/Screenshot-from-2023-07-24-15-01-24.png\",\"contentUrl\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/Screenshot-from-2023-07-24-15-01-24.png\",\"width\":1165,\"height\":283,\"caption\":\"PiCockpit.com\"},\"image\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/pi3gshop\",\"https:\\\/\\\/x.com\\\/pi3g\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#\\\/schema\\\/person\\\/7af3a7a8c999bc722029ef9ca9d78eee\",\"name\":\"raspi berry\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c10c423ceeff34163dd54a5472d6da17d71c0e360e0cf8cdb8847006372f216b?s=96&d=blank&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c10c423ceeff34163dd54a5472d6da17d71c0e360e0cf8cdb8847006372f216b?s=96&d=blank&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c10c423ceeff34163dd54a5472d6da17d71c0e360e0cf8cdb8847006372f216b?s=96&d=blank&r=g\",\"caption\":\"raspi berry\"},\"description\":\"I'm here to help you with all your Raspberry Pi related questions &amp; love to share about new project ideas for the Raspberry Pi, and give quick tips. Of course I'll also help you with PiCockpit and how to make your Raspberry Pi even easier to use with this raspberry pi monitoring solution :-)\",\"sameAs\":[\"https:\\\/\\\/picockpit.com\"],\"url\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/author\\\/raspi-berry\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Lego Submarine & Camera: Raspberry Pi Projects | PiCockpit","description":"The Raspberry Pi projects this week are the Pieca camera and a radio-controlled Lego submarine is built with a Pi Zero 2!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/picockpit.com\/raspberry-pi\/raspberry-pi-project-ideas-pi-lego-submarine-and-pieca-camera\/","og_locale":"en_US","og_type":"article","og_title":"Lego Submarine & Camera: Raspberry Pi Projects | PiCockpit","og_description":"The Raspberry Pi projects this week are the Pieca camera and a radio-controlled Lego submarine is built with a Pi Zero 2!","og_url":"https:\/\/picockpit.com\/raspberry-pi\/raspberry-pi-project-ideas-pi-lego-submarine-and-pieca-camera\/","og_site_name":"PiCockpit","article_publisher":"https:\/\/www.facebook.com\/pi3gshop","article_published_time":"2022-07-24T11:12:16+00:00","article_modified_time":"2023-08-29T09:52:23+00:00","og_image":[{"width":1000,"height":563,"url":"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/07\/featured-image-6.jpg","type":"image\/jpeg"}],"author":"raspi berry","twitter_card":"summary_large_image","twitter_creator":"@pi3g","twitter_site":"@pi3g","twitter_misc":{"Written by":"raspi berry","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/picockpit.com\/raspberry-pi\/raspberry-pi-project-ideas-pi-lego-submarine-and-pieca-camera\/#article","isPartOf":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/raspberry-pi-project-ideas-pi-lego-submarine-and-pieca-camera\/"},"author":{"name":"raspi berry","@id":"https:\/\/picockpit.com\/raspberry-pi\/#\/schema\/person\/7af3a7a8c999bc722029ef9ca9d78eee"},"headline":"Lego Submarine &#038; Camera: Raspberry Pi Projects","datePublished":"2022-07-24T11:12:16+00:00","dateModified":"2023-08-29T09:52:23+00:00","mainEntityOfPage":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/raspberry-pi-project-ideas-pi-lego-submarine-and-pieca-camera\/"},"wordCount":811,"commentCount":0,"publisher":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/#organization"},"image":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/raspberry-pi-project-ideas-pi-lego-submarine-and-pieca-camera\/#primaryimage"},"thumbnailUrl":"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/07\/featured-image-6.jpg","keywords":["laser distance sensor","M-mount rangefinder lens","Pi","Pi+Lego","Pieca","Raspberry Pi","Raspberry Pi projects","Raspberry Pi Zero","submarine"],"articleSection":["Raspberry Pi projects"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/picockpit.com\/raspberry-pi\/raspberry-pi-project-ideas-pi-lego-submarine-and-pieca-camera\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/picockpit.com\/raspberry-pi\/raspberry-pi-project-ideas-pi-lego-submarine-and-pieca-camera\/","url":"https:\/\/picockpit.com\/raspberry-pi\/raspberry-pi-project-ideas-pi-lego-submarine-and-pieca-camera\/","name":"Lego Submarine & Camera: Raspberry Pi Projects | PiCockpit","isPartOf":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/#website"},"primaryImageOfPage":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/raspberry-pi-project-ideas-pi-lego-submarine-and-pieca-camera\/#primaryimage"},"image":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/raspberry-pi-project-ideas-pi-lego-submarine-and-pieca-camera\/#primaryimage"},"thumbnailUrl":"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/07\/featured-image-6.jpg","datePublished":"2022-07-24T11:12:16+00:00","dateModified":"2023-08-29T09:52:23+00:00","description":"The Raspberry Pi projects this week are the Pieca camera and a radio-controlled Lego submarine is built with a Pi Zero 2!","breadcrumb":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/raspberry-pi-project-ideas-pi-lego-submarine-and-pieca-camera\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/picockpit.com\/raspberry-pi\/raspberry-pi-project-ideas-pi-lego-submarine-and-pieca-camera\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/picockpit.com\/raspberry-pi\/raspberry-pi-project-ideas-pi-lego-submarine-and-pieca-camera\/#primaryimage","url":"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/07\/featured-image-6.jpg","contentUrl":"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/07\/featured-image-6.jpg","width":1000,"height":563,"caption":"raspberry pi submarine and camera"},{"@type":"BreadcrumbList","@id":"https:\/\/picockpit.com\/raspberry-pi\/raspberry-pi-project-ideas-pi-lego-submarine-and-pieca-camera\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/picockpit.com\/raspberry-pi\/"},{"@type":"ListItem","position":2,"name":"Raspberry Pi projects","item":"https:\/\/picockpit.com\/raspberry-pi\/category\/raspberry-pi-projects\/"},{"@type":"ListItem","position":3,"name":"Lego Submarine &#038; Camera: Raspberry Pi Projects"}]},{"@type":"WebSite","@id":"https:\/\/picockpit.com\/raspberry-pi\/#website","url":"https:\/\/picockpit.com\/raspberry-pi\/","name":"PiCockpit","description":"","publisher":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/picockpit.com\/raspberry-pi\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/picockpit.com\/raspberry-pi\/#organization","name":"PiCockpit.com","url":"https:\/\/picockpit.com\/raspberry-pi\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/picockpit.com\/raspberry-pi\/#\/schema\/logo\/image\/","url":"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2023\/07\/Screenshot-from-2023-07-24-15-01-24.png","contentUrl":"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2023\/07\/Screenshot-from-2023-07-24-15-01-24.png","width":1165,"height":283,"caption":"PiCockpit.com"},"image":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/pi3gshop","https:\/\/x.com\/pi3g"]},{"@type":"Person","@id":"https:\/\/picockpit.com\/raspberry-pi\/#\/schema\/person\/7af3a7a8c999bc722029ef9ca9d78eee","name":"raspi berry","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/c10c423ceeff34163dd54a5472d6da17d71c0e360e0cf8cdb8847006372f216b?s=96&d=blank&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/c10c423ceeff34163dd54a5472d6da17d71c0e360e0cf8cdb8847006372f216b?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c10c423ceeff34163dd54a5472d6da17d71c0e360e0cf8cdb8847006372f216b?s=96&d=blank&r=g","caption":"raspi berry"},"description":"I'm here to help you with all your Raspberry Pi related questions &amp; love to share about new project ideas for the Raspberry Pi, and give quick tips. Of course I'll also help you with PiCockpit and how to make your Raspberry Pi even easier to use with this raspberry pi monitoring solution :-)","sameAs":["https:\/\/picockpit.com"],"url":"https:\/\/picockpit.com\/raspberry-pi\/author\/raspi-berry\/"}]}},"_links":{"self":[{"href":"https:\/\/picockpit.com\/raspberry-pi\/wp-json\/wp\/v2\/posts\/2883","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/picockpit.com\/raspberry-pi\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/picockpit.com\/raspberry-pi\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/picockpit.com\/raspberry-pi\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/picockpit.com\/raspberry-pi\/wp-json\/wp\/v2\/comments?post=2883"}],"version-history":[{"count":10,"href":"https:\/\/picockpit.com\/raspberry-pi\/wp-json\/wp\/v2\/posts\/2883\/revisions"}],"predecessor-version":[{"id":4992,"href":"https:\/\/picockpit.com\/raspberry-pi\/wp-json\/wp\/v2\/posts\/2883\/revisions\/4992"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/picockpit.com\/raspberry-pi\/wp-json\/wp\/v2\/media\/2899"}],"wp:attachment":[{"href":"https:\/\/picockpit.com\/raspberry-pi\/wp-json\/wp\/v2\/media?parent=2883"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/picockpit.com\/raspberry-pi\/wp-json\/wp\/v2\/categories?post=2883"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/picockpit.com\/raspberry-pi\/wp-json\/wp\/v2\/tags?post=2883"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}