{"id":1,"date":"2021-04-23T02:12:44","date_gmt":"2021-04-23T02:12:44","guid":{"rendered":"http:\/\/trevorkoertge.com\/?p=1"},"modified":"2021-04-23T04:14:41","modified_gmt":"2021-04-23T04:14:41","slug":"hello-world","status":"publish","type":"post","link":"https:\/\/trevorkoertge.com\/?p=1","title":{"rendered":"Controlling your world with GPIO"},"content":{"rendered":"\n<p>Controlling physical objects with your Raspberry pi is a challenging and rewarding way to get started with coding.  Check out my first attempt!<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/trevorkoertge.com\/wp-content\/uploads\/2021\/04\/IMG_2314-1-scaled.jpg\" alt=\"\" class=\"wp-image-149\" width=\"318\" height=\"423\" srcset=\"https:\/\/trevorkoertge.com\/wp-content\/uploads\/2021\/04\/IMG_2314-1-scaled.jpg 1920w, https:\/\/trevorkoertge.com\/wp-content\/uploads\/2021\/04\/IMG_2314-1-225x300.jpg 225w\" sizes=\"auto, (max-width: 318px) 100vw, 318px\" \/><\/figure>\n\n\n\n<p>If you can get past the hilariously bad silicone application job and wire management, you&#8217;ll notice a 12v solenoid connected to a Raspberry Pi via GIPO pins.  The most challenging part of this project, was powering both the Pi and the solenoid from the same source.  I used a Buck converter to step 12 volts down to 5 volts after powering the solenoid.  After hanlding the electronics behind my project, I went over to https:\/\/openweathermap.org\/ and signed up for a free API key.  It was easy enough sorting through open weathers documentation that I was able to add a regularly scheduled weather look up feature, which would serve as one of the parameters to determine when &#8220;ItGetsTheHoseAgain()&#8221; would run (My function programed to open the solenoid valve for 15 minutes).  If you can&#8217;t tell where this is going yet, this hideous creation is my new irrigation control valve\/computer for my newly built planter box.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Controlling physical objects with your Raspberry pi is a challenging and rewarding way to get started with coding. Check out my first attempt! If you can get past the hilariously bad silicone application job and wire management, you&#8217;ll notice a 12v solenoid connected to a Raspberry Pi via GIPO pins. The most challenging part of [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":149,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/trevorkoertge.com\/index.php?rest_route=\/wp\/v2\/posts\/1","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/trevorkoertge.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/trevorkoertge.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/trevorkoertge.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/trevorkoertge.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1"}],"version-history":[{"count":2,"href":"https:\/\/trevorkoertge.com\/index.php?rest_route=\/wp\/v2\/posts\/1\/revisions"}],"predecessor-version":[{"id":153,"href":"https:\/\/trevorkoertge.com\/index.php?rest_route=\/wp\/v2\/posts\/1\/revisions\/153"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/trevorkoertge.com\/index.php?rest_route=\/wp\/v2\/media\/149"}],"wp:attachment":[{"href":"https:\/\/trevorkoertge.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/trevorkoertge.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/trevorkoertge.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}