0% found this document useful (0 votes)
161 views8 pages

Arduino Relay Module Guide

A relay module allows an Arduino board to control high-voltage circuits by using a small voltage from the Arduino to activate an electromagnet in the relay. The electromagnet pulls a contact to switch on the high-voltage circuit. The relay has pins that are connected to the Arduino digital pins to allow the Arduino code to turn the relay on and off, controlling the external circuit. An example code turns a relay on for 1 second and off for 1 second to demonstrate its operation.

Uploaded by

Jithin
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
161 views8 pages

Arduino Relay Module Guide

A relay module allows an Arduino board to control high-voltage circuits by using a small voltage from the Arduino to activate an electromagnet in the relay. The electromagnet pulls a contact to switch on the high-voltage circuit. The relay has pins that are connected to the Arduino digital pins to allow the Arduino code to turn the relay on and off, controlling the external circuit. An example code turns a relay on for 1 second and off for 1 second to demonstrate its operation.

Uploaded by

Jithin
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd

1

www.bluesail.co.in
info@bluesail.co.in
2

Digital Reading /
Writing
Relay Module
3

What is a Relay Module?

A relay is basically another type of switch which is operated by an electromagnet. The


electromagnet requires a small voltage to get activated which we will give from the Arduino
and once it is activated, it will pull the contact to make the circuit.

We normally use relay as a switch to control high voltage circuit.


4

Relay Working
5

Relay Pin Description


6

Relay Connection with Arduino


7

Code
#define relay 7

void setup() {
pinMode(relay, OUTPUT);
}

void loop() {
digitalWrite(relay, LOW);
delay(1000);
digitalWrite(relay, HIGH);
delay(1000);
}
8

www.bluesail.co.in
info@bluesail.co.in

You might also like