Project showcase
Nano Relay Module

Nano Relay Module © GPL3+

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

  • 7,534 views
  • 0 comments
  • 9 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

  • 1,522 views
  • 2 comments
  • 4 respects

Arduino Nano and Visuino: Infrared Remote Controlled Relay

Project tutorial by Boian Mitov

  • 3,376 views
  • 0 comments
  • 15 respects

LCD with DS3231 Real Time Clock Module

Project showcase by Tan See Youu

  • 39,445 views
  • 0 comments
  • 30 respects

VU Meter on Steroids: Arduino Nano and NeoPixel WS2812B

Project in progress by Team WannaDuino

  • 21,818 views
  • 81 comments
  • 80 respects

Control Arduino Uno Using ESP8266 WiFi Module and Blynk App

Project tutorial by Adithya TG

  • 5,298 views
  • 10 comments
  • 18 respects

Driving A Relay With An Arduino

by Tarantula3

  • 1,903 views
  • 0 comments
  • 13 respects
Add projectSign up / Login