An Introduction to Solid State Relays

When we think of relays, we tend to think of those big mechanical things that make a satisfying ‘click’ when activated. As nice as they are for relay-based computers, there are times when you don’t want to deal with noise or the unreliability of moving parts. This is where solid-state relays (SSRs) are worth considering. They switch faster, silently, without bouncing or arcing, last longer, and don’t contain a big inductor.

Source Fotek SSR Specifications Sheet

An SSR consists of two or three standard components packed into a module (you can even build one yourself). The first component is an optocoupler which isolates your control circuit from the mains power that you are controlling. Second, a triac, silicon controlled rectifier, or MOSFET that switches the mains power using the output from the optocoupler. Finally, there is usually (but not always) a ‘zero-crossing detection circuit’. This causes the relay to wait until the current it is controlling reaches zero before shutting off. Most SSRs will similarly wait until the mains voltage crosses zero volts before switching on.

If a mechanical relay turns on or off near the peak voltage when supplying AC, there is a sudden drop or rise in current. If you have an inductive load such as an electric motor, this can cause a large transient voltage spike when you turn off the relay, as the magnetic field surrounding the inductive load collapses. Switching a relay during a peak in the mains voltage also causes an electric arc between the relay terminals, wearing them down and contributing to the mechanical failure of the relay.

Continue reading “An Introduction to Solid State Relays”

DIY microcontroller-switched power strip


[Teknynja] was looking for a way to control several discrete AC-powered devices using a microcontroller, and while he did consider the Powerswitch tail 2 from Adafruit, handling 5 devices would get pretty expensive. Rather than buying a complete off the shelf solution, he decided to build his own 5-way switched outlet.

He picked up a sturdy metal power strip from a local hardware store along with some Sharp S201S06V relays he ordered online. After test fitting his relays inside the power strip’s chassis, he wired up 5 of the 6 outlets through them to allow for switching via a microcontroller. He configured the 6th outlet to be live at all times, providing a power source for the control system he planned on using to switch the other receptacles.

[Teknynja] pulled the connector from an old PS/2 mouse for use as a control wire, connecting one wire to each of the relays. He says that the strip is working quite well, and after a few months of use it is holding up nicely.

Home automation without pulling wires

Here’s a bit of simple home automation using hacks with which we’re become pretty familiar. [Mrx23] combined OpenWRT, a microcontroller, and a set of RF controlled outlet switches to add automation to his plug-in devices. An RF remote that controls the switched outlets has been connected to an Arduino. The router communicates with the Arduino via a serial connection. And the router is controlled by a web interface which means you can use a smartphone or other web device to control the outlets.

The best thing about this system is the power that the router wields. Since it has an underlying Linux kernel you have the option of setting CRON jobs to turn lighting on and off, and group settings can be established to set up a room’s lighting level for watching movies, hosting guests, etc. Combine this with the fact that OpenWRT can use port forwarding for Internet control and the possibilities really start to open up.

[Thanks Arpad]