Project showcase
Nano Relay Module

Nano Relay Module © GPL3+

2 wire 8 channel Relay Module || Reduce your CPU workload by interface 74LS164N.

  • 12,117 views
  • 0 comments
  • 14 respects

Components and supplies

Apps and online services

About this project

This project consists of an Arduino Nano, 74LS164N shift register, ULN2803A relay driver and SPDT relays. The aim of this is to reduce the number of wires connected with Arduino.

We took only two wires from the Nano to serial to parallel shift register. One for data and another for clock pulse. From the SR, we took 8 wires to the relay module which is already interfaced with the ULN2803A relay driver.

Shift register output pins are act as solo 8-bit port.

Code

Code for Nano Relay ModuleC/C++
const int data_pin = 2;
const int clk_pulse_pin = 3;
byte zero  = 0xff;
int time_interval = 1500;
void setup()
{
  pinMode(clk_pulse_pin, OUTPUT);
  pinMode(data_pin , OUTPUT);
}
void loop()
{
  for (int Bz = 0x00; Bz < 0xff; Bz++)
  {
    shiftOut(data_pin, clk_pulse_pin, MSBFIRST, Bz);
    delay(time_interval);
  }
}

Schematics

Wiring
This circuit is drawn by Proteus ISIS. Pin 1 and 14 is connected with +5Volt. Pin 7 is connected with Ground.

Pin 2 is connected with Nano's digital pin 2

Pin 8 is connected with Nano's digital pin 3
2%20wire%208%20channel%20relay%20module

Comments

Similar projects you might like

Nano IR Remote for DC Motors

Project showcase by Boaz Lawnce

  • 4,230 views
  • 2 comments
  • 7 respects

How to Make Smart Home Using Arduino Control Relay Module

Project tutorial by Subhajit Das

  • 9,442 views
  • 2 comments
  • 11 respects

Arduino Nano and Visuino: Infrared Remote Controlled Relay

Project tutorial by Boian Mitov

  • 5,708 views
  • 0 comments
  • 17 respects

Spot Welder Controlled with an Arduino Nano

Project tutorial by Michael Marinis and PCBWay

  • 14,878 views
  • 13 comments
  • 29 respects

PIR Motion Controlled Relay Using Arduino Nano!

Project tutorial by HeathenHacks

  • 11,934 views
  • 0 comments
  • 17 respects

Simple Movement Detector

Project showcase by Sriram MN

  • 5,431 views
  • 8 comments
  • 16 respects
Add projectSign up / Login