{"id":2108,"date":"2014-03-03T14:42:36","date_gmt":"2014-03-03T14:42:36","guid":{"rendered":"http:\/\/randomnerdtutorials.com\/?p=2108"},"modified":"2019-04-02T10:23:37","modified_gmt":"2019-04-02T10:23:37","slug":"arduino-control-220v-lamps-from-anywhere-in-the-world","status":"publish","type":"post","link":"https:\/\/randomnerdtutorials.com\/arduino-control-220v-lamps-from-anywhere-in-the-world\/","title":{"rendered":"Arduino &#8211; Control 220V Lamps from Anywhere in the World"},"content":{"rendered":"<p>Hi,<\/p>\n<p>If you&#8217;re following my email\/facebook updates you know I promised more tutorials related to Home Automation.<\/p>\n<p>In this tutorial we&#8217;re going to control 2 lamps with an Arduino and an Ethernet Shield. If you have an Internet connection you can control those lamps from anywhere in the world.<!--more--><\/p>\n<h2>Watch the Video below<\/h2>\n<p style=\"text-align:center\"><iframe width=\"720\" height=\"405\" src=\"https:\/\/www.youtube.com\/embed\/B2-PrVAF3BE?rel=0\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n<p>First make sure you watch my youtube video above, where I explain the whole process in more detail.<\/p>\n<h3>Parts Required<a href=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2014\/03\/has_switch_parts.jpg?quality=100&#038;strip=all&#038;ssl=1\"><img data-recalc-dims=\"1\" fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter wp-image-2111\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2014\/03\/has_switch_parts.jpg?resize=430%2C286&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"has_switch_parts\" width=\"430\" height=\"286\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2014\/03\/has_switch_parts.jpg?resize=1024%2C680&amp;quality=100&amp;strip=all&amp;ssl=1 1024w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2014\/03\/has_switch_parts.jpg?resize=300%2C199&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2014\/03\/has_switch_parts.jpg?w=1079&amp;quality=100&amp;strip=all&amp;ssl=1 1079w\" sizes=\"(max-width: 430px) 100vw, 430px\" \/><\/a><\/h3>\n<ul>\n<li><a href=\"https:\/\/makeradvisor.com\/tools\/compatible-arduino-uno-r3-board\/\" target=\"_blank\" rel=\"noopener noreferrer\">Arduino UNO<\/a>\u00a0\u2013 read\u00a0<a href=\"https:\/\/makeradvisor.com\/best-arduino-starter-kits\/\" target=\"_blank\" rel=\"noopener noreferrer\">Best Arduino Starter Kits<\/a><\/li>\n<li><a href=\"https:\/\/makeradvisor.com\/tools\/ethernet-shield-w5100-arduino-shield\/\" target=\"_blank\" rel=\"noopener noreferrer\">1x Ethernet Shield<\/a><\/li>\n<li><a href=\"https:\/\/makeradvisor.com\/tools\/433mhz-receiver-transmitter-module\/\" target=\"_blank\" rel=\"noopener noreferrer\">1x 433Mhz Receiver and Transmitter<\/a><\/li>\n<li><a href=\"https:\/\/makeradvisor.com\/tools\/rf-remote-controlled-sockets-433mhz\/\" target=\"_blank\" rel=\"noopener noreferrer\">2x Remote Controlled Sockets with a Remote Control (Controlled by 433Mhz Frequency)<\/a><\/li>\n<\/ul>\n<p>You can use the preceding links or go directly to <a href=\"https:\/\/makeradvisor.com\/tools\/?utm_source=rnt&utm_medium=post&utm_campaign=post\" target=\"_blank\">MakerAdvisor.com\/tools<\/a> to find all the parts for your projects at the best price!<\/p><p style=\"text-align:center;\"><a href=\"https:\/\/makeradvisor.com\/tools\/?utm_source=rnt&utm_medium=post&utm_campaign=post\" target=\"_blank\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2017\/10\/header-200.png?w=1200&#038;quality=100&#038;strip=all&#038;ssl=1\"><\/a><\/p>\n<p style=\"text-align: center;\">\n<h3>Go to Home Automation Server<\/h3>\n<p><a title=\"Home Automation Server\" href=\"http:\/\/homeautomationserver.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">Click here to go to HomeAutomationServer.com<\/a> to create your free account and start editing your Dashboard with 2 new buttons. \u00a0(for example: <span style=\"text-decoration: underline;\"><em>Button #1 &#8211; Desk Light<\/em><\/span> and <span style=\"text-decoration: underline;\"><em>Button #2 &#8211; Desk Light<\/em><\/span>)<\/p>\n<h3>Receiver Circuit<\/h3>\n<p style=\"text-align: center;\"><a href=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2014\/03\/has_receiver_circuit_bb_final.jpg?quality=100&#038;strip=all&#038;ssl=1\"><img data-recalc-dims=\"1\" decoding=\"async\" class=\"aligncenter wp-image-2110\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2014\/03\/has_receiver_circuit_bb_final.jpg?resize=367%2C430&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"has_receiver_circuit_bb_final\" width=\"367\" height=\"430\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2014\/03\/has_receiver_circuit_bb_final.jpg?resize=873%2C1024&amp;quality=100&amp;strip=all&amp;ssl=1 873w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2014\/03\/has_receiver_circuit_bb_final.jpg?resize=255%2C300&amp;quality=100&amp;strip=all&amp;ssl=1 255w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2014\/03\/has_receiver_circuit_bb_final.jpg?w=950&amp;quality=100&amp;strip=all&amp;ssl=1 950w\" sizes=\"(max-width: 367px) 100vw, 367px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/code.google.com\/p\/rc-switch\/downloads\/detail?name=RCswitch_2.51.zip&amp;can=2&amp;q=\" target=\"_blank\" rel=\"noopener noreferrer\">Click here to Download the RCSwitch Library<\/a>. Install it an Re-open the Arduino IDE. Then open the example &#8220;ReceiveDemo_Advanced&#8221;. Upload the code and open the serial monitor. Start pressing the buttons from the Remote you&#8217;re going to use and save them.<\/p>\n<h3>Transmitter Circuit<\/h3>\n<p style=\"text-align: center;\"><a href=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2014\/03\/has_sender_circuit_bb_final.jpg?quality=100&#038;strip=all&#038;ssl=1\"><img data-recalc-dims=\"1\" decoding=\"async\" class=\"aligncenter wp-image-2109\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2014\/03\/has_sender_circuit_bb_final.jpg?resize=355%2C387&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"has_sender_circuit_bb_final\" width=\"355\" height=\"387\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2014\/03\/has_sender_circuit_bb_final.jpg?resize=938%2C1024&amp;quality=100&amp;strip=all&amp;ssl=1 938w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2014\/03\/has_sender_circuit_bb_final.jpg?resize=274%2C300&amp;quality=100&amp;strip=all&amp;ssl=1 274w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2014\/03\/has_sender_circuit_bb_final.jpg?w=1048&amp;quality=100&amp;strip=all&amp;ssl=1 1048w\" sizes=\"(max-width: 355px) 100vw, 355px\" \/><\/a><\/p>\n<p style=\"text-align: left;\">After you complete \u00a0the transmitter circuit.<strong> Upload the Arduino code below.<\/strong> (<em>Change the user_key and the if statments as shown during the video<\/em>)<\/p>\n<p style=\"text-align: left;\"><a title=\"Github Arduino Code\" href=\"https:\/\/github.com\/RuiSantosdotme\/HomeAutomationServer\/blob\/master\/HAS_Control_220V_Lamps.ino\" target=\"_blank\" rel=\"noopener noreferrer\">Click Here to Download the Arduino Code<\/a><\/p>\n<p>Thanks for watching, you can contact me by leaving a comment below. If you like this project probably you might like my next ones, so please support me by subscribing my blog and my\u00a0Facebook Page.<\/p>\n<p><strong>P.S. Make sure you watch the youtube video above otherwise you might not fully understand some of the steps.<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi, If you&#8217;re following my email\/facebook updates you know I promised more tutorials related to Home Automation. In this tutorial we&#8217;re going to control 2 lamps with an Arduino and &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"Arduino &#8211; Control 220V Lamps from Anywhere in the World\" class=\"read-more button\" href=\"https:\/\/randomnerdtutorials.com\/arduino-control-220v-lamps-from-anywhere-in-the-world\/#more-2108\" aria-label=\"Read more about Arduino &#8211; Control 220V Lamps from Anywhere in the World\">CONTINUE READING \u00bb<\/a><\/p>\n","protected":false},"author":1,"featured_media":2112,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[303,2,267,198,264,10,199],"tags":[],"class_list":["post-2108","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-0-arduino","category-arduino","category-arduino-project","category-home-automation-server","category-project","category-a-tutorials","category-h-tutorials"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2014\/03\/has_switch_thumnail.jpg?fit=954%2C520&quality=100&strip=all&ssl=1","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/posts\/2108","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/comments?post=2108"}],"version-history":[{"count":0,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/posts\/2108\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/media\/2112"}],"wp:attachment":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/media?parent=2108"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/categories?post=2108"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/tags?post=2108"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}