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); }
There are no reviews yet.