Products for USB Sensing and Control
Products for USB Sensing and Control

#### sales inquiries

##### quotes, distributor information, purchase orders
sales@phidgets.com

#### technical inquiries

##### support, advice, warranty, returns, misshipment
support@phidgets.com

#### website inquiries

web@phidgets.com

##### Unit 1 - 6115 4 St SE Calgary AB  T2H 2H9 Canada
Projects Dealers Terms and Conditions Discontinued Products Phidget21 Documentation

## PhidgetInterfaceKit 0/0/4

ID: 1014_2

This board has 4 SPDT mechanical relays rated at 210W for DC or 1750VA for AC.

Replaced by 1014_2B

Replaced by the 1014_2B - PhidgetInterfaceKit 0/0/4. It is the exact same device, but you can now choose which length of usb cable (if any) you want to include in your order.

The PhidgetInterfaceKit 0/0/4 allows you to control high power devices such as incandescent light bulbs, fans, and pumps by electronically switching power on and off.

The 1014 contains 4 Relay Outputs for switching AC or DC power; the relays are Single Pole Double Throw (SPDT).

Note: This board is not suitable for switching signals. It takes at least 100mA of current to bridge the oxide layer that forms on the relay contacts, and most signals will not meet this requirement. If you need to switch signals, check out the 1017 - PhidgetInterfaceKit 0/0/8.

#### Product Specifications

Physical Properties
API Object Name InterfaceKit
Switch Type SPDT
Switching Speed Max 20 cpm
Recommended Wire Size 12 - 24 AWG
Operating Temperature Min 0 °C
Operating Temperature Max 70 °C
Board Properties
Controlled By USB
API Object Name DigitalOutput
Electrical Properties
Dielectric Strength 1.5 kV AC
Contact Resistance Max 120 mΩ
Load Voltage Max (DC) * 30 V DC
Load Voltage Max (AC) 277 V AC
Load Current Min 100 mA
Load Current Max (DC) 7 A
Load Current Max (AC) 12 A
Turn-on Time Max 10 ms
Turn-off Time Max 10 ms
Current Consumption Min 14 mA
Current Consumption Max 300 mA
USB Speed Low Speed
Customs Information
Canadian HS Export Code 8471.80.00
American HTS Import Code 8471.80.40.00
Country of Origin CN (China)

*Note: Switching this relay at voltages higher than 30V will result in a reduced product lifespan.

Please Note: This relay cannot be switched at its maximum AC voltage and current at the same time. Ensure that total power of the load does not exceed the switching power for the relay. For example, you can switch this relay at 277V AC and 6.3A (1750VA), or at 145V AC and 12A (1750VA), but not at 277V and 12A (3324VA).

#### Estimated Relay Lifespan

The lifespan of the relays on this Phidget vary depending on how much current you're switching and whether it's AC or DC. The following graph illustrates the relationship between load current and relay lifespan:

The vertical axis is the lifespan of the relay (number of actuations) and the horizontal axis is load current in amps. As you can see, increasing load current from 5A to 10A can reduce relay life by more than half.

#### Software Objects

Channel NameAPIChannel
Power Relay DigitalOutput 0 - 3

#### API

 Choose a Language C C# / VB.NET Java JavaScript Max/MSP Python Swift Phidget API Manager API Networking API NetworkConnection API USBConnection API Logging API Dictionary API

Back Forward
Print this API

#### Code Samples

Language:

APIDetailLanguageOS
DigitalOutput Visual Studio GUI C# Windows Download

#### Product History

Date Board Revision Device Version Comment
August 2002 0700Product Release
January 20040704Added State Echoing
January 20060705
July 2007 0706
May 2008 1707Terminal Blocks now accept 12-24 AWG wire, PCB increased to accommodate larger connectors.
March 2010 2707Switched to Mini-USB connector

## Getting Started

Welcome to the 1014 user guide! In order to get started, make sure you have the following hardware on hand:

• 1014 Phidget InterfaceKit 1014 Phidget InterfaceKit
• USB cable and computer
• something to use with the 1014 (e.g. power supply and load)

