{"id":125,"date":"2017-12-22T05:01:35","date_gmt":"2017-12-22T05:01:35","guid":{"rendered":"http:\/\/eportfolios.macaulay.cuny.edu\/rrahman\/?p=125"},"modified":"2017-12-22T05:01:35","modified_gmt":"2017-12-22T05:01:35","slug":"project-home-security","status":"publish","type":"post","link":"https:\/\/openlab.macaulay.cuny.edu\/reazwrahman\/2017\/12\/22\/project-home-security\/","title":{"rendered":"Smart Home Security (Personal Project)"},"content":{"rendered":"<p><span style=\"font-weight: 400\">Project Home Security is a hardware and software combination project that detects the\u00a0presence of an intruder outside the front door of a house and immediately sends an email alerting the user about the activity with a picture of the person standing outside.\u00a0 \u00a0<\/span><\/p>\n<p><a href=\"http:\/\/eportfolios.macaulay.cuny.edu\/rrahman\/files\/2017\/12\/ultrasonic-sensor.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-126\" src=\"http:\/\/eportfolios.macaulay.cuny.edu\/rrahman\/files\/2017\/12\/ultrasonic-sensor.jpg\" alt=\"\" width=\"3264\" height=\"2448\" \/><\/a><\/p>\n<p><em>Image: Ultrasonic sensor placed outside the door to detect activity\u00a0<\/em><\/p>\n<p><a href=\"http:\/\/eportfolios.macaulay.cuny.edu\/rrahman\/files\/2017\/12\/email-sc.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-183 size-large\" src=\"http:\/\/eportfolios.macaulay.cuny.edu\/rrahman\/files\/2017\/12\/email-sc-576x1024.png\" alt=\"\" width=\"576\" height=\"1024\" srcset=\"https:\/\/openlab.macaulay.cuny.edu\/reazwrahman\/wp-content\/uploads\/sites\/64\/2017\/12\/email-sc-576x1024.png 576w, https:\/\/openlab.macaulay.cuny.edu\/reazwrahman\/wp-content\/uploads\/sites\/64\/2017\/12\/email-sc-169x300.png 169w, https:\/\/openlab.macaulay.cuny.edu\/reazwrahman\/wp-content\/uploads\/sites\/64\/2017\/12\/email-sc-768x1365.png 768w, https:\/\/openlab.macaulay.cuny.edu\/reazwrahman\/wp-content\/uploads\/sites\/64\/2017\/12\/email-sc-864x1536.png 864w, https:\/\/openlab.macaulay.cuny.edu\/reazwrahman\/wp-content\/uploads\/sites\/64\/2017\/12\/email-sc-1152x2048.png 1152w, https:\/\/openlab.macaulay.cuny.edu\/reazwrahman\/wp-content\/uploads\/sites\/64\/2017\/12\/email-sc.png 1242w\" sizes=\"auto, (max-width: 576px) 100vw, 576px\" \/><\/a><\/p>\n<p>Image: Screenshot of the email sent by the server with a message alerting the user, with a picture taken by the camera<\/p>\n<p><a href=\"http:\/\/eportfolios.macaulay.cuny.edu\/rrahman\/files\/2017\/12\/dev-0.jpg\"><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-154 size-full\" src=\"http:\/\/eportfolios.macaulay.cuny.edu\/rrahman\/files\/2017\/12\/dev-0.jpg\" alt=\"\" width=\"3264\" height=\"2448\" \/><\/a><\/p>\n<p>Image: Control System inside the house, near the front door (the TV monitor could be used for surveillance purposes)<\/p>\n<p><span style=\"font-weight: 400\">This project uses an ultrasonic sensor, wires, Arduino, raspberry pi, ethernet cable and an interface for Pi\/Arduino for initial setup. The ultrasonic sensor may be replaced by a body motion sensor (for shorter range setup), which actually was used for this project initially. However, as the connecting wires get longer- the body motion sensor starts acting in unanticipated ways.\u00a0\u00a0<\/span><\/p>\n<p><a href=\"http:\/\/eportfolios.macaulay.cuny.edu\/rrahman\/files\/2017\/12\/camera.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-127\" src=\"http:\/\/eportfolios.macaulay.cuny.edu\/rrahman\/files\/2017\/12\/camera.jpg\" alt=\"\" width=\"3264\" height=\"2448\" \/><\/a><\/p>\n<p><em>Image: I added a camera interface for taking picture of the intruder\u00a0\u00a0<\/em><\/p>\n<p><span style=\"font-weight: 400\">The Arduino board establishes a connection with the ultrasonic sensor. As the distance read by the sensor gets below a certain threshold, it prints a message which is then received by the raspberry pi connected to the Arduino via a\u00a0USB serial port.\u00a0<\/span><\/p>\n<p><a href=\"http:\/\/eportfolios.macaulay.cuny.edu\/rrahman\/files\/2017\/12\/night-vision.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-128\" src=\"http:\/\/eportfolios.macaulay.cuny.edu\/rrahman\/files\/2017\/12\/night-vision.jpg\" alt=\"\" width=\"3264\" height=\"2448\" \/><\/a><\/p>\n<p><em>Image: I added LEDs for taking picture at night\u00a0\u00a0<\/em><\/p>\n<p><span style=\"font-weight: 400\">As the raspberry receives the message, an SSMTP messaging protocol relays that message to an email address. The user can add that email account to their existing Gmail app and receive notifications about the front door activity in real time.\u00a0<\/span><\/p>\n<p>&nbsp;<\/p>\n<p>Here are some pictures that were taken during the development stage of the product:<\/p>\n<p><a href=\"http:\/\/eportfolios.macaulay.cuny.edu\/rrahman\/files\/2017\/12\/dev4.jpg\"><br \/>\n<\/a><a href=\"http:\/\/eportfolios.macaulay.cuny.edu\/rrahman\/files\/2017\/12\/dev4.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-149 size-large aligncenter\" src=\"http:\/\/eportfolios.macaulay.cuny.edu\/rrahman\/files\/2017\/12\/dev4-1024x768.jpg\" alt=\"\" width=\"676\" height=\"507\" srcset=\"https:\/\/openlab.macaulay.cuny.edu\/reazwrahman\/wp-content\/uploads\/sites\/64\/2017\/12\/dev4-1024x768.jpg 1024w, https:\/\/openlab.macaulay.cuny.edu\/reazwrahman\/wp-content\/uploads\/sites\/64\/2017\/12\/dev4-300x225.jpg 300w, https:\/\/openlab.macaulay.cuny.edu\/reazwrahman\/wp-content\/uploads\/sites\/64\/2017\/12\/dev4-768x576.jpg 768w, https:\/\/openlab.macaulay.cuny.edu\/reazwrahman\/wp-content\/uploads\/sites\/64\/2017\/12\/dev4-1536x1152.jpg 1536w, https:\/\/openlab.macaulay.cuny.edu\/reazwrahman\/wp-content\/uploads\/sites\/64\/2017\/12\/dev4-2048x1536.jpg 2048w\" sizes=\"auto, (max-width: 676px) 100vw, 676px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/eportfolios.macaulay.cuny.edu\/rrahman\/files\/2017\/12\/dev1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-150 size-large\" src=\"http:\/\/eportfolios.macaulay.cuny.edu\/rrahman\/files\/2017\/12\/dev1-1024x768.jpg\" alt=\"\" width=\"676\" height=\"507\" \/><\/a><\/p>\n<p><a href=\"http:\/\/eportfolios.macaulay.cuny.edu\/rrahman\/files\/2017\/12\/dev3.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-152\" src=\"http:\/\/eportfolios.macaulay.cuny.edu\/rrahman\/files\/2017\/12\/dev3-1024x768.jpg\" alt=\"\" width=\"676\" height=\"507\" srcset=\"https:\/\/openlab.macaulay.cuny.edu\/reazwrahman\/wp-content\/uploads\/sites\/64\/2017\/12\/dev3-1024x768.jpg 1024w, https:\/\/openlab.macaulay.cuny.edu\/reazwrahman\/wp-content\/uploads\/sites\/64\/2017\/12\/dev3-300x225.jpg 300w, https:\/\/openlab.macaulay.cuny.edu\/reazwrahman\/wp-content\/uploads\/sites\/64\/2017\/12\/dev3-768x576.jpg 768w, https:\/\/openlab.macaulay.cuny.edu\/reazwrahman\/wp-content\/uploads\/sites\/64\/2017\/12\/dev3-1536x1152.jpg 1536w, https:\/\/openlab.macaulay.cuny.edu\/reazwrahman\/wp-content\/uploads\/sites\/64\/2017\/12\/dev3-2048x1536.jpg 2048w\" sizes=\"auto, (max-width: 676px) 100vw, 676px\" \/><\/a><a href=\"http:\/\/eportfolios.macaulay.cuny.edu\/rrahman\/files\/2017\/12\/featured.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-131\" src=\"http:\/\/eportfolios.macaulay.cuny.edu\/rrahman\/files\/2017\/12\/featured.jpg\" alt=\"\" width=\"3264\" height=\"2448\" \/><\/a><a href=\"http:\/\/eportfolios.macaulay.cuny.edu\/rrahman\/files\/2017\/12\/dev1.jpg\"><br \/>\n<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Project Home Security is a hardware and software combination project that detects the\u00a0presence of an intruder outside the front door of a house and immediately sends an email alerting the user about the activity with a picture of the person standing outside.\u00a0 \u00a0 Image: Ultrasonic sensor placed outside the door to detect activity\u00a0 Image: Screenshot [&hellip;]<\/p>\n","protected":false},"author":605,"featured_media":127,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"portfolio_post_id":0,"portfolio_citation":"","portfolio_annotation":"","openlab_post_visibility":"","footnotes":""},"categories":[5],"tags":[],"class_list":["post-125","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-hw-sw-systems"],"_links":{"self":[{"href":"https:\/\/openlab.macaulay.cuny.edu\/reazwrahman\/wp-json\/wp\/v2\/posts\/125","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/openlab.macaulay.cuny.edu\/reazwrahman\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/openlab.macaulay.cuny.edu\/reazwrahman\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/openlab.macaulay.cuny.edu\/reazwrahman\/wp-json\/wp\/v2\/users\/605"}],"replies":[{"embeddable":true,"href":"https:\/\/openlab.macaulay.cuny.edu\/reazwrahman\/wp-json\/wp\/v2\/comments?post=125"}],"version-history":[{"count":0,"href":"https:\/\/openlab.macaulay.cuny.edu\/reazwrahman\/wp-json\/wp\/v2\/posts\/125\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/openlab.macaulay.cuny.edu\/reazwrahman\/wp-json\/wp\/v2\/media\/127"}],"wp:attachment":[{"href":"https:\/\/openlab.macaulay.cuny.edu\/reazwrahman\/wp-json\/wp\/v2\/media?parent=125"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/openlab.macaulay.cuny.edu\/reazwrahman\/wp-json\/wp\/v2\/categories?post=125"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/openlab.macaulay.cuny.edu\/reazwrahman\/wp-json\/wp\/v2\/tags?post=125"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}