3.6 Relay
3.6 Relay
Relay
Overview
In this lesson, you will learn how to use a relay.
Component Required:
(1)x Elegoo Uno R3
(1) x L293D IC
(1) x 5v Relay
Component Introduction
Relay:
A relay is an electrically operated switch. Many relays use an electromagnet to mechanically operate
a switch, but other operating principles are also used, as in solid-state relays. Relays are used where it
is necessary to control a circuit by a low- power signal (with complete electrical isolation between
control and controlled circuits), or where several circuits must be controlled by one signal. The first
relays were used in long-distance telegraph circuits as amplifiers. They repeated the signal coming in
from one circuit and re-transmitted it on another circuit. Relays were used extensively in telephone
exchanges and early computers to perform logical operations.
A type of relay that can handle the high power required to directly control an electric motor or other
loads is called a contactor. Solid-state relays control power circuits with no moving parts, instead using
a semiconductor device to perform the switching. Relays with calibrated operating characteristics are
sometimes multiple operating coils, which are used to protect electrical circuits from overloads and faults.
In modern electrical power systems, these functions are performed by digital instruments called
‘protective relays’.
M
+
M1
5V
1
Enable +V 16
2
In 1 In 4 15
3
Out 1 (Controlled by Enable 1 ) Out 4 (Controlled by Enable 2 ) 14
0V
L293D 0V
4 13
Arduino 5
0V 0V 12
7
In 2 In 3 10
8
+Vmotor Enable 9
Connection Schematic
Wiring diagram
Code
After wiring, please open the program in the code folder- Relay and click UPLOAD to upload
the program. See Lesson 5 of part 1 for details about program uploading if there are any errors.
After program loading, turn on all the power switches. The relay will pick up with a ringing sound.
Then, the motor will rotate. After a period of time, the relay will be released, and the motor stops.