Next, you will need to connect the pieces:

1. Connect the load and power supply in series.
2. Connect one end to the 0C (Common) terminal, and the other to the NO (Normally open) terminal.
3. Connect the 1014 to your computer using the USB cable.

Now that you have everything together, let's start using the 1014!

## Using the 1014

### Phidget Control Panel

In order to demonstrate the functionality of the 1014, the Phidget Control Panel running on a Windows machine will be used.

The Phidget Control Panel is available for use on both macOS and Windows machines.

#### Windows

To open the Phidget Control Panel on Windows, find the icon in the taskbar. If it is not there, open up the start menu and search for Phidget Control Panel

#### macOS

To open the Phidget Control Panel on macOS, open Finder and navigate to the Phidget Control Panel in the Applications list. Double click on the icon to bring up the Phidget Control Panel.

For more information, take a look at the getting started guide for your operating system:

Linux users can follow the getting started with Linux guide and continue reading here for more information about the 1014.

### First Look

After plugging the 1014 into your computer and opening the Phidget Control Panel, you will see something like this:

The Phidget Control Panel will list all connected Phidgets and associated objects, as well as the following information:

• Serial number: allows you to differentiate between similar Phidgets.
• Channel: allows you to differentiate between similar objects on a Phidget.
• Version number: corresponds to the firmware version your Phidget is running. If your Phidget is listed in red, your firmware is out of date. Update the firmware by double-clicking the entry.

The Phidget Control Panel can also be used to test your device. Double-clicking on an object will open an example.

### Relay Output

Double-click on a Digital Output object labelled Power Relay in order to run the example:

General information about the selected object will be displayed at the top of the window. You can also experiment with the following functionality:

• Toggle the state of the relay by pressing the button.

### Finding The Addressing Information

Before you can access the device in your own code, and from our examples, you'll need to take note of the addressing parameters for your Phidget. These will indicate how the Phidget is physically connected to your application. For simplicity, these parameters can be found by clicking the button at the top of the Control Panel example for that Phidget.

In the Addressing Information window, the section above the line displays information you will need to connect to your Phidget from any application. In particular, note the Channel Class field as this will be the API you will need to use with your Phidget, and the type of example you should use to get started with it. The section below the line provides information about the network the Phidget is connected on if it is attached remotely. Keep track of these parameters moving forward, as you will need them once you start running our examples or your own code.

### Using Your Own Program

You are now ready to start writing your own code for the device. The best way to do that is to start from our Code Samples.

Select your programming language of choice from the drop-down list to get an example for your device. You can use the options provided to further customize the example to best suit your needs.

Once you have your example, you will need to follow the instructions on the page for your programming language to get it running. To find these instructions, select your programming language from the Programming Languages page.

## Technical Details

### Relays

A relay is an electrically-controlled switch. Although many types of electrical switches exist, a relay’s mechanical nature gives it the advantage of reliability and current-switching capacity. The main disadvantage to using mechanical relays is their limited life-span, as opposed to solid state relays who do not suffer from this drawback. For more information, check the Mechanical Relay Primer and the Solid State Relay Primer.

### Using a Digital Output Relay

Relays have a connection scheme determined by the arrangement of contacts within the relay. Because relays are a type of switch, they are defined in the same way other electromechanical switches are defined.

In switch schemes, the number of poles represents the number of common terminals a switch has, and the number of throws represents the number of switchable terminals that exist for each pole. The relays used in the InterfaceKit 0/0/4 are SPDT relays: single pole, double throw. The internal construction of this type of relay is depicted in the diagram above. Many other types of relays exist: SPST, DPDT, and DPST, to name a few.

In an SPDT relay, one of the throw terminals is labelled normally closed (NC), and the other is labelled normally open (NO). As the name indicates, the normally closed terminal is the terminal connected to common when the relay coil is not powered. When the relay coil is energized by the relay control circuit, the electromagnetic field of the coil forces the switch element inside the relay to break its contact with the normally closed terminal and make contact with the normally open terminal. The switch element would then connect the normally open terminal and the common terminal.

### Using Relays as an H-Bridge for Motor Forward/Reverse

