4 Channel Relay Shield (HCARDU0102)

Post Reply
admin
Site Admin
Posts: 880
Joined: Sun Aug 05, 2012 4:02 pm

4 Channel Relay Shield (HCARDU0102)

Post by admin » Thu Jan 14, 2016 3:32 pm

Image


Image

A 4 channel relay shield (HCARDU0102) which conveniently and safely allows an Arduino to interface to the outside world via a set of relays. The shield will plug into an Arduino with standard headers and screw terminals for the relay contact means that no soldering is required. The relays can be individually controlled via 4 digital pins on your Arduino. An on board 5V regulator means that the relays can be powered from a power supply with a wide 7 - 12V voltage range (9V ideal). Screw terminals or a standard DC connector allow for easy connection of the power supply.

Although this board is designed as an Arduino shield it can also be used stand alone. With the addition of our PT2262/PT2272 wireless modules the relays on this board can be controlled wirelessly without the need for a microcontroller. See items HCMODU0048 & HCMODU0049.

Please note: There is an screen print error on this shield, D0 = D7, D1 = D6, D2 = D5, D3 = D4.

Order Yours Here.

Image

Item Code: HCARDU0102
Power apply: 7V-12V(>200mA)
Relay Max Switching Voltage : 240VAC/60VDC
Relay Max switching current : 3A
Contact load capacity: 1A 250VAC, 3A 120VA/24VDC
Wireless interface: xbee/ Bluetooth Bee/ PT2262/72
Size: 8 x 5.5x 2.8cm



Image



Schematic:
4_Channel_Relay_Shield_HCARDU0102_Schematic.png

Image

Code: Select all

/* FILE:    4_Channel_Relay_Example.cpp
   DATE:    14/01/16
   VERSION: 0.1
   AUTHOR:  Andrew Davies

14/01/16 version 0.1: Original version  

THis is a very basc sketch which will pulse each of the four relays on the
HCARDU0105 4 channel relay shield in turn.

You may copy, alter and reuse this code in any way you like, but please leave
reference to HobbyComponents.com in your comments if you redistribute this code.
This software may not be used directly for the purpose of selling products that
directly compete with Hobby Components Ltd's own range of products.

THIS SOFTWARE IS PROVIDED "AS IS". HOBBY COMPONENTS MAKES NO WARRANTIES, WHETHER
EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ACCURACY OR LACK OF NEGLIGENCE.
HOBBY COMPONENTS SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR ANY DAMAGES,
INCLUDING, BUT NOT LIMITED TO, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY
REASON WHATSOEVER.
*/


/* Define the digital pins that control the relays */
#define RELAY1  7
#define RELAY2  6
#define RELAY3  5
#define RELAY4  4

void setup() 
{
  /* Set the pins to outputs */
  pinMode(RELAY1, OUTPUT);
  pinMode(RELAY2, OUTPUT);
  pinMode(RELAY3, OUTPUT);
  pinMode(RELAY4, OUTPUT);
}

void loop() 
{
  /* Switch relay 1 on then OFF */
  digitalWrite(RELAY1, HIGH);
  delay(1000);
  digitalWrite(RELAY1, LOW);
  delay(1000);

  /* Switch relay 2 on then OFF */
  digitalWrite(RELAY2, HIGH);
  delay(1000);
  digitalWrite(RELAY2, LOW);
  delay(1000);

  /* Switch relay 3 on then OFF */
  digitalWrite(RELAY3, HIGH);
  delay(1000);
  digitalWrite(RELAY3, LOW);
  delay(1000);

  /* Switch relay 4 on then OFF */
  digitalWrite(RELAY4, HIGH);
  delay(1000);
  digitalWrite(RELAY4, LOW);
  delay(1000);
}
You do not have the required permissions to view the files attached to this post.

aaa56
Posts: 2
Joined: Mon Feb 09, 2015 5:33 pm

Re: 4 Channel Relay Shield (HCARDU0102)

Post by aaa56 » Thu May 12, 2016 4:24 pm

Hi,
have you the schematic please?
Thanks,
Arturo

andrew
Site Admin
Posts: 1427
Joined: Sun Aug 05, 2012 4:15 pm

Re: 4 Channel Relay Shield (HCARDU0102)

Post by andrew » Fri May 13, 2016 9:21 am

A schematic has now been added to the first post.
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.

Post Reply

Return to “Arduino Shields”