Random Nerd Tutorials

Arduino – Control 220V Lamps from Anywhere in the World



If you’re following my email/facebook updates you know I promised more tutorials related to Home Automation.

In this tutorial we’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.

Watch the Video below

First make sure you watch my youtube video above, where I explain the whole process in more detail.

Parts Requiredhas_switch_parts

You can use the preceding links or go directly to MakerAdvisor.com/tools to find all the parts for your projects at the best price!

Go to Home Automation Server

Click here to go to HomeAutomationServer.com to create your free account and start editing your Dashboard with 2 new buttons.  (for example: Button #1 – Desk Light and Button #2 – Desk Light)

Receiver Circuit


Click here to Download the RCSwitch Library. Install it an Re-open the Arduino IDE. Then open the example “ReceiveDemo_Advanced”. Upload the code and open the serial monitor. Start pressing the buttons from the Remote you’re going to use and save them.

Transmitter Circuit


After you complete  the transmitter circuit. Upload the Arduino code below. (Change the user_key and the if statments as shown during the video)

Click Here to Download the Arduino Code

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 Facebook Page.

P.S. Make sure you watch the youtube video above otherwise you might not fully understand some of the steps.

20 Easy Raspberry Pi Projects

Our new book is a beginner-friendly collection of electronics projects, perfectly suited for hobbyists, parents, kids, parents, and educators looking to level up their hardware skills - GET THE BOOK »

Recommended Resources

Home Automation using ESP8266 »
Build IoT projects and home automation gadgets with the ESP8266 Wi-Fi module.

Build a Home Automation System »
Learn how to build a automation system using open-source hardware and software from scratch.

Arduino Step-by-Step Projects »
Build 25 cool Arduino projects with our couse even with no prior experience!

Leave a Comment:

Add Your Reply