Interfacing Relay with Arduino Uno Program with Component Connection

Objective:

         To Control (ON/ OFF) the devices connected in the AC supplies (230 V)

Components Required

  • Arduino Uno
  • Relay Module

  Connection Diagram

Program

int RelayPin=13;

void setup()

{

pinMode(RelayPin, OUTPUT);

}

void loop()

{

digitalWrite(RelayPin, HIGH);

delay(1000);

digitalWrite(RelayPin, LOW);

delay(1000);

}

Working

         The Relay operates as Electrical Controlled switch. It has input side and output side. The input side works in 0-5V DC that can be controlled by the Arduino and the Output works in very high voltages. When we supply HIGH to the input side of relay the switch in the output side closes and the appliance gets ON. Similarly, when we supply LOW to the input side of relay the switch in the output side opens and the appliance gets OFF.

Output

The Device in the output side ON (for HIGH input)

The Device in the output side OFF (for LOW input)

LDR sensor Interfacing with Arduino Uno Program with Component Connection
Interfacing LCD with Arduino Uno Program with Component Connection

Leave a Reply

Your email address will not be published. Required fields are marked *

Navigation

My Cart

Close
Viewed

Recently Viewed

Close

Great to see you here !

Your personal data will be used to support your experience throughout this website, to manage access to your account, and for other purposes described in our privacy policy.

Already got an account?

Quickview

Close

Categories