in this video we will learn how to use
relay and we will demonstrate this video
to turn on and off 220 volt AC lamp
before we start I have to warn you that
this video contai practice using high
voltage you need to really understand
what you do and if this is your first
time it's better to have supervisor
relay is a switch but we can control
this switch electronically using
device like microcontrolleror arduino in this video we will learn
how to use SPDT really actually there
are so many type of relay out there SPDT
means single pole dobule twrow it means
we have one input and have two output
like a switch relay can open and close
cicruit by disconnect and connect a
wire it has three pins that is common
normally open and normally closed
normally relay will connect to NC or
normally closed but after the relay is
energized the relay will switch to
normally open
this is the relay module module means
that the relay has added with some
components make the really ready to use
with another device like microcontroller
this is three pin terminal the common
is on the center normally open on the
left and normally closed on the right take a look at the back side this is the
normally open common and normal closed
this relay module also has three pins
that we can connect the power up the
module and trigger it
there are VCC and ground that we can
connect to power up the relay and the
signal used to trigger relay and there
is also specification of this really
printed on its top of the written body
you can read the maximum of voltage and
current that can handle by this relay
and at the bottom there is operating voltage of this relay this relay used five
volt to energize or switch the coil now
let's connect it with arduino
time to code now we will try to turn
on and off the relay and we will give
the delay to one second or 1000
millisecond we have to set the pin 9
as an output to the relay and we use the
digitalWrite to turn on and off
the digitalWrite HIGH will turn off the relay
and the digitalWrite LOW will turn
on relay so we give the delay to 1000
milliseconds between the digitalWrite
Wait before we continue this video
please subscribe and turn on the
notification to make us more excited to
make another video
we have successfully to turn on and off
the relay take a look at the green LED
is blinking ON and OFF and notice the clicks sound from the relay
now it's time to connect a load to the relay
cut one wire from the power source to
lamp
plug one end to the common of the relay
and another end in to the normally open of the
relay
plug the power source and then plug the
Arduino and then it's working
we can also change the delay to make it
faster we will try to change the delay
to 500 milliseconds
and now it's blink faster and I think
that is our video today about how to
use relay to turn ON and OFF an 220
Volt AC lamp see you in another video
bye
