Difference between revisions of "2-Channel Relay module"
From Geeetech Wiki
(Created page with "==Introduction== File:Relay 2.jpg The Arduino Relay module allows a wide range of microcontroller such as Arduino, AVR ,PIC, ARM with digital outputs to control larger lo...") |
(→Usage) |
||
Line 23: | Line 23: | ||
==Usage== | ==Usage== | ||
− | [[File:Relaywring.jpg]] | + | [[File:Relaywring.jpg|500]] |
==Example code== | ==Example code== |
Revision as of 02:51, 17 May 2012
Introduction
The Arduino Relay module allows a wide range of microcontroller such as Arduino, AVR ,PIC, ARM with digital outputs to control larger loads and devices like AC or DC Motors, electromagnets, solenoids, and incandescent light bulbs. This module is designed to be integrated with 2 relays that it is capable of control 2 relays.The relay shield use one QIANJI JQC-3F high-quality relay with rated load 7A/240VAC,10A/125VAC,10A/28VDC.The relay output state is individually indicated by a light-emitting diode.
Features
- Number of Relays: 2
- Control signal: TTL level
- Rated load: 7A/240VAC 10A/125VAC 10A/28VDC
- Contact action time: 10ms/5ms
Pin definition
- COM- Common pin
- NC- Normally Closed, in which case NC is connected with COM when INT1 is set low and disconnected when INT1 is high;
- NO- Normally Open, in which case NO is disconnected with COM1 when INT1 is set low and connected when INT1 is high.
Terminal 2 is similar to terminal 1,except that the control port is INT2
- INT 1- Relay 1 control port
- INT 2- Relay 2 control port
Usage
Example code
int Relay = 12; void setup() { pinMode(Relay, OUTPUT); //Set Pin12 as output } void loop() { digitalWrite(Relay, HIGH); //Turn off relay delay(2000); digitalWrite(Relay, LOW); //Turn on relay delay(2000); }
How to buy
Click here to buy [2-Channel Relay module]