5V Dc Relay Module Sensor

5V DC Relay Module

  • $3.90


5V DC Relay Module Code


/* SETUP

Relay          Arduino
-       -      GND
+       -      5V
S       -      D10
*/
 
int relay = 10; // relay turns trigger signal - active high;

void setup ()
{
  pinMode (relay, OUTPUT); // Define port attribute is output;
}

void loop ()
{
  digitalWrite (relay, HIGH); // relay conduction;
  delay (1000);
  digitalWrite (relay, LOW); // relay switch is turned off;
  delay (1000);
}

We Also Recommend


where to buy 5V DC Relay in canada

5V DC Relay canada

buy 5V DC Relay canada