Answers for "switch relay with arduino"

0

switch relay with arduino

int Relay  = 2;                 // Digital pin D5

void setup() {
  Serial.begin(9600);
  pinMode(Relay, OUTPUT);       // declare Relay as output
}

void loop() {
  digitalWrite (Relay, HIGH);
  delay(500);
  digitalWrite (Relay, LOW);
  delay(500);
}
Posted by: Guest on April-21-2021

Code answers related to "switch relay with arduino"

Browse Popular Code Answers by Language