MATLAB: Automated Green House Temperature Control

green house temperature control

How to write a program which will read and monitor the green house temperature from a temperature sensor and compare it with the threshold temperature 290C.If the temperature in the green house goes up switch the fan on for cooling and if it goes down switch the heater on for heating

Best Answer

That sounds like a use for a PID Controller, or perhaps just some Fuzzy Logic.
I suspect you would not want the continually switching on and off, where the fan starts, the temperature almost immediately decreases, the fan switches on, the non-longer cooled area warms to a fraction over 290, the fan switches on, the fan switches off, the fan motor burns out...
Related Question