(SKU:RB-01C029)Relay Shield v2.0

From ALSRobot-Wki
Jump to: navigation, search



2014 the latest Relay Shield V2.0 is produced by Harbin Alseon Robotics Technology Co., Ltd. use high-quality Relay by NingBo HuiKe .It provides all input and output functions, Integrated dynamic indicator of the module .It can be controlled through Roboboard and controller, converting weak current controll into strong current control. The Relay Shield utilizes four high quality relays and provides NO/NC interfaces that control the load of high current. Which means it could be a nice solution for controlling devices that couldn’t be directly controlled by Arduino’s Digital I/Os. Standardized shield form factor enables smoothly connection with the Arduino. 4 relays are carried on this module, all of which are optoelectronic isolated. Onboard LEDs show the states of the relay. It can be adopted to control the solenoid valves, lamps, motors and other high current or high voltage devices.

Technical parameters and performance

  1. Arduino/Carduino compatible
  2. Relay:3A@250VAC/3A@30VDC
  3. Working Voltage:DC7.5V~12V
  4. Working Temperature: 10~30°c
  5. Size: 80mm *55mm * 25mm

using method

first the module is inserted to the Arduino controller (such as the XBee wireless communication module, please in conjunction with the plug properly), then to the relay expansion board connection 7.5V to 12V DC power supply (Note: without this power, the relay will not be attracted).

Application Routine

We use the Arduino controller to do a test, to use the hardware device is as follows:

  1. Arduino controller * 1
  2. Relay Shield * 1
  3. USB data communication line * 1
  4. 7.5V/800mA power adapter* 1
will shield relay relay expansion board connected to the Arduino controller, connected 7.5V to 12V power source to relay shield relay expansion board, finally through the USB cable connected ard uino controller and computer.

Download the routine code to download the Arduino.

Sample code

const int relay1Pin = 2;
const int relay2Pin = 3; 
const int relay3Pin = 4; 
const int relay4Pin = 5; 
void setup() {
pinMode(relay1Pin, OUTPUT); 
pinMode(relay2Pin, OUTPUT);
pinMode(relay3Pin, OUTPUT); 
pinMode(relay4Pin, OUTPUT); 
void loop() {
if (Serial.available() > 0) 
char bitToSet = Serial.read() - 48;

case 1: digitalWrite(relay1Pin, HIGH);break; 
case 2: digitalWrite(relay2Pin, HIGH);break; 
case 3: digitalWrite(relay3Pin, HIGH);break; 
case 4: digitalWrite(relay4Pin, HIGH);break; 
case 5: digitalWrite(relay1Pin, LOW);break; 
case 6: digitalWrite(relay2Pin, LOW);break;
case 7: digitalWrite(relay3Pin, LOW);break; 
case 8: digitalWrite(relay4Pin, LOW);break; 

Program effect

This code to achieve the opening and closing of the four relays control is achieved through the serial port terminal to send 1, 2, 3, 4, 5, 6, 7, 8 digital.
For example:
Send 1, 1 relay is attracted, as port COM1 is connected with the port of NO1, while COM1 and NC1 disconnect;
Send 5, then the relay 1 disconnect, the phenomenon of port COM1 and port NO1 disconnect, while COM1 and NC1 connection;
Control of other relay method is the same as above (Note: COM means for the public side, NC means for the relay normally closed, NO intended for relay Chang Kaiduan).

Product recommendation

Buy address:Relay Shield v2.0

Personal tools