This module contians two relays that are electrically isolated from the controlling input. The relays can be used to switch higher voltage and current loads than a microcontroller can traditionally accomplish.

/education/images/2chrelay.png

 

Features

  • Powered from 5V
  • 2 channels
  • Can be used as Normally Open (NO) or Normally Closed (NC)
  • Optically isolated inputs

Documentation

Quick Start Guide

WARNING: HIGH VOLTAGE IS DANGEROUS. If you are using this module to control high voltages like something connected to a wall socket, please exercise caution.

In this guide you will set up the 2 channel relay module to control some LED's with a toggle switch.

    

You will need:

  • 2 or more LED's
  • 2 220 ohm resistors or a similar value
  • 1 2 channel 5V relay module
  • 1 toggle switch or button
  • A 5V power source
  • Prototyping wires


    Instructions:

The relay has two outputs-normally open and normally closed (NO and NC). When the IN1 or IN2 pin is connected to ground, NO will be open and NC will be closed, and when IN1 or IN2 is not connected to ground the opposite occurs. Connecting a circuit or device between one of these two pins, the common pin on the relay output, and a power source will allow you to toggle power to a circuit or device.

  1. Connect an LED and 220 ohm resistor in series between the NO pin (the right pin) on the terminal block on one of the relays and ground, then connect a 5V power source to the common pin (the left pin) on one of the relays. Nothing will happen (yet).
  2. Next connect a toggle switch or button between ground and one of the middle two pins on the header strip on the relay module. The middle-left one corresponds to the left relay, and the middle-right one corresponds to the right relay. Connect the rightmost pin to 5V and the leftmost pin to ground.
  3. When the switch is flipped or the button is pressed, either IN1 or IN2 will become connected to ground. The relay should make a loud click and the LED should turn on. A microcontroller can also be used to control IN1 and/or IN2 and cause the relay to trip.