{"id":923576,"date":"2021-08-20T03:24:05","date_gmt":"2021-08-20T07:24:05","guid":{"rendered":"https:\/\/www.prime-wow.com\/?p=923576"},"modified":"2021-08-20T03:24:05","modified_gmt":"2021-08-20T07:24:05","slug":"raspberry-pi-zero-waters-your-plants-and-records-growth-timelapse","status":"publish","type":"post","link":"https:\/\/www.prime-wow.com\/?p=923576","title":{"rendered":"Raspberry Pi Zero waters your plants and records growth timelapse"},"content":{"rendered":"<p>We\u2019re not going to lie \u2014\u00a0the thing we like most about this automated plant watering project is the timelapse at the very end of the <a href=\"https:\/\/www.youtube.com\/watch?v=_NTW0npN4N0\">build video<\/a>. But we also thought now might be a good time to show you another Raspberry Pi project for keeping an eye on your plants, since some of us are getting back to something more like our usual routines and our houseplants are no longer our best friends, so they might need a little extra automated attention.<\/p>\n<figure class=\"wp-block-video aligncenter\"><video autoplay=\"\" controls=\"\" loop=\"\" src=\"\" \/><figcaption>Raspberry Pi can\u2019t make your plants grow <em>this<\/em> fast in real life, sorry<\/figcaption><\/figure>\n<p>Maker Christopher Barnatt chose Raspberry Pi Zero for this project because although <a href=\"https:\/\/www.raspberrypi.org\/products\/raspberry-pi-pico\/\">Raspberry Pi Pico<\/a> could handle it, he needed a camera connector to record timelapse video of his plants\u2019 growth. <\/p>\n<h2>Hardware<\/h2>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-blog-entry\"><img decoding=\"async\" loading=\"lazy\" width=\"800\" height=\"441\" src=\"https:\/\/www.prime-wow.com\/wp-content\/uploads\/2021\/08\/Screenshot-2021-08-12-at-12.37.23-800x441-1.png\" alt=\"Raspberry Pi Plant Watering hardware\" class=\"wp-image-73794\" \/><figcaption>Image grabbed from Christopher\u2019s <a href=\"https:\/\/www.youtube.com\/watch?v=_NTW0npN4N0\">build video<\/a><\/figcaption><\/figure>\n<\/div>\n<p>Christopher is a gem and has included links to all the hardware he used. There are also some cheaper, smaller alternatives listed in the info section of his <a href=\"https:\/\/www.youtube.com\/watch?v=_NTW0npN4N0\">build video<\/a>. <\/p>\n<p><strong>Kit list:<\/strong><\/p>\n<ul>\n<li><a href=\"https:\/\/www.raspberrypi.org\/products\/raspberry-pi-zero\/\">Raspberry Pi Zero<\/a><\/li>\n<li><a href=\"https:\/\/www.amazon.co.uk\/dp\/B07RX1KRG1\/ref=nosim?tag=explainin-21\">Solenoid valve<\/a><\/li>\n<li><a href=\"https:\/\/www.amazon.com\/Electronics-Salon-Power-Expansion-Module-Raspberry\/dp\/B07CZL2SKN?&amp;linkCode=sl1&amp;tag=explainingus-20&amp;linkId=2782b2011c06a469aa0ebab07cb4dfa4&amp;language=en_US&amp;ref_=as_li_ss_tl\">Relay HAT<\/a><\/li>\n<li><a href=\"https:\/\/thepihut.com\/products\/soil-moisture-sensor\">Resistive moisture sensor<\/a><\/li>\n<li><a href=\"https:\/\/thepihut.com\/products\/zerocam-camera-for-raspberry-pi-zero\">ZeroCam<\/a> for Raspberry Pi Zero<\/li>\n<li>12V battery to power everything<\/li>\n<\/ul>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-blog-entry\"><img decoding=\"async\" loading=\"lazy\" width=\"800\" height=\"472\" src=\"https:\/\/www.prime-wow.com\/wp-content\/uploads\/2021\/08\/Screenshot-2021-08-12-at-12.47.23-800x472-1.png\" alt=\"plant watering system full set up in maker's greenhouse\" class=\"wp-image-73803\" \/><figcaption>The full setup in Christopher\u2019s greenhouse<\/figcaption><\/figure>\n<\/div>\n<h2>How does it work?<\/h2>\n<p>The moisture sensor checks every half hour to determine whether or not the plant has enough water, and communicates with the Raspberry Pi. Water flow is controlled by the solenoid valve, and if the Raspberry Pi finds the soil is too dry, it opens the valve for a set amount of time to let water out.<\/p>\n<figure class=\"wp-block-embed aligncenter is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\">\n<div class=\"wp-block-embed__wrapper\">\n<\/div><figcaption>Check out the full build video for detailed setup instructions and code tests<\/figcaption><\/figure>\n<h2>Code your own plant watering machine<\/h2>\n<p>Christopher has shared all the code you need to make your own plant watering system:<\/p>\n<ul>\n<li><a href=\"https:\/\/www.explainingcomputers.com\/sample_code\/Moisture_Test.py\" target=\"_blank\" rel=\"noreferrer noopener\">Moisture_Test.py<\/a>\u00a0\u2014 the code to test the moisture sensor<\/li>\n<li><a href=\"https:\/\/www.explainingcomputers.com\/sample_code\/Valve_Test.py\" target=\"_blank\" rel=\"noreferrer noopener\">Valve_Test.py<\/a>\u00a0\u2014 the code to test the solenoid valve<\/li>\n<li><a href=\"https:\/\/www.explainingcomputers.com\/sample_code\/Watering.py\" target=\"_blank\" rel=\"noreferrer noopener\">Watering.py<\/a>\u00a0\u2014 the final watering system and timelapse code<\/li>\n<\/ul>\n<p><strong>Check out Christopher\u2019s <a href=\"https:\/\/www.youtube.com\/user\/explainingcomputers\">YouTube channel <em>Explaining Computers<\/em><\/a> where he posts new videos every week on topics like PC hardware, single board computers such as Raspberry Pi, AI, Big Data, and quantum computing.<\/strong><\/p>\n<p>The post <a rel=\"nofollow\" href=\"https:\/\/www.raspberrypi.org\/blog\/raspberry-pi-zero-waters-your-plants-and-records-growth-timelapse\/\">Raspberry Pi Zero waters your plants and records growth timelapse<\/a> appeared first on <a rel=\"nofollow\" href=\"https:\/\/www.raspberrypi.org\">Raspberry Pi<\/a>.<\/p>\n<p>&#013;<br \/>\n&#013;<br \/>\nSource: Raspberry Pi &#8211; <a href=\"https:\/\/www.raspberrypi.org\/blog\/raspberry-pi-zero-waters-your-plants-and-records-growth-timelapse\/\" target=\"_blank\" rel=\"noopener\">Raspberry Pi Zero waters your plants and records growth timelapse<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We\u2019re not going to lie \u2014\u00a0the thing we like most about this automated plant watering project is the timelapse at the very end of the build video. But we also thought now might be a good time to show you &hellip; <a href=\"https:\/\/www.prime-wow.com\/?p=923576\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":923577,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[77,110],"tags":[5],"class_list":["post-923576","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-rpi","category-unfiltered-rss","tag-rpi"],"_links":{"self":[{"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=\/wp\/v2\/posts\/923576","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=923576"}],"version-history":[{"count":0,"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=\/wp\/v2\/posts\/923576\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=\/wp\/v2\/media\/923577"}],"wp:attachment":[{"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=923576"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=923576"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=923576"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}