{"id":5804,"date":"2021-04-30T12:19:41","date_gmt":"2021-04-30T19:19:41","guid":{"rendered":"https:\/\/www.circuitspecialists.com\/blog\/?p=5804"},"modified":"2021-07-30T11:34:12","modified_gmt":"2021-07-30T18:34:12","slug":"smart-house-project-series","status":"publish","type":"post","link":"https:\/\/www.circuitspecialists.com\/blog\/smart-house-project-series\/","title":{"rendered":"Smart House Project Series &#8211; Part 1"},"content":{"rendered":"\n<p>A <a href=\"\/blog\/the-smart-house-project-part-4\/\">Smart House<\/a> will be the next smartphone. The technology that encompasses a smart house will become the new normal for modern-day homeowners. Smart houses range from basic to advanced depending on the sensors that are installed in the house and the operating system. The ARD-02, 201 Arduino <a href=\"\/diy-electronic-kits\">Basics Starter Kit<\/a>, comes with everything to build a Smart House Model. The kit comes equipped with a temperature sensor for temperature control, LED lights for the house lighting system, sound for the security system, servo motors, and stepper motors for a wide range of motion control.<\/p>\n\n\n\n<p>We want to take advantage of the lessons that come with the <a href=\"\/ard-02.html\">ARD-02 Kit<\/a>, we will use their provided code and do a little modification to work with the smart house project, I will attach the link for the ARD-02 example code below for reference. <\/p>\n\n\n\n<p> <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2018\/01\/ard-02.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1000\" height=\"1000\" src=\"https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2018\/01\/ard-02.jpg\" alt=\"ARD-02 201 Arduino Basics Starter Kit\" class=\"wp-image-4401\" srcset=\"https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2018\/01\/ard-02.jpg 1000w, https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2018\/01\/ard-02-150x150.jpg 150w, https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2018\/01\/ard-02-300x300.jpg 300w, https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2018\/01\/ard-02-768x768.jpg 768w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/a><figcaption>ARD-02 201 Arduino Basics Starter Kit<\/figcaption><\/figure><\/div>\n\n\n\n<p>Part list:<\/p>\n\n\n\n<p>ARD-02 Arduino Basic Kit<\/p>\n\n\n\n<p>LEDs<\/p>\n\n\n\n<p>Digital multimeter<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">Automatic LEDs System <\/h5>\n\n\n\n<p>In today\u2019s project, we will implement the \u201cSensing Light\u201d lesson on page 23, which is the most basic step of a smart house, smart LED light system.<br>The light sensor will provide constant input from the environment and change the light level accordingly. The light system can be set to a specific mood such as dinner, movie, party, etc.<br>You can print the house template and glue it on cardboard with school glue, and then cut it out. This project also works with <a href=\"https:\/\/www.lego.com\/en-us\/product\/corner-garage-10264\\\">LEGO City Series<\/a> and you would have to run the wire internally within the building.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1770-scaled.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1770-1024x768.jpg\" alt=\"\" class=\"wp-image-5808\" width=\"934\" height=\"700\" srcset=\"https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1770-1024x768.jpg 1024w, https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1770-300x225.jpg 300w, https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1770-768x576.jpg 768w, https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1770-1536x1152.jpg 1536w, https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1770-2048x1536.jpg 2048w\" sizes=\"auto, (max-width: 934px) 100vw, 934px\" \/><\/a><\/figure><\/div>\n\n\n\n<p> Now you need to cut the slot for the door and windows.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1764-scaled.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1764-1024x580.jpg\" alt=\"\" class=\"wp-image-5809\" width=\"924\" height=\"523\" srcset=\"https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1764-1024x580.jpg 1024w, https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1764-300x170.jpg 300w, https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1764-768x435.jpg 768w, https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1764-1536x870.jpg 1536w, https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1764-2048x1161.jpg 2048w\" sizes=\"auto, (max-width: 924px) 100vw, 924px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>Install the LED lights for the first and second floors.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1775-scaled.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1775-1024x768.jpg\" alt=\"\" class=\"wp-image-5810\" width=\"919\" height=\"689\" srcset=\"https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1775-1024x768.jpg 1024w, https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1775-300x225.jpg 300w, https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1775-768x576.jpg 768w, https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1775-1536x1152.jpg 1536w, https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1775-2048x1536.jpg 2048w\" sizes=\"auto, (max-width: 919px) 100vw, 919px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>For reference, we used glue and a white piece of paper to close up the windows for better light distribution.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1790-1-scaled.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1790-1-1024x768.jpg\" alt=\"\" class=\"wp-image-5812\" width=\"928\" height=\"696\" srcset=\"https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1790-1-1024x768.jpg 1024w, https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1790-1-300x225.jpg 300w, https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1790-1-768x576.jpg 768w, https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1790-1-1536x1152.jpg 1536w, https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1790-1-2048x1536.jpg 2048w\" sizes=\"auto, (max-width: 928px) 100vw, 928px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>I will include a schematic below for the wiring. <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/Schematic-3.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"704\" src=\"https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/Schematic-3-1024x704.png\" alt=\"\" class=\"wp-image-5825\" srcset=\"https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/Schematic-3-1024x704.png 1024w, https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/Schematic-3-300x206.png 300w, https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/Schematic-3-768x528.png 768w, https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/Schematic-3-1536x1055.png 1536w, https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/Schematic-3-2048x1407.png 2048w, https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/Schematic-3-130x90.png 130w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div>\n\n\n\n<h5 class=\"wp-block-heading\">Assemble and Testing the Light Sensor<\/h5>\n\n\n\n<p>Required part for assembling the Light Sensor<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1782-scaled.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1782-1024x768.jpg\" alt=\"\" class=\"wp-image-5813\" width=\"873\" height=\"654\" srcset=\"https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1782-1024x768.jpg 1024w, https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1782-300x225.jpg 300w, https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1782-768x576.jpg 768w, https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1782-1536x1152.jpg 1536w, https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1782-2048x1536.jpg 2048w\" sizes=\"auto, (max-width: 873px) 100vw, 873px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>I would test the <a href=\"\/resistors\">resistor<\/a> value to make sure that you have the correct 10K Ohm.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1779-1-scaled.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1779-1-1024x768.jpg\" alt=\"\" class=\"wp-image-5815\" width=\"882\" height=\"661\" srcset=\"https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1779-1-1024x768.jpg 1024w, https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1779-1-300x225.jpg 300w, https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1779-1-768x576.jpg 768w, https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1779-1-1536x1152.jpg 1536w, https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1779-1-2048x1536.jpg 2048w\" sizes=\"auto, (max-width: 882px) 100vw, 882px\" \/><\/a><figcaption>CSI2010 Digital Multimeter <\/figcaption><\/figure><\/div>\n\n\n\n<p>Light Sensor assembling <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1784-1-scaled.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1784-1-1024x768.jpg\" alt=\"\" class=\"wp-image-5817\" width=\"935\" height=\"701\" srcset=\"https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1784-1-1024x768.jpg 1024w, https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1784-1-300x225.jpg 300w, https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1784-1-768x576.jpg 768w, https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1784-1-1536x1152.jpg 1536w, https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1784-1-2048x1536.jpg 2048w\" sizes=\"auto, (max-width: 935px) 100vw, 935px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>I will include the schematic below for reference.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/loLMx.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/loLMx.png\" alt=\"\" class=\"wp-image-5827\" width=\"823\" height=\"547\" srcset=\"https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/loLMx.png 600w, https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/loLMx-300x200.png 300w\" sizes=\"auto, (max-width: 823px) 100vw, 823px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>Finally, connect the 3 wires to the Osepp Uno.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1785-scaled.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1785-1024x768.jpg\" alt=\"\" class=\"wp-image-5818\" width=\"846\" height=\"635\" srcset=\"https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1785-1024x768.jpg 1024w, https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1785-300x225.jpg 300w, https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1785-768x576.jpg 768w, https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1785-1536x1152.jpg 1536w, https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1785-2048x1536.jpg 2048w\" sizes=\"auto, (max-width: 846px) 100vw, 846px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>Upload the code to make sure the Light Sensor work as expected. I will attach a link below where you can download the example file.<\/p>\n\n\n\n<p>http:\/\/osepp.com\/files\/osepp_201K.zip<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">Now, we need to make the sensor portable so that it works with our Smart House project. <\/h5>\n\n\n\n<p>Solder the one side of the resistor to the photoresistor as the photo below, then solder the wire according to the code. <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/Untitled-3.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/Untitled-3-1024x601.png\" alt=\"\" class=\"wp-image-5829\" width=\"824\" height=\"483\" srcset=\"https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/Untitled-3-1024x601.png 1024w, https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/Untitled-3-300x176.png 300w, https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/Untitled-3-768x451.png 768w, https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/Untitled-3.png 1234w\" sizes=\"auto, (max-width: 824px) 100vw, 824px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>The Light Sensor should look like the picture below.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1788-scaled.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1788-1024x768.jpg\" alt=\"\" class=\"wp-image-5820\" width=\"763\" height=\"572\" srcset=\"https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1788-1024x768.jpg 1024w, https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1788-300x225.jpg 300w, https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1788-768x576.jpg 768w, https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1788-1536x1152.jpg 1536w, https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1788-2048x1536.jpg 2048w\" sizes=\"auto, (max-width: 763px) 100vw, 763px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>Pick a location toward the roof of the house for the best light input and connect the wire to the Arduino just like previous step. <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1790-2-scaled.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1790-2-1024x768.jpg\" alt=\"\" class=\"wp-image-5821\" width=\"777\" height=\"583\" srcset=\"https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1790-2-1024x768.jpg 1024w, https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1790-2-300x225.jpg 300w, https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1790-2-768x576.jpg 768w, https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1790-2-1536x1152.jpg 1536w, https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/IMG_1790-2-2048x1536.jpg 2048w\" sizes=\"auto, (max-width: 777px) 100vw, 777px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>Now we will change the code so that a certain light condition, the LED light system for our smart house will turn on or off accordingly. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/Project: Smart House \n\nint First_Floor_LED = 3;\nint Second_Floor_LED = 4;\n\n\nconst int sensorMin = 0;\n\/\/ sensor maximum, discovered through experiment\nconst int sensorMax = 800;\n\n\/\/ the photocell voltage divider pin\nint photocellPin = A0;\n\nvoid setup()\n{\n    \/\/ set up serial at 9600 baud   \n    Serial.begin(9600);\n    pinMode(First_Floor_LED, OUTPUT);\n    pinMode(Second_Floor_LED, OUTPUT);\n}\n\nvoid loop()\n{\n    int analogValue;\n    int range;\n\n\/\/ read our photocell\nanalogValue = analogRead(photocellPin);\n\/\/ map the sensor range to a range of four options\nrange = map(analogValue, sensorMin, sensorMax, 0, 3);\n\n\/\/ do something different depending on the \n\/\/ range value\nswitch (range) \n{\n    \/\/ Dark turn on the light \n    case 0:\n        Serial.println(\"dark\");\n        digitalWrite(First_Floor_LED, HIGH);\n        digitalWrite(Second_Floor_LED, HIGH);\n        break;\n    \/\/ Dim turn on the light \n    case 1:\n        Serial.println(\"dim\");\n        digitalWrite(First_Floor_LED, HIGH);\n        digitalWrite(Second_Floor_LED, HIGH);\n        break;\n    \/\/ Medium turn off the ligh \n    case 2: \n        Serial.println(\"medium\");\n        digitalWrite(First_Floor_LED, LOW);\n        digitalWrite(Second_Floor_LED, LOW);\n        break;\n    \/\/ Bright Turn off the ligh \n    case 3:\n        Serial.println(\"bright\");\n        digitalWrite(First_Floor_LED, LOW);\n        digitalWrite(Second_Floor_LED, LOW);\n        break;\n}\n\n\/\/ wait 0.25s before reading the photocell again\ndelay(250);\n}<\/code><\/pre>\n\n\n\n<p>Below would be the demonstration of this add on feature for the Smart House <\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Smart House Project Part 1\" width=\"800\" height=\"450\" src=\"https:\/\/www.youtube.com\/embed\/53PJ66be3Mg?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<h5 class=\"wp-block-heading\">Conclusion<\/h5>\n\n\n\n<p>The Autonomous LED Light system is just the beginning of the<a href=\"\/blog\/smart-house-project-part-2\/\"> Smart House project<\/a>. There will also be motion control, security systems, and much more in future projects. That is not to overlook the importance of an intelligent LED light system in a Smart House. The house of the future will always make the occupants feel welcome after a long day of work, or changing the mood of the house for a welcome home party. Furthermore, the ability to turn the light on and off from an app could add another layer to the security overall.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A Smart House will be the next smartphone. The technology that encompasses a smart house will become the new normal<\/p>\n","protected":false},"author":10687,"featured_media":5833,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"colormag_page_layout":"default_layout","footnotes":""},"categories":[1,124,8,21,287,135],"tags":[129,133,243,132],"class_list":["post-5804","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-all-posts","category-arduino","category-diy","category-education-kits","category-electronic-kits","category-tutorial-how-to","tag-arduino","tag-diy","tag-experiment","tag-makers"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.8.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Smart House Project Series - Part 1 | Simply Smarter Circuitry Blog<\/title>\n<meta name=\"description\" content=\"We want to take advantage of the lessons that come with the ARD-02 Kit, a little modification to work with the smart house project.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.circuitspecialists.com\/blog\/smart-house-project-series\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Smart House Project Series - Part 1 | Simply Smarter Circuitry Blog\" \/>\n<meta property=\"og:description\" content=\"We want to take advantage of the lessons that come with the ARD-02 Kit, a little modification to work with the smart house project.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.circuitspecialists.com\/blog\/smart-house-project-series\/\" \/>\n<meta property=\"og:site_name\" content=\"Simply Smarter Circuitry Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/CircuitSpecialists\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-04-30T19:19:41+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-07-30T18:34:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/Feature-Pic-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1917\" \/>\n\t<meta property=\"og:image:height\" content=\"1077\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Khang\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@CircuitSpecial\" \/>\n<meta name=\"twitter:site\" content=\"@CircuitSpecial\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Khang\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.circuitspecialists.com\/blog\/smart-house-project-series\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.circuitspecialists.com\/blog\/smart-house-project-series\/\"},\"author\":{\"name\":\"Khang\",\"@id\":\"https:\/\/www.circuitspecialists.com\/blog\/#\/schema\/person\/2004b049c7f4ad1ef1c677c13230001e\"},\"headline\":\"Smart House Project Series &#8211; Part 1\",\"datePublished\":\"2021-04-30T19:19:41+00:00\",\"dateModified\":\"2021-07-30T18:34:12+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.circuitspecialists.com\/blog\/smart-house-project-series\/\"},\"wordCount\":613,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.circuitspecialists.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.circuitspecialists.com\/blog\/smart-house-project-series\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/Feature-Pic-1.png\",\"keywords\":[\"Arduino\",\"DIY\",\"Experiment\",\"Makers\"],\"articleSection\":[\"All Posts\",\"Arduino\",\"DIY\",\"Education Kits\",\"Electronic Kits\",\"Tutorial \/ How-to\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.circuitspecialists.com\/blog\/smart-house-project-series\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.circuitspecialists.com\/blog\/smart-house-project-series\/\",\"url\":\"https:\/\/www.circuitspecialists.com\/blog\/smart-house-project-series\/\",\"name\":\"Smart House Project Series - Part 1 | Simply Smarter Circuitry Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.circuitspecialists.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.circuitspecialists.com\/blog\/smart-house-project-series\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.circuitspecialists.com\/blog\/smart-house-project-series\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/Feature-Pic-1.png\",\"datePublished\":\"2021-04-30T19:19:41+00:00\",\"dateModified\":\"2021-07-30T18:34:12+00:00\",\"description\":\"We want to take advantage of the lessons that come with the ARD-02 Kit, a little modification to work with the smart house project.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.circuitspecialists.com\/blog\/smart-house-project-series\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.circuitspecialists.com\/blog\/smart-house-project-series\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.circuitspecialists.com\/blog\/smart-house-project-series\/#primaryimage\",\"url\":\"https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/Feature-Pic-1.png\",\"contentUrl\":\"https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/Feature-Pic-1.png\",\"width\":1917,\"height\":1077,\"caption\":\"Blog\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.circuitspecialists.com\/blog\/smart-house-project-series\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.circuitspecialists.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Smart House Project Series &#8211; Part 1\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.circuitspecialists.com\/blog\/#website\",\"url\":\"https:\/\/www.circuitspecialists.com\/blog\/\",\"name\":\"Simply Smarter Circuitry Blog\",\"description\":\"How To&#039;s, Reviews, and Product News from Circuit Specialists HQ.\",\"publisher\":{\"@id\":\"https:\/\/www.circuitspecialists.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.circuitspecialists.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.circuitspecialists.com\/blog\/#organization\",\"name\":\"Circuit Specialists\",\"url\":\"https:\/\/www.circuitspecialists.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.circuitspecialists.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2016\/03\/csi.jpg\",\"contentUrl\":\"https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2016\/03\/csi.jpg\",\"width\":120,\"height\":120,\"caption\":\"Circuit Specialists\"},\"image\":{\"@id\":\"https:\/\/www.circuitspecialists.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/CircuitSpecialists\/\",\"https:\/\/x.com\/CircuitSpecial\",\"https:\/\/www.youtube.com\/channel\/UCG87WTqDKIqA704uqjumJgg\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.circuitspecialists.com\/blog\/#\/schema\/person\/2004b049c7f4ad1ef1c677c13230001e\",\"name\":\"Khang\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.circuitspecialists.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ffe2b76fa2901ed9a217ed89e6528178?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ffe2b76fa2901ed9a217ed89e6528178?s=96&r=g\",\"caption\":\"Khang\"},\"url\":\"https:\/\/www.circuitspecialists.com\/blog\/author\/khang\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Smart House Project Series - Part 1 | Simply Smarter Circuitry Blog","description":"We want to take advantage of the lessons that come with the ARD-02 Kit, a little modification to work with the smart house project.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.circuitspecialists.com\/blog\/smart-house-project-series\/","og_locale":"en_US","og_type":"article","og_title":"Smart House Project Series - Part 1 | Simply Smarter Circuitry Blog","og_description":"We want to take advantage of the lessons that come with the ARD-02 Kit, a little modification to work with the smart house project.","og_url":"https:\/\/www.circuitspecialists.com\/blog\/smart-house-project-series\/","og_site_name":"Simply Smarter Circuitry Blog","article_publisher":"https:\/\/www.facebook.com\/CircuitSpecialists\/","article_published_time":"2021-04-30T19:19:41+00:00","article_modified_time":"2021-07-30T18:34:12+00:00","og_image":[{"width":1917,"height":1077,"url":"https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/Feature-Pic-1.png","type":"image\/png"}],"author":"Khang","twitter_card":"summary_large_image","twitter_creator":"@CircuitSpecial","twitter_site":"@CircuitSpecial","twitter_misc":{"Written by":"Khang","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.circuitspecialists.com\/blog\/smart-house-project-series\/#article","isPartOf":{"@id":"https:\/\/www.circuitspecialists.com\/blog\/smart-house-project-series\/"},"author":{"name":"Khang","@id":"https:\/\/www.circuitspecialists.com\/blog\/#\/schema\/person\/2004b049c7f4ad1ef1c677c13230001e"},"headline":"Smart House Project Series &#8211; Part 1","datePublished":"2021-04-30T19:19:41+00:00","dateModified":"2021-07-30T18:34:12+00:00","mainEntityOfPage":{"@id":"https:\/\/www.circuitspecialists.com\/blog\/smart-house-project-series\/"},"wordCount":613,"commentCount":0,"publisher":{"@id":"https:\/\/www.circuitspecialists.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.circuitspecialists.com\/blog\/smart-house-project-series\/#primaryimage"},"thumbnailUrl":"https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/Feature-Pic-1.png","keywords":["Arduino","DIY","Experiment","Makers"],"articleSection":["All Posts","Arduino","DIY","Education Kits","Electronic Kits","Tutorial \/ How-to"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.circuitspecialists.com\/blog\/smart-house-project-series\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.circuitspecialists.com\/blog\/smart-house-project-series\/","url":"https:\/\/www.circuitspecialists.com\/blog\/smart-house-project-series\/","name":"Smart House Project Series - Part 1 | Simply Smarter Circuitry Blog","isPartOf":{"@id":"https:\/\/www.circuitspecialists.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.circuitspecialists.com\/blog\/smart-house-project-series\/#primaryimage"},"image":{"@id":"https:\/\/www.circuitspecialists.com\/blog\/smart-house-project-series\/#primaryimage"},"thumbnailUrl":"https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/Feature-Pic-1.png","datePublished":"2021-04-30T19:19:41+00:00","dateModified":"2021-07-30T18:34:12+00:00","description":"We want to take advantage of the lessons that come with the ARD-02 Kit, a little modification to work with the smart house project.","breadcrumb":{"@id":"https:\/\/www.circuitspecialists.com\/blog\/smart-house-project-series\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.circuitspecialists.com\/blog\/smart-house-project-series\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.circuitspecialists.com\/blog\/smart-house-project-series\/#primaryimage","url":"https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/Feature-Pic-1.png","contentUrl":"https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2021\/04\/Feature-Pic-1.png","width":1917,"height":1077,"caption":"Blog"},{"@type":"BreadcrumbList","@id":"https:\/\/www.circuitspecialists.com\/blog\/smart-house-project-series\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.circuitspecialists.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Smart House Project Series &#8211; Part 1"}]},{"@type":"WebSite","@id":"https:\/\/www.circuitspecialists.com\/blog\/#website","url":"https:\/\/www.circuitspecialists.com\/blog\/","name":"Simply Smarter Circuitry Blog","description":"How To&#039;s, Reviews, and Product News from Circuit Specialists HQ.","publisher":{"@id":"https:\/\/www.circuitspecialists.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.circuitspecialists.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.circuitspecialists.com\/blog\/#organization","name":"Circuit Specialists","url":"https:\/\/www.circuitspecialists.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.circuitspecialists.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2016\/03\/csi.jpg","contentUrl":"https:\/\/www.circuitspecialists.com\/blog\/wp-content\/uploads\/2016\/03\/csi.jpg","width":120,"height":120,"caption":"Circuit Specialists"},"image":{"@id":"https:\/\/www.circuitspecialists.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/CircuitSpecialists\/","https:\/\/x.com\/CircuitSpecial","https:\/\/www.youtube.com\/channel\/UCG87WTqDKIqA704uqjumJgg"]},{"@type":"Person","@id":"https:\/\/www.circuitspecialists.com\/blog\/#\/schema\/person\/2004b049c7f4ad1ef1c677c13230001e","name":"Khang","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.circuitspecialists.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/ffe2b76fa2901ed9a217ed89e6528178?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ffe2b76fa2901ed9a217ed89e6528178?s=96&r=g","caption":"Khang"},"url":"https:\/\/www.circuitspecialists.com\/blog\/author\/khang\/"}]}},"_links":{"self":[{"href":"https:\/\/www.circuitspecialists.com\/blog\/wp-json\/wp\/v2\/posts\/5804","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.circuitspecialists.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.circuitspecialists.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.circuitspecialists.com\/blog\/wp-json\/wp\/v2\/users\/10687"}],"replies":[{"embeddable":true,"href":"https:\/\/www.circuitspecialists.com\/blog\/wp-json\/wp\/v2\/comments?post=5804"}],"version-history":[{"count":12,"href":"https:\/\/www.circuitspecialists.com\/blog\/wp-json\/wp\/v2\/posts\/5804\/revisions"}],"predecessor-version":[{"id":8129,"href":"https:\/\/www.circuitspecialists.com\/blog\/wp-json\/wp\/v2\/posts\/5804\/revisions\/8129"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.circuitspecialists.com\/blog\/wp-json\/wp\/v2\/media\/5833"}],"wp:attachment":[{"href":"https:\/\/www.circuitspecialists.com\/blog\/wp-json\/wp\/v2\/media?parent=5804"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.circuitspecialists.com\/blog\/wp-json\/wp\/v2\/categories?post=5804"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.circuitspecialists.com\/blog\/wp-json\/wp\/v2\/tags?post=5804"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}