Demo Code Relay Module For Arduino , 5v / 12v 4-Channel Relay Module
Quick details:
1. the module uses genuine quality relay
2. stable performance
3.the module can be high or low by a jumper setting trigger
4.all interfaces are available
Description:
1. the module uses genuine quality relay, normally open interfaces Maximum load: AC 250V/10A, DC 30V/10A;
2. using SMD optocoupler isolation, driving ability, stable performance; trigger current 5mA;
3. the module Operating voltage 12V;
4. the module can be high or low by a jumper setting trigger;
5. fault-tolerant design, even if the control line is broken, the relay will not operate;
6. the power indicator (green), the relay status indicator (red)
7. the interface design of human nature, all interfaces are available through a direct connection terminal leads, very convenient
8. module size: 73mm*50mm*17mm (L*W*H)
Specification:
Datasheets | Pls contact us for Datasheet |
Product Photos | As show on title or request for more |
Description: | ic |
Standard Package | 2500 |
Category | Integrated Circuits (ICs) |
Family | Drive Ics |
Type | ICs |
Voltage - Supply | 0 V ~ 48 V |
Operating Temperature | -40°C ~ 150°C |
Mounting Type | Surface Mount |
Package / Case | As descriped on description |
Supplier Device Package | As descriped on description |
Packaging | Tape & Reel |
test code:
int BASE = 2; / / first a relay connected to I / O pins
int NUM = 4; / / the total number of relay
void setup ()
{
for (int i = BASE; i <BASE + NUM; i + +)
{
pinMode (i, OUTPUT); / / set the digital I / O pin as an output
}
}
void loop ()
{
for (int i = BASE; i <BASE + NUM; i + +)
{
digitalWrite (i, LOW); / / set the digital I / O pin output is "low", that is gradually closed relay
delay (200); / / delay
}
for (int i = BASE; i <BASE + NUM; i + +)
{
digitalWrite (i, HIGH); / / set the digital I / O pin output is "low", that gradually open relay
delay (200); / / delay
}
}
Competitive Advantage:
1. Convenient & Friendly Customer Service
2. Low Prices Direct From Factory Suppliers
3. Fast Delivery Around the World.
4. High Quality With Global Standards.
5. 1 Year Factory Warranty
6. Safe Shipping Way and Payment
Factory Pictures