hi welcome to an Arduino step-by-step course by Robojax
this is the solid state really so what solid state really is solid state really is a type of switch
built on a solid state devices such as triac, thyristor, transistor and other semiconductors
instead of mechanical switch internally it has electronic
components that act as a switch and the two pins that are needed to be switched
will be internally electronically connected the remains such that this can work with AC
and they do not have polarity in here there are many brands but one of the famous one is Omron
and these usually have a lower current rating of 2 amperes at 250 volts
and this is a module that has a relay and all the connectors ready we can use it
with Arduino you can get the module with two relay and also there'll be 4 8 and even 16.
you can get them so if these have advantages and disadvantages this has a very longer life
and low current consumption and that makes it very suitable for application that needs to run
on battery component there is no mechanical or motion or contacts that's why the life of
this one is much longer than this type of relay which has coil and contacts and also in terms of
current consumption when it dis operates this needs very little current I will provide the data
sheet you can look at it this one has advantage of also this one can handle large amount of current
for example this can handle a 2 ampere load and this can handle up to 10 ampere load at even 250
volts so this will be 2.5 kilowatt while this one can handle about 400 watts the disadvantages
that this cannot handle high amount of current or load this disadvantage of this one is
because it's mechanical the life expectancy of this one is much lower
and when the contacts join and disconnect it creates spark and slowly degrades the
quality of this and finally this will give up and this one also needs more energy to operate and
it's not preferred to operate with the battery especially on portable devices the model that
we are working on with is g3mb and at the end it will have different variation like 202p to 2pl
and they just define the voltage for example 202p works with they have five volts version 12 and 24.
I’ll provide you the length for this data sheet in case if you need further information operation
usage and control of this with Arduino is exactly the same as the relay with the magnetic winding
except that the rating the current rating of these are much lower with comparing to the other relays
and in case if you want to use the solid state relay without the module
the pin have been labeled here as one two three and four and this is from the data sheet
pin three and pin four is for the input pin three is the positive pin four is the negative
pin one and two is for the load here is a solid state relay wiring diagram exactly the same as the
regular relay channel one or input have been connected to pin two the middle pin is ground
have been connected to the ground the left pin is plus dc have been connected to five volts
the two other wires on this side will be connected as shown here for your e-load
this is a tabletop ac bulb and this is a plug that you plug it into the wall and
the device will turn on and off and I’ve cut one of the wires of this twisted them and solder them
and this will be connected to relay and the job of relay is to connect this and turn on the light
and disconnect it to turn off the light this is the wiring from this side this has been
connected to five volts the metal pin is ground have been connected to the ground the last pin
which is the input have been connected to pin two of Arduino the two wires here from the ac bar that
I have been connected to these two terminals if you found this tutorial helpful please thumb up
and also click on the subscribe on the right side in the lower corner I really appreciate it
let me explain the code this is the exact code that I’ve just shown you
in the previous lecture relay pin is a variable of type integer we have assigned pin two so we
will be connecting our relay to pin 2. inside the setup we have to define the pin 2 relay pin as an
output after this we go through the loop we will try to turn the relay on and turn it off
and subsequently the relay will turn on and turn off the bulb and we use digital write relay pin
low because our release low trigger this will turn on our relay and then we will wait for a second
when it's turned on after that we use digital relay pin hi this will turn
off the relay in this line we will wait for two seconds and the loop continues like that
here the code is running now and the relay turns on as you can see there is an led also showing you
the status of the relay there is no click or sound it's very just quiet because this is solid state
and currently it's one second on and two seconds off that's
longer change it now to 200 milliseconds 200 milliseconds
I’ve changed the code so this is the same code 200 millisecond on 200 seconds off and the same
thing repeated and the third time we turn it on for two seconds and then one second
off so this will make two quick blink one long blink and then comes back
this is connected one long blink and then two quick one long
and you can play with this whatever way you want this to be turned on and off
please make sure to subscribe by clicking at the subscribe button in here