Today, we discuss about how to control the temperature of the room.
So in this program, we have different units like temperature for temperature we have in 84 degrees
Celsius.
So for that purpose, I just use.
A thermometer to measure the temperature of room.
So Azin degrees Fahrenheit and another indicator.
Which is one degree Celsius.
So first, in this case, I want to continuously monitor the temperature, so for that purpose, we
have to connect data acquisition.
Over here, this is the expressway.
It will measure the temperature directly from the heart of the device you can use.
And he and I are device to measure the temperature right now, I just use a random number in place of
this.
So we're here in.
But basically this random number, we create values from zero to one.
So my temperature range of my room in this from zero to hundred like in this case.
So I just multiply this when you go from zero to one hundred.
As you see, and I just ran to the nearest value, because if you make zero, find something really
this is floating you.
As you see, the color is orange.
So over here, this is connected to my degree from.
So will give me the value and I just display the units.
So all over here, I just change the color of temperature in this for tonight, the calories and for
this color is OK.
So right now, are you just going to this degree Fahrenheit, two degrees Celsius for that purpose?
I use the formula F minus 32.
This annual.
Fly by nine.
OK, so this will give me the temperature and degree Celsius, I just create control to stop the program.
And in this valley, I just take.
To allow these to display the.
Just the condition of Reider.
And another one is for AC.
Airconditioners.
And for this program, let my.
I choose this temperature.
For maintaining their room temperature, so I use basically greater than function and less than function.
So if the temperature of the room.
Is greater than.
It is greater than 27 degrees Celsius, then it will be on the relay, which is connected with the AC.
So it will be on our AC if.
The temperature of the room is below 20 degrees Celsius.
Below 20 degrees Celsius.
In that case, it will turn on the AC, so my room temperature is maintained between one to be seven
degrees Celsius.
OK, so.
Over here, I also use a relay function so that my program run.
With a delay of two seconds, so as I understand right now, temperature is 18 degrees Fahrenheit,
19 and 68 right now.
So according to this, the condition of AC and heater are basically these SCMP he does are connected
to a relay and relay the signal from the data aggregation guard.
Basically, in this case, we generate a signal for heater.
Or for.
Air conditioner vote, so according to the temperature, the condition changed.
And as you see.
As the temperature changes, some time alone, some time alone, according to the.
And Plager condition, thank you.