Hi, welcome to a video tutorial from Robojax. in this video we are going to see
how we can use the Fotek solid state relay with Arduino and also without Arduino to
control an AC load .you can get the code for this project by clicking at the link
of the description below which will take you to www.robojax.com/learn/arduino
So the question is why we use this bulky big thing while we
can use this small solid-state relay or maybe this module that's already built
in or maybe just use regular 5 volts really. the answer is that this huge big
size is for higher current this is rated with 40A so you will see SSR 25 and you
will see SSR 30 and different ratings and that rating reflects the amount of
current that it can handle to control an AC load. so for that reason this cannot
do it this can go up to 2 ampere so you can go up to 400 watts so unpair
multiplied by the voltage that you're using will give you the power (P=V * I) or the
same way this is the same thing except the module so this is 10 ampere so 10
times 220 around 2800 watts so that but this one is 43 is 220 volts so 40 times
220 you are getting eight point eight kilowatt 8800 watts so huge air
conditioners can be controlled or any other load that you want for that reason
we are using this big bulky solid-state relay.
let me explain the AC bulb here so this is a table light just to the wall outlet
and the wire goes and will be turned on but I've disconnected one of these two
wires here I've just cut this (the live or hot) wire from here now this can be connected to that
relay. the relay's job is to just connect it so it will be on and disconnected
will be off I've just twisted them and then put some solder so this can be
inserted into connectors with the screw. in many countries the AC plug is similar
to this so you can insert it this way or you can insert it that way so it doesn't
matter for that reason you will not be able to identify the live wire and it
will make it much dangerous working with that project so be careful and do not
touch the project once it's connected to AC line. this is now disconnected here I'm
explaining the wiring the two wires that I showed you for the AC load will be
connected in these two you just unscrew it and then insert your wire on this
side that is clearly labeled as AC uh pin 1 and pin 2 so 3 and 4 is here so
I've connected this negative this orange connected to the ground and then the
plus is connected to pin 8. the length of the device is 62.2mm
millimeters and the depth is 23.1 millimeter if you want
to know the weight 86.7 grams.
Input (Control) Voltage Range
so to demonstrate that you do need an Arduino and also in order to control so
this is the input ground if connected to the ground of my power supply and then
this wire which is the plus is connected here I've connected a voltmeter for you
to show you that this is now 12 volts and now if I turn this off and disconnect it.
this is a bulb. the light is from here so also the light will turn off so it will
turn off now let's try different voltages here that saves up to 32 volts
so I can increase the voltage and it will work. so let's go down at 15 volts
cell it works you see
so the rating here they said is three volts treaty 32 and now we have
2.67V let me disconnect it. so it can work up to 2.67V. I
can go lower but this will not turn on but let me see now the voltage is one
point seven this doesn't show but more like it as you can see one point eight
five works. so now let me reduce the voltage 1.5 1.6 of one point seven even
works seven five and above
Demonstration
as a demonstration of the code as you can see here the light will go on and
off and also the code shows that when rely is ON you see this is on and the
relay is OFF this is OFF. so you can clearly use the code to control
something very heavy so this was just a simple demonstrations we can control air
conditioner or any other load. just to consider 40 ampere or whatever is the
rating of your solid state really
Arduino code explained
the code so initially we are assigning a pin for relay. so we say pin 8. I'm
setting pin 8. whatever pin you want. between 2 to 13 and in Arduino UNO or Arduino
mega you can go higher. so set the pin here. and then inside the setup() function we are
setting the communication that is for to display the serial monitor so this must
match the value that you have(in the serial monitor. Click Tools->Serial monitor) so this value that you are using math smash this
value that you have here otherwise you cannot see. that and then this is just a
text because this is a setup from here to here everything will be initialized
so I'll use only once. so one time you will see this text and also we set that
relayPin pin. this is as if I type here 8 then 8 as an output. and after that this
is the loop which is starts from here to here this portion is to turn the switch
on or the relay on and this is to turn it off. then we say here digitalWrite
this is writing a value to the pin and pin 8. realyPin and we set that that's HIGH. so
this will set HIGH and that it (SSR) will be ON the load will be connected and also
this text is displayed on the serial monitor. and then we wait for 2000
millisecond or a 2 seconds so for 2 seconds the lights will be ON and after
that we set the pin to LOW which the light will be off. the text will be
displayed as well and then we wait for 2 seconds. so this low doesn't work or this
HIGH doesn't work unless you put a time here because it will go very quick so
when it's LOW and we say wait for 2 seconds and then HIGH. when it's LOW as
well we wait 2 seconds and then the loop goes and comes back and turns it on. so
if you're controlling a load or something based on some condition here
you can let's say if you have a temperature or you're controlling a
temperature that say temperature is a variable temp1 you say if TEMP is greator
than
for 34 degrees then turn ON and then here I just put it so then turn on
SSR (relay) and other way otherwise it would be always OFF. it just goes and goes and
if this is not true it just keeps it OFF. or you can also put a condition here
else and then if it's not true you can put that without this else also it works.
so my point was that this way you can control and do whatever you want with
controlling that if AC load with the solid state relay. This was introduction
to this Solid State Relay controlling AC load. thank you for
watching please thumb up 👍 the video. please also share 🔗 and subscribe 🔔 to get
updates of my upcoming videos.
Subtitle typed/corrected by Ahmad Shamshiri on Sep 16, 2020 in Canada.
I did my part to help you learn. Now it is your turn. You can subscribe 🔔 to my channal.
Thumb 👍 the video and say simple "thank you". Iappreciatee it.
If you want to send a cash donation, the link to my PayPal account is in the description. Thank you😊