from elecrow relay shield contents - openhacks · if using arduino via its usb connection for...

4
18/2/2015 Relay Shield Elecrow http://www.elecrow.com/wiki/index.php?title=Relay_Shield 1/4 Relay Shield From Elecrow Contents 1 Introduction 2 Features 3 Specification 4 Cautions 5 Interface Function 6 Usage 7 Support 8 How to buy 9 Resources Introduction The Relay Shield is an Arduino compatible smart module with 4 mechanical relays providing an easy way to control high voltage. The max switching power is 35VDC 70W for each channel. It can be directly controlled by Arduino/Crowduino through digital IOs with an external 6.5~12V DC supply. With the onboard 4 control keys,you can also control the high voltage without programming. Note: Take care the pins on the Shield should not touched the USB connector of Arduino UNO when they connected . Features Arduino,CrowduinoSeeeduino,Arduino Mega compatible Automatic control and manual control 4 mechanical relays with photocoupled circuit Equipped with screw holes for easy installation Light weight Small form factor Native Arduino/Seeeduino compatibility Extendible

Upload: others

Post on 07-May-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: From Elecrow Relay Shield Contents - OpenHacks · If using Arduino via its USB connection for power, you must also provide 9v DC power to the Relay Shield or the relays won't switch

18/2/2015 Relay Shield ­ Elecrow

http://www.elecrow.com/wiki/index.php?title=Relay_Shield 1/4

Relay ShieldFrom Elecrow

Contents

1 Introduction2 Features3 Specification4 Cautions5 Interface Function6 Usage7 Support8 How to buy9 Resources

Introduction

The Relay Shield is an Arduino compatible smart module with 4 mechanical relays providing an easy way to control highvoltage. The max switching power is 35VDC 70W for each channel. It can be directly controlled by Arduino/Crowduinothrough digital IOs with an external 6.5~12V DC supply. With the onboard 4 control keys,you can also control the highvoltage without programming.

Note: Take care the pins on the Shield should not touched the USB connector of Arduino UNO when they connected .

Features

Arduino,Crowduino,Seeeduino,Arduino Mega compatibleAutomatic control and manual control4 mechanical relays with photo­coupled circuitEquipped with screw holes for easy installationLight weightSmall form factorNative Arduino/Seeeduino compatibilityExtendible

Page 2: From Elecrow Relay Shield Contents - OpenHacks · If using Arduino via its USB connection for power, you must also provide 9v DC power to the Relay Shield or the relays won't switch

18/2/2015 Relay Shield ­ Elecrow

http://www.elecrow.com/wiki/index.php?title=Relay_Shield 2/4

Specification

Item Min Typical Max UnitVoltage 7 9 12 VDCCurrent 8 / 250 mA

Switching Voltage / / 35 VDCSwitching Current / / 2 AFrequency Response ­1 / 1 dBSwitching Power / / 70 W

Relay Life 100,000 / / CycleESD contact discharge ±4 KVESD air discharge ±8 /

Dimension mmNet Weight g

Cautions

Place 2 layers of electrical tape on the top of the Arduino's usb connector. This will prevent the relay shieldfrom making contact.Do not operate voltage more than 35V DC.Please be cautious while operating high voltage circuits! You may get hurt or hurt your appliances if usedimproperly.

Interface Function

Page 3: From Elecrow Relay Shield Contents - OpenHacks · If using Arduino via its USB connection for power, you must also provide 9v DC power to the Relay Shield or the relays won't switch

18/2/2015 Relay Shield ­ Elecrow

http://www.elecrow.com/wiki/index.php?title=Relay_Shield 3/4

4 groups of channels for High voltage connectionTerminal 1:COM1­ Common pinNC1­ Normally Closed, in which case NC1 is connected with COM1 when D0 is set low and disconnected when D0 is high;NO1­ Normally Open, in which case NO1 is disconnected with COM1 when D0 is set low and connected when D0 is high.Terminal 2­4 are similar to terminal 1, except that the control ports are D1­D3.

9V DC power supply connectionThe function of the Terminal and the Jack is the same since they are internally connected, and you can choose either of themin needs.

IO controlling 4 on­board relaysC0­C3 4pins could be connected directly with Arduino pin number of 7­4, so that four relays could be easily controlled bythe Arduino.K1­K4 4keys could control the four relays without programming.

Usage

With Arduino/CrowduinoRelay Shield could be directly controlled by Arduino or Crowduino (http://www.elecrow.com/micro­controllers­c­109/arduino­compatiable­c­109_117/crowduino­with­atmega­328­p­338.html) .

Step1. Plug Relay Shield onto Arduino Duemilanove (or compatible) board;Step2. Supply 9v DC power to Arduino;Step3. Download the example code (http://www.elecrow.com/wiki/images/9/92/Relay_control_code.zip) and run in ArduinoIDE (http://arduino.cc/en/Main/Software) .If using Arduino via its USB connection for power, you must also provide 9v DC power to the Relay Shield or the relayswon't switch.Relays 1­4 can be activated by setting Arduino ports 4­7 to output, and doing a digitalWrite(portNumber,HIGH).

Page 4: From Elecrow Relay Shield Contents - OpenHacks · If using Arduino via its USB connection for power, you must also provide 9v DC power to the Relay Shield or the relays won't switch

18/2/2015 Relay Shield ­ Elecrow

http://www.elecrow.com/wiki/index.php?title=Relay_Shield 4/4

Use COMx and either NCx (normally closed) or NOx (normally opened) connections to switch power through to thecontrolled device. example code

void setup()pinMode(4,OUTPUT);pinMode(5,OUTPUT);pinMode(6,OUTPUT);pinMode(7,OUTPUT);void loop()digitalWrite(4,HIGH);digitalWrite(5,HIGH);digitalWrite(6,HIGH);digitalWrite(7,HIGH);delay(1500);digitalWrite(4,LOW);digitalWrite(5,LOW);digitalWrite(6,LOW);digitalWrite(7,LOW);delay(1500);

After downloanding the above code to your Arduino, the relays, with the relative LED on relay shield ,will be switch on andoff with a period of 3 seconds. you will hear some noice "bang …bang..” when the relay works.

You can also control the relays with the on­board keys, just have a try...

Resources

Relay Shield v1.0 Schematic (http://www.elecrow.com/wiki/images/e/ee/Relay_shield_v1.01.pdf)Relay Shield demo code for Arduino (http://www.elecrow.com/wiki/index.php?title=File:Relay_control_code.zip)

Retrieved from "http://www.elecrow.com/wiki/index.php?title=Relay_Shield&oldid=10315"

This page was last modified on 8 October 2013, at 00:06.This page has been accessed 1,547 times.