Single Relay Interfacing
with Arduino Uno
By Engr.Habib Ur Rehman
Components/Equipment Required:
Following Components/Equipment are
required to perform task.
3.
Buzzer/LED
Light (https://piees.pk/product/passive-buzzer-module/) & (https://piees.pk/product-category/lcds-display/)
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