{"id":1087,"date":"2014-06-19T11:09:53","date_gmt":"2014-06-19T18:09:53","guid":{"rendered":"https:\/\/blog.digilentinc.com\/?p=1087"},"modified":"2015-08-03T17:51:00","modified_gmt":"2015-08-04T00:51:00","slug":"motion-sensing-ac-switch-with-built-in-timer","status":"publish","type":"post","link":"https:\/\/digilent.com\/blog\/motion-sensing-ac-switch-with-built-in-timer\/","title":{"rendered":"Motion-Sensing AC Switch with Built-in Timer"},"content":{"rendered":"<p style=\"text-align: left;\">Hello, all! I just finished a new project, the motion-activated AC switch.<\/p>\n<p style=\"text-align: left;\"><a href=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/06\/finished1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1089 size-medium\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/06\/finished1-300x225.jpg\" alt=\"Finished Project\" width=\"300\" height=\"225\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/06\/finished1-300x225.jpg 300w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/06\/finished1-1024x768.jpg 1024w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/06\/finished1-600x450.jpg 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/06\/finished1-800x600.jpg 800w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/06\/finished1-1200x900-cropped.jpg 1200w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/06\/finished1.jpg 2048w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p style=\"text-align: left;\">In the interest of saving my sanity while configuring Christmas lights on the tree, I decided to build a motion-activated switch that can power the lights for me. It has an integrated adjustable timer so they will stay on for as much time\u00a0as I want. Here&#8217;s a\u00a0video\u00a0showing the final test on the fish tank light.<\/p>\n<div class=\"jetpack-video-wrapper\"><iframe loading=\"lazy\" width=\"735\" height=\"413\" src=\"https:\/\/www.youtube.com\/embed\/OGKfNQh_8Cc?feature=oembed\" frameborder=\"0\" allow=\"autoplay; encrypted-media\" allowfullscreen><\/iframe><\/div>\n<p style=\"text-align: left;\">Head on over to <a title=\"Instructables\" href=\"http:\/\/www.instructables.com\/id\/Motion-Activated-AC-Switch\/\" target=\"_blank\">Instructables<\/a>\u00a0to check it out step-by-step!<\/p>\n<div class='watch-action'><div class='watch-position align-left'><div class='action-like'><a class='lbg-style6 like-1087 jlk' data-task='like' data-post_id='1087' data-nonce='fd7a0819bd' rel='nofollow'><img src='https:\/\/digilent.com\/blog\/wp-content\/plugins\/wti-like-post-pro\/images\/pixel.gif' title='Like' \/><span class='lc-1087 lc'>0<\/span><\/a><\/div><div class='action-unlike'><a class='unlbg-style6 unlike-1087 jlk' data-task='unlike' data-post_id='1087' data-nonce='fd7a0819bd' rel='nofollow'><img src='https:\/\/digilent.com\/blog\/wp-content\/plugins\/wti-like-post-pro\/images\/pixel.gif' title='Unlike' \/><span class='unlc-1087 unlc'>0<\/span><\/a><\/div><\/div> <div class='status-1087 status align-left'>Be the 1st to vote.<\/div><\/div><div class='wti-clear'><\/div>","protected":false},"excerpt":{"rendered":"<p>Hello, all! I just finished a new project, the motion-activated AC switch.<\/p>\n","protected":false},"author":22,"featured_media":1089,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false,"_ppma_block_editor_authors":""},"categories":[1561],"tags":[104],"ppma_author":[4471],"class_list":["post-1087","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-applications","tag-project-2"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Motion-Sensing AC Switch with Built-in Timer - Digilent Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/digilent.com\/blog\/motion-sensing-ac-switch-with-built-in-timer\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Motion-Sensing AC Switch with Built-in Timer - Digilent Blog\" \/>\n<meta property=\"og:description\" content=\"Hello, all! I just finished a new project, the motion-activated AC switch.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/digilent.com\/blog\/motion-sensing-ac-switch-with-built-in-timer\/\" \/>\n<meta property=\"og:site_name\" content=\"Digilent Blog\" \/>\n<meta property=\"article:published_time\" content=\"2014-06-19T18:09:53+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2015-08-04T00:51:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/06\/finished1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"2048\" \/>\n\t<meta property=\"og:image:height\" content=\"1536\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Brandon Marcum\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Brandon Marcum\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/digilent.com\\\/blog\\\/motion-sensing-ac-switch-with-built-in-timer\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/digilent.com\\\/blog\\\/motion-sensing-ac-switch-with-built-in-timer\\\/\"},\"author\":{\"name\":\"Brandon Marcum\",\"@id\":\"https:\\\/\\\/digilent.com\\\/blog\\\/#\\\/schema\\\/person\\\/d567961af25b00c6cb79f9a67cbe0c31\"},\"headline\":\"Motion-Sensing AC Switch with Built-in Timer\",\"datePublished\":\"2014-06-19T18:09:53+00:00\",\"dateModified\":\"2015-08-04T00:51:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/digilent.com\\\/blog\\\/motion-sensing-ac-switch-with-built-in-timer\\\/\"},\"wordCount\":99,\"commentCount\":2,\"image\":{\"@id\":\"https:\\\/\\\/digilent.com\\\/blog\\\/motion-sensing-ac-switch-with-built-in-timer\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/digilent.com\\\/blog\\\/wp-content\\\/uploads\\\/2014\\\/06\\\/finished1.jpg\",\"keywords\":[\"project\"],\"articleSection\":[\"Product Applications \u2013 Digilent Blog\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/digilent.com\\\/blog\\\/motion-sensing-ac-switch-with-built-in-timer\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/digilent.com\\\/blog\\\/motion-sensing-ac-switch-with-built-in-timer\\\/\",\"url\":\"https:\\\/\\\/digilent.com\\\/blog\\\/motion-sensing-ac-switch-with-built-in-timer\\\/\",\"name\":\"Motion-Sensing AC Switch with Built-in Timer - Digilent Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/digilent.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/digilent.com\\\/blog\\\/motion-sensing-ac-switch-with-built-in-timer\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/digilent.com\\\/blog\\\/motion-sensing-ac-switch-with-built-in-timer\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/digilent.com\\\/blog\\\/wp-content\\\/uploads\\\/2014\\\/06\\\/finished1.jpg\",\"datePublished\":\"2014-06-19T18:09:53+00:00\",\"dateModified\":\"2015-08-04T00:51:00+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/digilent.com\\\/blog\\\/#\\\/schema\\\/person\\\/d567961af25b00c6cb79f9a67cbe0c31\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/digilent.com\\\/blog\\\/motion-sensing-ac-switch-with-built-in-timer\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/digilent.com\\\/blog\\\/motion-sensing-ac-switch-with-built-in-timer\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/digilent.com\\\/blog\\\/motion-sensing-ac-switch-with-built-in-timer\\\/#primaryimage\",\"url\":\"https:\\\/\\\/digilent.com\\\/blog\\\/wp-content\\\/uploads\\\/2014\\\/06\\\/finished1.jpg\",\"contentUrl\":\"https:\\\/\\\/digilent.com\\\/blog\\\/wp-content\\\/uploads\\\/2014\\\/06\\\/finished1.jpg\",\"width\":2048,\"height\":1536},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/digilent.com\\\/blog\\\/motion-sensing-ac-switch-with-built-in-timer\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/digilent.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Motion-Sensing AC Switch with Built-in Timer\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/digilent.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/digilent.com\\\/blog\\\/\",\"name\":\"Digilent Blog\",\"description\":\"Learning for Engineers, Students, and Hobbyists\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/digilent.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/digilent.com\\\/blog\\\/#\\\/schema\\\/person\\\/d567961af25b00c6cb79f9a67cbe0c31\",\"name\":\"Brandon Marcum\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3f3481ac36f3c92f08a1a8266d60111ca31c5031c4428d551991aa080d9d529b?s=96&d=mm&r=ge9df8f405f870d9bf3c86a2184bddde0\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3f3481ac36f3c92f08a1a8266d60111ca31c5031c4428d551991aa080d9d529b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3f3481ac36f3c92f08a1a8266d60111ca31c5031c4428d551991aa080d9d529b?s=96&d=mm&r=g\",\"caption\":\"Brandon Marcum\"},\"url\":\"https:\\\/\\\/digilent.com\\\/blog\\\/author\\\/brmarcum\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Motion-Sensing AC Switch with Built-in Timer - Digilent Blog","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:\/\/digilent.com\/blog\/motion-sensing-ac-switch-with-built-in-timer\/","og_locale":"en_US","og_type":"article","og_title":"Motion-Sensing AC Switch with Built-in Timer - Digilent Blog","og_description":"Hello, all! I just finished a new project, the motion-activated AC switch.","og_url":"https:\/\/digilent.com\/blog\/motion-sensing-ac-switch-with-built-in-timer\/","og_site_name":"Digilent Blog","article_published_time":"2014-06-19T18:09:53+00:00","article_modified_time":"2015-08-04T00:51:00+00:00","og_image":[{"width":2048,"height":1536,"url":"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/06\/finished1.jpg","type":"image\/jpeg"}],"author":"Brandon Marcum","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Brandon Marcum"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/digilent.com\/blog\/motion-sensing-ac-switch-with-built-in-timer\/#article","isPartOf":{"@id":"https:\/\/digilent.com\/blog\/motion-sensing-ac-switch-with-built-in-timer\/"},"author":{"name":"Brandon Marcum","@id":"https:\/\/digilent.com\/blog\/#\/schema\/person\/d567961af25b00c6cb79f9a67cbe0c31"},"headline":"Motion-Sensing AC Switch with Built-in Timer","datePublished":"2014-06-19T18:09:53+00:00","dateModified":"2015-08-04T00:51:00+00:00","mainEntityOfPage":{"@id":"https:\/\/digilent.com\/blog\/motion-sensing-ac-switch-with-built-in-timer\/"},"wordCount":99,"commentCount":2,"image":{"@id":"https:\/\/digilent.com\/blog\/motion-sensing-ac-switch-with-built-in-timer\/#primaryimage"},"thumbnailUrl":"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/06\/finished1.jpg","keywords":["project"],"articleSection":["Product Applications \u2013 Digilent Blog"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/digilent.com\/blog\/motion-sensing-ac-switch-with-built-in-timer\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/digilent.com\/blog\/motion-sensing-ac-switch-with-built-in-timer\/","url":"https:\/\/digilent.com\/blog\/motion-sensing-ac-switch-with-built-in-timer\/","name":"Motion-Sensing AC Switch with Built-in Timer - Digilent Blog","isPartOf":{"@id":"https:\/\/digilent.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/digilent.com\/blog\/motion-sensing-ac-switch-with-built-in-timer\/#primaryimage"},"image":{"@id":"https:\/\/digilent.com\/blog\/motion-sensing-ac-switch-with-built-in-timer\/#primaryimage"},"thumbnailUrl":"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/06\/finished1.jpg","datePublished":"2014-06-19T18:09:53+00:00","dateModified":"2015-08-04T00:51:00+00:00","author":{"@id":"https:\/\/digilent.com\/blog\/#\/schema\/person\/d567961af25b00c6cb79f9a67cbe0c31"},"breadcrumb":{"@id":"https:\/\/digilent.com\/blog\/motion-sensing-ac-switch-with-built-in-timer\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/digilent.com\/blog\/motion-sensing-ac-switch-with-built-in-timer\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/digilent.com\/blog\/motion-sensing-ac-switch-with-built-in-timer\/#primaryimage","url":"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/06\/finished1.jpg","contentUrl":"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/06\/finished1.jpg","width":2048,"height":1536},{"@type":"BreadcrumbList","@id":"https:\/\/digilent.com\/blog\/motion-sensing-ac-switch-with-built-in-timer\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/digilent.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Motion-Sensing AC Switch with Built-in Timer"}]},{"@type":"WebSite","@id":"https:\/\/digilent.com\/blog\/#website","url":"https:\/\/digilent.com\/blog\/","name":"Digilent Blog","description":"Learning for Engineers, Students, and Hobbyists","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/digilent.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/digilent.com\/blog\/#\/schema\/person\/d567961af25b00c6cb79f9a67cbe0c31","name":"Brandon Marcum","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/3f3481ac36f3c92f08a1a8266d60111ca31c5031c4428d551991aa080d9d529b?s=96&d=mm&r=ge9df8f405f870d9bf3c86a2184bddde0","url":"https:\/\/secure.gravatar.com\/avatar\/3f3481ac36f3c92f08a1a8266d60111ca31c5031c4428d551991aa080d9d529b?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3f3481ac36f3c92f08a1a8266d60111ca31c5031c4428d551991aa080d9d529b?s=96&d=mm&r=g","caption":"Brandon Marcum"},"url":"https:\/\/digilent.com\/blog\/author\/brmarcum\/"}]}},"jetpack_sharing_enabled":true,"authors":[{"term_id":4471,"user_id":22,"is_guest":0,"slug":"brmarcum","display_name":"Brandon Marcum","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/3f3481ac36f3c92f08a1a8266d60111ca31c5031c4428d551991aa080d9d529b?s=96&d=mm&r=g","author_category":"","user_url":"","last_name":"Marcum","last_name_2":"","first_name":"Brandon","first_name_2":"","job_title":"","description":""}],"jetpack_featured_media_url":"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/06\/finished1.jpg","post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/1087","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\/22"}],"replies":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/comments?post=1087"}],"version-history":[{"count":0,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/1087\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/media\/1089"}],"wp:attachment":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/media?parent=1087"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/categories?post=1087"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/tags?post=1087"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=1087"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}