esp12f esp8266 1 Channel Relay Board 5V DC ET10941

300.00

  • RELAY PINS GPIO4
  • LED PIN GPIO5
  • SUPPLY VOLTAGE 5 DC 1A
  • INBUILT RESETTABLE PPTC FUSE and REVERSE PROTECTION
  • MADE IN INDIA

4 in stock

Quantity Discount (%) Price
1 300.00
2 - 4 3 % 291.00
5 - 9 5 % 285.00
10 - 49 9 % 273.00
50 - 99 11 % 267.00
100+ 13 % 261.00
x

Description

  • HIGH QUALITTY FR4 DOUBLE SIDE PCB

RELAY TESTING PROGRAM

#define relay1 D2
#define relay2 D5
#define relay3 D6
#define relay4 D7
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(relay1, OUTPUT);
pinMode(relay2, OUTPUT);
pinMode(relay3, OUTPUT);
pinMode(relay4, OUTPUT);
digitalWrite(relay1, HIGH);
digitalWrite(relay2, HIGH);
digitalWrite(relay3, HIGH);
digitalWrite(relay4, HIGH);
delay(1000);
digitalWrite(relay1, LOW);
digitalWrite(relay2, LOW);
digitalWrite(relay3, LOW);
digitalWrite(relay4, LOW);
delay(1000);

}

// the loop function runs over and over again forever
void loop()
{
digitalWrite(relay1, HIGH);
delay(1000);
digitalWrite(relay1, LOW);
digitalWrite(relay2, HIGH);
delay(1000);
digitalWrite(relay2, LOW);
digitalWrite(relay3, HIGH);
delay(1000);
digitalWrite(relay3, LOW);
digitalWrite(relay4, HIGH);
delay(1000);
digitalWrite(relay4, LOW);
}