Introduction to 5V 1 channel Relay for Arduino (with power light) Robojax.com

The source code for stepper Introduction to 5V 1 channel Relay for Arduino


// April 01, 2017
 // Written for Robojax.com video 
 // Introduction to 5V relay.
int relayPin = 8;

void setup() {
  pinMode(relayPin, OUTPUT);

}

void loop() {
  
  digitalWrite(relayPin, LOW);

  delay(500);
 digitalWrite(relayPin, HIGH);
 delay(500);
}