Automated Green House Temperature Control
7 ビュー (過去 30 日間)
古いコメントを表示
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
2 件のコメント
Jan
2011 年 11 月 24 日
Well, I assume the "green" house will get brown very fast near to 290C.
A simple temperature siwtcher should be able to do this without using a program or even Matlab.
採用された回答
Walter Roberson
2011 年 11 月 24 日
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...
2 件のコメント
Jan
2011 年 11 月 24 日
A bi-metal switch circuit breaker with a weak magnet for a hysteresis will solve the problem. Daniel, if you implement this for a real application, be sure to check out: http://www.mathworks.com/matlabcentral/answers/9073-what-is-your-unusual-use-of-matlab
Walter Roberson
2011 年 11 月 25 日
Bah, those engineers, always wanting to throw hardware at problems!!
:-)
その他の回答 (1 件)
Prasad Kalane
2013 年 7 月 19 日
>> I had a code for plotting data from sensor.(tested on LM35,ARM-LPC2148,MATLAB 2010) >> Pls edit in that code as well as in controller program.
% *************************************************************************
s1 = serial('COM4'); %define serial port
s1.BaudRate=9600; %define baud rate
fopen(s1); %open serial port
clear data; % data must be in a Coloumn vector (do this setting from controller by using delay & next %line ) e.g. [1;2;3;6;7;8;9]
for i= 1 :10 %acquisition of 100 points
data(i)=(str2double(fscanf((s1)))); %read sensor
disp(sprintf('Temperature= %3.2f oC' ,data(i)))
end
fclose(s1);
i=(1:10); plot(i,data,'--rs','LineWidth',1,... 'MarkerEdgeColor','k',... 'MarkerFaceColor','m',... 'MarkerSize',5)
xlabel('Time')
ylabel('Temparature(celcious)')
title('Plot of Temparature Vs Time')
% then use codition of If...end
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Data Acquisition Toolbox Supported Hardware についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!