5V DC Relay Module

$4.90

30 in stock

Description

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);
}

 

Additional information

Weight 0.013 kg

There are no reviews yet.

Be the first to review “5V DC Relay Module”

Your email address will not be published. Required fields are marked *