Connect the load (typically a DC Motor) to the COM terminals of the relay. The normally open (NO) terminals are connected to the power supply (VCC), and the normally closed (NC) terminals are connected to the ground (GND) of the power supply. You can toggle the corresponding output to switch the relays.

Looking at the diagram, when LeftCtrl is enabled and RightCtrl is disabled, the current will flow from the NO terminal of relay K1 through the motor and into the NC terminal of relay K2. This will cause the motor to rotate in one direction.

Similarily, if LeftCtrl is disabled and RightCtrl is enabled, the current will flow from the NO terminal of relay K2 through the motor and into the NC terminal of relay K1. This will cause the motor to rotate in the opposite direction.

When both LeftCtrl and RightCtrl are disabled, both ends of the motor will be shorted to ground and no current will flow. When both leftCtrl and RightCtrl are enabled, both ends of the motor will be shorted to VCC and again, no current will flow.

### Wetting Current

When a relay is in one switch position for a period of time, oxidation of the open contact(s) can occur. Depending upon the internal coating material of the contacts, oxide films of varying density will be displaced upon the surface of open contacts; this film acts as an insulator to current flow. When the relay is switched, a certain amount of current flowing through the contacts, known as the wetting current, is required to remove the film of oxides and ensure proper conduction. Because of this requirement, these relays are not reliable for signal switching. Check the specification table for your relay board to find out the Minimum Load Current or Wetting Current.

If highly inductive loads are used with the InterfaceKit, it is recommended that a noise limiting component be used to prevent damage to the device. An MOV, TVS diode, or kickback diode (for DC applications) shunted across the load will assist in dissipating voltage transients.

## What to do Next

• Programming Languages - Find your preferred programming language here and learn how to write your own code with Phidgets!
• Phidget Programming Basics - Once you have set up Phidgets to work with your programming environment, we recommend you read our page on to learn the fundamentals of programming with Phidgets.

#### Enclosures

You can protect your board from dust and debris by purchasing an enclosure. An enclosure will also prevent unintentional shorts caused by objects touching the pins on the bottom of the board or any terminal screws.

Product Physical Properties
Image Part Number Price Material
3802_2 $8.50 Clear Acrylic #### USB Cables Use a USB cable to connect this Phidget to your computer. We have a number of different lengths available, although the maximum length of a USB cable is 5 meters due to limitations in the timing protocol. For longer distances, we recommend that you use a Single Board Computer to control the Phidget remotely. Product Physical Properties Image Part Number Price Connector A Connector B Cable Length 3017_1$3.00 USB Type A USB Mini-B 280 mm
3018_0 $4.00 USB Type A USB Mini-B 1.8 m 3020_0$12.00 USB Type A USB Mini-B 4.5 m
3036_0 $3.50 USB Type A USB Mini-B 600 mm 3037_0$4.00 USB Type A USB Mini-B 1.2 m

#### Have a look at our relay boards:

Product Electrical Properties
Image Part Number Price Load Current Max (AC) Load Voltage Max (AC) Load Current Max (DC) Load Voltage Max (DC)
1012_3 $95.00 1014_2B$55.00 12 A 277 V AC 7 A * 30 V DC
1017_1B $85.00 2 A 250 V AC 2 A * 120 V DC 3051_1B$17.00 12 A 277 V AC 7 A * 30 V DC
3052_1 $15.00 2.5 A 28 V AC 2.5 A 40 V DC 3053_0$30.00 (per channel) 9 A 28 V AC (per channel) 9 A 40 V DC
3054_0 $10.00 500 mA 28 V AC 500 mA 40 V DC PSU1000_0$15.00 15 A 125 V AC
REL1000_0 $30.00 12 A 277 V AC 7 A * 30 V DC REL1100_0$25.00 8 A 30 V DC
REL1101_1 $50.00 8 A 30 V DC REL2001_0$10.00 12 A 277 V AC 7 A * 30 V DC
REL2002_0 $12.00 2 A 240 V AC 2 A 120 V DC REL2103_0$15.00 10 A 30 V AC * 10 A 30 V DC