Tutorial__DFR0017_V2_Relay-DFRobot

Introduction: DFR0017 V2 Relay

In this tutorial we will show you how to use the DFR0017 V2 Relay. The diagrams below should help you understand the layout of the relay board.

The relay in use is: JQC-3FF

Data Sheet

Relay board layout

There are a total of 7 pins on the relay board. On the Arduino side there is:

  1. Signal
  2. Vcc
  3. Ground

On the appliance side there is:

  1. In: input positive wire from appliance
  2. NC: not connected
  3. Out2: Normally closed, which means that when the relay is off (a digital low "0" is received from Arduino) the device is ON
  4. Out1: Normally open, which means that when the relay is on (a digital high "1" is received from Arduino) the device is ON.

So, using Out1 a "1" will turn on the device and a "0" will turn off the device.

Figure 1: Relay diagram

WARNING: Please be vary carful not to play with live circuits! 120V or 220V should not be taken lightly. Make sure the appliance to be tinckered with is unplugged from mains. (DO NOT CONNECT IT TO THE WALL WHILE MESSING WITH THE CABLE!)

Plugging in an appliance

We will use "out1" for our example, using "out2" will simply reverse the logic, as explained above.

We recommend using a swappable cable to do this with, as using a relay requires you to perform some minor surgery on the appliance's cable.

To plug in an appliance such as a lamp:

Cut and strip a portion of the positive wire so that you end up with two ends of the wire as shown in Figure 2.

The relay should have the positive wire of the device being used connected to "IN" and to "Out 1" as shown in figure 2, and any digital signal pin on the arduino end (For example pin 13).

Sending a digital high or a "1" will trigger the relay. Sending a digital low or "0" will disable the relay.

Figure 2: Lamp Demo