TS0010D 2-Channel Relay

The TS0010D is a 2-channel relay that allows you to independently control two separate circuits using a low-current control signal. It is equipped with two high-current relays that can handle up to 250VAC @ 10A (30VDC @ 10A). The TS0010D is a SPDT (Single Pull Double Throw) relay that can be used to control various equipment or devices that carry high current.

 

 

Input (Control signals)

The input side is where the control signals connect to the relay. This will have two pins for each control signal, and 2 other pins for VCC and GND. The relay can be powered by supplying a 5V signal to the VCC input pin. Each channel requires a driver current of 15-20mA. The GND connection is where the ground of your power supply can be connected. Each relay channel will have an input pin, labeled IN1 and IN2, that will control the activation of the relay. Each relay channel controls a separate output circuit which allows you to control two different circuits with one relay module. The JD-VCC pin is an additional power supply pin that allows an external power supply to be power the relay. Connecting the JD-VCC and VCC with a jumper cap indicates the relay is powered by the VCC pin.

Wiring

  • VCC – This can be connected to the 5v output of a microcontroller.
  • GND – This should be connected the GND connection of a microcontroller.
  • IN1 – Controls the first relay channel, typically connected to a digital pin of a microcontroller
  • IN2 – Controls the second relay channel, also connected to a digital pin of a microcontroller.

 
 
Output (Terminals)

The output side of the relay is where you connect the external devices or circuits you want to control. The key terminals here are COM (Common), NO (Normally Open), and NC (Normally Closed). With this 2-channel relay, each channel provides its own set of these terminals, allowing you to control two independent circuits.

The COM is where the load power source is connected. The NO contact in this configuration is off when the relay is not activated. When the relay activates, the COM is connected to NO, closing the circuit and allowing current to flow. The NC contact is on when the relay is not activated. When the relay activates, the COM is disconnected from the NC, which opens the circuit and stops current flow.

Wiring

  • COM – These are the common terminals for each relay. This is where you would connect your load. They connect to NO or NC depending on the relay state.
  • NO – These are normally open terminals for the relay. When the relay is not active, these terminals are disconnected from the COM terminals.
  • NC – These are normally closed terminals for the relay. When the relay is not active, these terminals are connected to the COM terminals.

 
 

How To Use Relay With Arduino

 

image

 

Step 1.

Copy and paste the following sample code into the Arduino IDE:

const int relayPins = {9, 8};// Define the pins where the relay modules are connected
const int numRelays = sizeof(relayPins) / sizeof(relayPins[0]); // Calculate the number of relays

void setup() {

for (int i = 0; i < numRelays; i++) {
pinMode(relayPins[i], OUTPUT); // Initialize each relay pin as an output
digitalWrite(relayPins[i], HIGH); // Initially, all relays are turned off (HIGHforlow-level trigger)
}
}

void loop() {

for (int i = 0; i < numRelays; i++) {
digitalWrite(relayPins[i], LOW); // Activate current relay (LOWfor low-level trigger)

delay(1000); // Delay for 1 second
digitalWrite(relayPins[i], HIGH); // Deactivate current relay
delay(4000); // Short delay before activating the next relay

}
}

Step 2.
Connect D8 to IN1 and D9 to IN2

Step 3.
Ensure you have the correct board and port under “tools” in the Arduino IDE

Step 4.
Upload and Run the code. Each relay channel should alternate as they open and close. The relay stays “ON” for 4 seconds then turns off, delays for 1 second, and the other relay turns on. You can hear the clicking sound when the relay activates but there is also a signal indicator LED that also lights up.

 

How To Use Relay With Raspberry Pi

 

image

 

To use the TS0010D with a Rasbperry Pi and the sample code provided, connect the IN1 to pin 27 of the Raspberry Pi and IN2 to pin 17. VCC is connected to 5V and GND is connected to GND.
 

Step 1.
Click HERE to download the code for Raspberry Pi.
Step 2.
Unzip The file - unzip 2_channel_relay_low_rpi.zip
Step 3.
Run the Code - sudo python3 2_channel_relay_low_rpi.py
Step 4.
Each relay channel should alternate as they open and close. The relay stays “ON” for 4 seconds then turns off, delays for 1 second, and the other relay turns on. You can hear the clicking sound when the relay activates but there is also a signal indicator LED that also lights up.

 

 

Conslusion

The TS0010D 2-channel relay is a versatile and reliable module that makes it easy to control high-current devices with low-current control signals from a microcontroller. Its ability to handle up to 250VAC @ 10A or 30VDC @ 10A makes it suitable for a wide range of applications, from home automation to industrial control systems. By understanding the pinout and wiring configuration, you can effectively integrate the TS0010D into your projects, allowing for precise and independent control of two separate circuits. Whether you’re switching lights, motors, or other equipment, this relay module provides a simple yet powerful solution to manage your electrical loads safely and efficiently.