Oky Newstar Technology Co., Ltd
|
Place of Origin: | Guangdong, China (Mainland) |
Add to My Favorites | |
HiSupplier Escrow |
4 Arduino Relay Module 5V / 12V Relay Control Module With Demo Code
4-channel relay module relay module expansion 5V or 12V for arduino with demo code Arduino Relay Module
Description:
1.The input signal can be 3.3 V 5 V
2.Are low level effective. Support 3.3V 5 V
3.It has jump line. Can set high and low level
4.The power source and the relay system power can be divided
5.A set of jump cap. Jump hat off. Can separate the power supply
6.Only one way of high level can be triggered
Package Including:
1*Relay Module
Arduino 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