Internet Controlled Mains Switcher

This is a very low cost and basic from of home automation allowing you to turn on and off lights and other devices using your computer or mobile phone.

It has been built and tested use using UK power plugs, but the same protocol is used on many budget remote power switchers from around the world.

Internet Controlled Mains Switcher

Step 1: What You Will Need

You will need…

  1. A Spark Core wi-fi development kit
  2. A remote controlled mains sockets set *
  3. A 433MHz Transmitter Module **
  4. A short length of wire (>9cm)
  5. 3 Jumper wires
  6. A 5V PSU and USB cable ***
  7. A web server with PHP installed (optional)

…and the following tools…

  1. A soldering iron (and some solder)
  2. Wire cutters and strippers
  3. A computer with Internet access

…and if you want to build the red box (totally optional) you will also require…

  1. A laser cutter or laser cutting service
  2. Contact glue
  3. Feet / pads (even more optional than the rest)

* As a rule of thumb if the pack contains 3 sockets and is the cheapest in the shop, if the remote control can be set to 1 of 4 “groups” or “channels”, and and if the remote control has on and off buttons for 3 or 4 devices, then the odds are it will be compatible. Unfortunately the protocol used does not have a global name and you will not find anything printed on the packaging to say the sockets are compatible. I have use sockets purchased from Clas Ohlson (now replaced by a new set that I have not tested) and friends have used sockets for clearance shops and from Maplin (although this is the more costly option).

** The transmitter module is normally available thought ebay for under £1 sterling and under $1 US, or slightly more if you want a quick delivery.

*** The Spark Core comes with a very short power cable and you may be able to power it from another device such as a network router.

Step 2: Construct the Antenna

The first task is to attach an antenna to the transmitter module. This requires some basic soldering. If you know what you are doing just solder exactly 87mm of wire on to “Ant” on the module and move on to the next step.

If you have never soldered before then you can absolutely still do this. I recommend following an online tutorial and having a practice fist, and then coming back here.

The antenna should be 87mm long. Making it longer does not make the signal better unless it is an “Harmonic” of the base wavelength. I have a blog post with the antenna lengths you can use and a little of the maths behind working that out.

After measuring, cutting and stripping the wire you will need to tin the end of it. Also add just a little solder of the “Ant” point on the module. Place the antenna on the “Ant” point, heat them with the soldering iron, wait until they meld together, remove the soldering iron, hold it still until the solder solidifies, and you are done.

 

For more detail: Internet Controlled Mains Switcher


About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top