{"id":63,"date":"2010-01-30T21:09:00","date_gmt":"2010-01-30T21:09:00","guid":{"rendered":"http:\/\/cockfieldofdreams.com\/blog\/2010\/01\/30\/turing-complete-slow-cooker\/"},"modified":"2010-01-30T21:09:00","modified_gmt":"2010-01-30T21:09:00","slug":"turing-complete-slow-cooker-part-1","status":"publish","type":"post","link":"http:\/\/cockfieldofdreams.com\/blog\/2010\/01\/turing-complete-slow-cooker-part-1.html","title":{"rendered":"Turing-Complete Slow Cooker"},"content":{"rendered":"<p>The idea on this one is to put my new slow cooker on the internet, so if I can&#8217;t make it home in time to turn it off and have a delicious dinner, I can log in to my apartment over an SSH tunnel and turn off my slow cooker from anywhere in the world. Great idea! Eventually I&#8217;ll be able to expand this to other devices. Maybe have my whole kitchen on the internet. Who knows?<\/p>\n<p><a href=\"http:\/\/1.bp.blogspot.com\/_GM6QpBz2vrI\/S2SkB_Ff2rI\/AAAAAAAAAJs\/10MP5CCmYyA\/s1600-h\/P1300001.JPG\"><img decoding=\"async\" style=\"margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 240px; height: 320px;\" src=\"http:\/\/1.bp.blogspot.com\/_GM6QpBz2vrI\/S2SkB_Ff2rI\/AAAAAAAAAJs\/10MP5CCmYyA\/s320\/P1300001.JPG\" alt=\"\" id=\"BLOGGER_PHOTO_ID_5432647404536978098\" border=\"0\" \/><\/a><br \/><a href=\"http:\/\/2.bp.blogspot.com\/_GM6QpBz2vrI\/S2SkCNi7VPI\/AAAAAAAAAJ0\/MUplzt5pY60\/s1600-h\/P1300002.JPG\"><img decoding=\"async\" style=\"margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 240px;\" src=\"http:\/\/2.bp.blogspot.com\/_GM6QpBz2vrI\/S2SkCNi7VPI\/AAAAAAAAAJ0\/MUplzt5pY60\/s320\/P1300002.JPG\" alt=\"\" id=\"BLOGGER_PHOTO_ID_5432647408418510066\" border=\"0\" \/><\/a><br \/>The first step is to figure out how to interface with a computer&#8217;s parallel port. There are 25 pins on a standard parallel port, and eight of them can be physically controlled to be either 0 or 5 volts. And, as I&#8217;ve learned from previous projects, this is enough to operate a MOSFET and control fun things! So I can theoretically control eight devices in the kitchen. I&#8217;ll probably plug the kitchen light into it because it&#8217;d be easy after what I did to it already, but maybe Bradley&#8217;s coffee pot is next&#8230;<\/p>\n<p>These ports used to be used for printers but are largely considered &#8220;legacy&#8221; now, so I will be using a 1996-era Packard Bell with a Pentium II to interface with various appliances. I installed Ubuntu 9.04 (I didn&#8217;t have a 9.10 CD but whatever, I&#8217;m just using a command-line interface) and then decided to try Python out. I found this page on Ubuntu Forums to start off:<\/p>\n<p><a href=\"http:\/\/ubuntuforums.org\/showthread.php?t=713098&amp;page=1\">Ubuntu Forums!<\/a><\/p>\n<p>After messing around with Python for a little bit I found this tutorial which uses C:<\/p>\n<p><a href=\"http:\/\/www.epanorama.net\/circuits\/parallel_output.html#linuxprogramming\">Tutorial!<\/a><\/p>\n<p>I had to change a couple of things with the source code but I think this is the route I&#8217;m going to take. I&#8217;m not the world&#8217;s strongest programmer but I think this will be enough. Eventually, I may go back and switch to Python because someone wrote a GUI to alter the pins on the parallel port. Any way, I have already been able to SSH into the computer I&#8217;m going to use to control the pins on the parallel port and am going to start wiring everything up this afternoon. Clemson&#8217;s iced over so everyone&#8217;s freaking out and not doing anything interesting, so this will have to do! But to be honest I&#8217;d probably be doing this any way. Electricity is awesome.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The idea on this one is to put my new slow cooker on the internet, so if I can&#8217;t make it home in time to turn it off and have a delicious dinner, I can log in to my apartment over an SSH tunnel and turn off my slow cooker from anywhere in the world. &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/cockfieldofdreams.com\/blog\/2010\/01\/turing-complete-slow-cooker-part-1.html\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Turing-Complete Slow Cooker&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/cockfieldofdreams.com\/blog\/wp-json\/wp\/v2\/posts\/63"}],"collection":[{"href":"http:\/\/cockfieldofdreams.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/cockfieldofdreams.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/cockfieldofdreams.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/cockfieldofdreams.com\/blog\/wp-json\/wp\/v2\/comments?post=63"}],"version-history":[{"count":0,"href":"http:\/\/cockfieldofdreams.com\/blog\/wp-json\/wp\/v2\/posts\/63\/revisions"}],"wp:attachment":[{"href":"http:\/\/cockfieldofdreams.com\/blog\/wp-json\/wp\/v2\/media?parent=63"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/cockfieldofdreams.com\/blog\/wp-json\/wp\/v2\/categories?post=63"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/cockfieldofdreams.com\/blog\/wp-json\/wp\/v2\/tags?post=63"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}