Project/RelayMatrix

From initLab
Jump to navigation Jump to search

Introduction

In professional test systems, there is often the need for switching. Power supplies, loads, and various measurement devices need to switch on or off, or be able to be chosen across multiple inputs or outputs on a test system. This is done by relays in most cases. Relays are fairly reliable, oppose little influence on the test system and have good conductivity in the "on" position, and also good isolation in the "off" position. As the complexity increases, the number of relays can also become very large. Purpose-built switching systems are efficient, but also less flexible. If you want maximum freedom, you will look for a system that can connect any input to any output. These kinds of systems have relays in a matrix configuration. For small signal types such as voltage measurements, a reed type relay is very compact, and a high density can be packed in a minimum of space. For switching larger currents, a more conventional type power relay is needed.

Matrix principle.jpg

All of these relays must be switched at the right moment. Usually, there will be some sort of automated sequence system, controlling the progress of the task being performed. Scripting systems such as National Intrument's LabView or Keysight's VEE programs offer easy to understand graphical representation of a test sequence, with great flexibility. The test script systems communicates with equipment with a number of interfaces, varying from the ancient but still widely used IEEE488 parallel bus, to RS232, PCI variants, USB and Firewire buses and Ethernet connections. The common communication standard across all these interfaces is usually SCPI, the Standard Commands for Programmable Instruments. This is an human readable ASCII based set of commands, which is extensible and adaptable to a large number of instruments. Power supplies, vector analysers, multimeters and a host of other measuring and driving equipment can have SCPI support.

Matrix1.jpg Matrix2.jpg

A relay matrix system is often an expensive piece of equipment, bound to a single vendor, and limited to a certain voltage or current. To find a suitable system, it can become neccesary to mix different types of relay matrix configurations. Because there of often the need for a compact system, small relays are used, which can be costly. Many thousands of dollars/euro's can be spent on a matrix system. But what if you could make a system yourself? Choose a cheap relay, buy them in bulk, and make your own system? This project proposes an open source, fairly cheap, modular matrix system with easy to obtain relays, and USB and/or Ethernet configuration ports. On top of this, and not offered very often, an integrated diagnosis system is offered, to keep track of the health of over a thousand relays. See statistics like activated time, number of activations, but also vital figures like contact resistance, can give insight on the condition of a relay. Welcome to project IO Dyne!

Everything you never wanted to know about relays

A relay is just like a regular switch. The difference between the two is where a switch is operated by a mechanical force (like a person), a relay can be operated by an electrical signal. A current is run through an electromagnet inside the relay, and this magnetism is used to operate the switch. There are a large number of switch configurations possible. A normally open (NO) contact can be closed by operating the relay, a normally closed (NC) contact can be opened. Also a combination of these two is possible with a dual throw (DT) or change over (CO) operation. All of these types of switches can be inside a relay 1 time (single pole or SP), or multiple times. If there are two switches inside, it is called a dual pole (DP), but more is certainly possible. The switch configuration is usually mentioned with a combination of these acronyms, like SPDT for a single change over configuration, or a 3PNO for a combination of 3 normally open switches.

Apart from the switch configuration, the coil to make the magnetic field can also vary a lot. DC as well as AC voltage operated coils are possible, and the coil voltage can be very small, like 3 volts, or very large, to over 380 volts. For DC coils, a built-in freewheel diode is possible. If this is the case, polarity must be observed when connecting the coil. Operation of the coil can also be latching. This means that, to switch over, a short period of energising the coil is only needed. This is also called a bistable relay. It can be done with one coil, which can be operated in opposite polarity, but also dual coil latching relays are possible, with each coil responsible for either making or breaking contacts. Non-latching or monostable relays typically have only one coil. As long as the coil is energized, the switch is activated, and without voltage on the coil, the relay is in its default state. Other properties can be a reed-type relay with a reed switch typically suited for small signals, safety relays, coaxial relays, or contact material designed for a specific type of signal.

Relay operation.gif

A coil inside a relay is just like any other coil in terms of behavior. Coils usually conduct DC currents very well, and isolate fast changing AC currents. The coils resists changed by converting the electrical energy into magnetic energy. Of you keep running the DC current, the coil can no longer transfer energy, and the magnetic field stabilizes. It is this magnetic field that is used inside the relay to operate the switch contacts. But, if you no longer run current through the coil, it wants to resist this as well. It converts all magnetic energy back to electrical energy. The voltage generated by the relay coil can be very high and was often the cause of malfunction of the electronic component operating the coil. A diode opposite to the normal current flow is used to short-circuit this coil-generated voltage in order to keep semiconductors alive.