{"id":10893,"date":"2015-11-24T20:53:30","date_gmt":"2015-11-25T01:53:30","guid":{"rendered":"http:\/\/embedded-lab.com\/blog\/?p=10893"},"modified":"2015-11-24T20:53:30","modified_gmt":"2015-11-25T01:53:30","slug":"esp8266-controls-ac-outlet-lamp","status":"publish","type":"post","link":"https:\/\/embedded-lab.com\/blog\/esp8266-controls-ac-outlet-lamp\/","title":{"rendered":"ESP8266 controls an AC outlet for lamp"},"content":{"rendered":"<p><em><strong>Gary<\/strong><\/em> shares his <strong><a href=\"https:\/\/hackaday.io\/project\/8456-esp8266-lampoutlet-control\" target=\"_blank\">ESP8266 controlled on\/off switch<\/a><\/strong> for a lamp.<\/p>\n<blockquote><p>The first step is to find a case to house the parts in. I had an old TP-link router case that I used. It already had a two prong spring out 110v connections but any box will work. When planning your boxes figure out how your going to get the AC in and out of the box. A stop at your local bigbox hardware store should give you lots of idea. At a minimum a deepwall outlet\/switch box will work but use your imagination. My project only uses 2 wire as thats what the case supported but if your planning on switching anything other than simple lights use a 3 wire system and include the ground.<\/p>\n<p>If your not sure about what wires goes where take a look online on how you would add a simple manual switch to a circuit and just replace the switch with your device.<\/p><\/blockquote>\n<div id=\"attachment_10894\" style=\"width: 590px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2015\/11\/esp8266.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-10894\" class=\"size-medium wp-image-10894\" src=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2015\/11\/esp8266-580x474.jpg\" alt=\"On\/Off AC outlet switch using ESP8266\" width=\"580\" height=\"474\" \/><\/a><p id=\"caption-attachment-10894\" class=\"wp-caption-text\">On\/Off AC outlet switch using ESP8266<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Gary shares his ESP8266 controlled on\/off switch for a lamp. The first step is to find a case to house the parts in. I had an old TP-link router case that I used. It already had a two prong spring out 110v connections but any box will work. When planning your boxes figure out how your going to get the AC in and out of the box. A stop at your local bigbox hardware store should give you lots of idea. At a minimum a deepwall outlet\/switch box will work but use your imagination. My project only uses 2 wire<\/p>\n","protected":false},"author":1,"featured_media":10894,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1044],"tags":[1046,1201],"class_list":["post-10893","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-esp8266","tag-esp8266-project","tag-iot-device"],"_links":{"self":[{"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/posts\/10893","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/comments?post=10893"}],"version-history":[{"count":1,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/posts\/10893\/revisions"}],"predecessor-version":[{"id":10895,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/posts\/10893\/revisions\/10895"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/media\/10894"}],"wp:attachment":[{"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/media?parent=10893"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/categories?post=10893"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/tags?post=10893"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}