{"id":11358,"date":"2015-12-09T20:00:12","date_gmt":"2015-12-10T04:00:12","guid":{"rendered":"https:\/\/blog.digilentinc.com\/?p=11358"},"modified":"2021-06-16T15:43:16","modified_gmt":"2021-06-16T22:43:16","slug":"building-a-smart-door","status":"publish","type":"post","link":"https:\/\/digilent.com\/blog\/building-a-smart-door\/","title":{"rendered":"Building a Smart Door"},"content":{"rendered":"<p>&#8220;When one door closes, another opens.&#8221; Or you can try opening the same door (because that&#8217;s how they work), especially if it&#8217;s a smart door like the one presented in <a href=\"http:\/\/www.instructables.com\/id\/Smart-Door-40\/?ALLSTEPS\">this Instructable<\/a> by\u00a0<a href=\"http:\/\/www.instructables.com\/member\/newt446\/\" rel=\"author\">newt446<\/a>.<\/p>\n<p>This project uses a Digilent <a href=\"https:\/\/digilent.com\/blog\/max32\">chipKIT Max32<\/a>, a 6.1V zener diode, a vibration sensor, a Bluetooth wireless module, a micro servo, and two\u00a0100\u03a9 resistors.<\/p>\n<p>First, construct the circuit.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-11612\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/12\/smart-door-circuit.jpg\" alt=\"smart-door-circuit\" width=\"283\" height=\"186\" data-wp-pid=\"11612\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/12\/smart-door-circuit.jpg 283w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/12\/smart-door-circuit-214x140.jpg 214w\" sizes=\"auto, (max-width: 283px) 100vw, 283px\" \/><\/p>\n<p>Then, use the provided code to connect the Max32 to a webpage. This uses Python and JavaScript to tell you whether or not the door is open, how long it&#8217;s been open, and the maximum time it can be open. You&#8217;ll then have to address some issues with hosting the server. As the author says, &#8220;To properly load the server for your own local space, you need to have a .html file named index in your folder C:\\inetpub\\wwwroot.&#8221; Finally, load the MPIDE code for the\u00a0Bluetooth-cellphone app interface and data output. This code has also been included.<\/p>\n<p>On that note, we&#8217;ll close the door on this charming Instructable. Feel free to comment with your thoughts!<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<div class='watch-action'><div class='watch-position align-left'><div class='action-like'><a class='lbg-style6 like-11358 jlk' data-task='like' data-post_id='11358' data-nonce='ee750c7abc' rel='nofollow'><img src='https:\/\/digilent.com\/blog\/wp-content\/plugins\/wti-like-post-pro\/images\/pixel.gif' title='Like' \/><span class='lc-11358 lc'>0<\/span><\/a><\/div><div class='action-unlike'><a class='unlbg-style6 unlike-11358 jlk' data-task='unlike' data-post_id='11358' data-nonce='ee750c7abc' rel='nofollow'><img src='https:\/\/digilent.com\/blog\/wp-content\/plugins\/wti-like-post-pro\/images\/pixel.gif' title='Unlike' \/><span class='unlc-11358 unlc'>0<\/span><\/a><\/div><\/div> <div class='status-11358 status align-left'>Be the 1st to vote.<\/div><\/div><div class='wti-clear'><\/div>","protected":false},"excerpt":{"rendered":"<p>As long as you&#8217;re smarter than the door, you&#8217;ll be fine.<\/p>\n","protected":false},"author":7,"featured_media":11613,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4322,4327,1561],"tags":[],"ppma_author":[4464],"class_list":["post-11358","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-accessories","category-projects","category-applications"],"jetpack_featured_media_url":"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/12\/smart-door-configured.jpg","authors":[{"term_id":4464,"user_id":7,"is_guest":0,"slug":"amber_mear","display_name":"Amber Mear","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/766b0adee766c4cbe4e5ae38ab97be11?s=96&d=mm&r=g","author_category":"","user_url":"","last_name":"Mear","last_name_2":"","first_name":"Amber","first_name_2":"","job_title":"","description":"I was the Digilent blog editor, and now I'm a contributor. I love learning about wearables and writing about social issues in STEM. Outside of work, I can be found watching Netflix with my cat, working on an art project, or trying to find new, delicious local foods."}],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/11358","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/comments?post=11358"}],"version-history":[{"count":0,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/11358\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/media\/11613"}],"wp:attachment":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/media?parent=11358"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/categories?post=11358"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/tags?post=11358"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=11358"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}