The super-simple light switches featured in some SuperHouse episodes are designed to be reliable and easy to assemble. They’re really just illuminated buttons on the end of a long bit of wire, connecting to a light switch controller that does all the work of detecting when someone presses a switch.
You can see details of the light switch controller in Episode 25: Arduino home automation light switch controller. Details of the light switches themselves are in Episode 26: Make your own home automation light switches.
To make your own version of the SuperHouse light switches you can use a blank wall plate that suits the standard size for your country and the decor of your house, and combine it with your choice of illuminated buttons (available in multiple colours) and a breakout with an RJ45 connection.
Then you can use LAN cable (such as Cat-5 twisted pair) with RJ45 plugs to connect the light switches to an Arduino using an I/O Breakout To RJ45, and either an I/O Breakout Shield or an I/O Breakout Shield Mega.
To make each light switch you will need:
- A blank wall plate. This is the same as the body of a normal light switch or power outlet, but without anything in it. You can usually buy these from a local hardware store or electrical supplier for a couple of bucks.
- Illuminated buttons. Available in red, green, blue, white, and yellow. See GQ16F Specifications for full specs on the buttons that I use.
- A breakout to suit the number of buttons you want. Available in 2-button, 3-button, and 4-button versions. If you want a wall plate with a single button, use the 2-button breakout and only fit one button.
Mark Switch Locations
The breakout PCBs have the physical spacing of the buttons printed on the top of the board, so you can always refer to it if you need to. For example, the 4-button breakout has 24mm horizontal spacing and 30mm vertical spacing (center to center) between the buttons as shown here:
You can use these measurements to mark the correct positions on the blank wall plate.
To make it even easier, the breakout PCBs also have a hole drilled at the exact center of each button. That means you can use the breakout as a template to mark the drilling locations.
Carefully position the PCB directly on the wall plate, so that it is centered both vertically and horizontally.
Then use a felt-tip pen to mark a dot on the wall plate through the center hole of each button.
Drill Switch Holes
Now that you have accurate marks for the hole locations, use a small drill bit to make a pilot hole through each of the marks. Do this step very carefully to ensure the position of each button is correct.
Then drill out the holes to 16mm diameter. You can do this with either a step-drill (which will leave a very clean hole) or a 16mm spade bit. Be careful with this stage, because a large drill bit can catch the edge of the hole and spin the wall plate violently. Make sure your hands are protected and the wall plate is well braced.
If the drill has left the edges of the holes rough, you can clean them up with a sharp hobby knife. Otherwise the switches may not sit flat against the plate.
Mount Switches In Wall Plate
Insert the switches through the wall plate from the front, and then fit the nuts onto the switches from the back.
Don’t tighten them up yet! The switches still need to be able to rotate, so leave the nuts loose.
Fit Breakout To Switches
Be very careful with this step. It’s critical to get it right. The pins on the switches must be oriented the right way around so that the LED connections go to the correct pads.
Look closely at the back of each switch and find a small dot between two of the pins. If you look at the markings on the breakout PCB you’ll also find a dot. Rotate the switches in the face plate so that the dots on the switches are in the same position as the dots on the PCB.
Place the PCB onto the pins, and press down and wriggle it until the pins go partly into the holes. It’s easiest to do this with the wall plate sitting face-down on a work bench, but be careful not to scratch it. Place a soft cloth, some paper towel, or an anti-static mat on the work bench to protect the wall plate and the front of the buttons.
The switch pins can be a very tight fit in the PCB. Be careful that you don’t damage them when fitting the PCB. Be patient, work carefully, and slowly work the PCB down onto the pins. You may need to bend the pins in or out slightly to make them align.
Don’t push the PCB all the way down. Only push it enough for the pins to go through the holes, and just come through the top of the PCB a tiny bit. This will reduce the strain on the pins, and also give better clearance for the cable when it plugs into the RJ45 socket.
Tighten up the nuts on the back of the switches so they’re held firmly in place.
Solder Switches To Breakout
Solder each of the switch pins to the PCB. Be careful working around the RJ45 socket so that you don’t melt it with the soldering iron. Also make sure you don’t disturb the tiny surface mount resistors on the PCB.
The light switch is now complete and ready to use, but first it’s a good idea to put a dab of hot glue or epoxy onto the nuts so that they don’t work loose.
A few examples of switches that have been assembled using these breakouts.
4-way with white buttons:
2-way with blue buttons: