Monday, May 11, 2020

Single Relay Interfacing with Arduino Uno By Engr.Habib Ur Rehman


 
                  Single Relay Interfacing
                  with Arduino Uno
                 By Engr.Habib Ur Rehman

Components/Equipment Required:
            Following Components/Equipment are required to perform task.
2.    Single Channel Relay Module (https://piees.pk/?s=relay&post_type=product)
4.    Breadboard

Circuit Diagram:
Note: If you connect with “Normally Open” then output will be first “High” then it will be “Low” and If you connect with “Normally Close” then output will be first “Low” then it will be “High”
Arduino Program:
int relay = 10;
void setup ()
{
  pinMode (relay, OUTPUT);
}
void loop ()
{
  digitalWrite (relay, HIGH);
  delay (1000);
  digitalWrite (relay, LOW);
  delay (1000);
}

No comments:

Post a Comment