Description:
1-Channel relay module, with photoelectric isolation
The module can be high or low by a jumper setting trigger
With power and relay action indicator
The module Operating voltage 3.3V
The module uses genuine quality relay, normally open interfaces
Maximum load: AC 250V/10A, DC 30V/10A
Module interface:
DC+: positive power supply (VCC)(3.3V)
DC-: negative power supply (GND)
IN: The control end, the driving current should be more than 4mA
COM: The control of loop of earth wire
Code:
int RelayPin = 6;
void setup()
{
pinMode(RelayPin,OUTPUT);
}
void loop()
{
digitalWrite(RelayPin,HIGH);
delay(2000);
digitalWrite(RelayPin,LOW);
delay(2000);
}