lew247
- 21st May 2008, 23:23
Hi guys, I've been reading here for a long time now and know about checking data sheets and searching on google and so on.
However I'm pretty new to Pic programming and I'd like some pointers please (if you dont mind me asking)
I'm trying to make a double thermostat i.e. measure the temperature indoors and outdoors, and if the temperature falls inbetween a certain range then my lcd would do nothing but display both temperatures.
However I'd like 2 switching outputs, so if the temperature was below a certain figure a heater would come on, if it was above a certain figure then a cooler would activate.
Hope I'm making sense so far, and apologies for making this long winded but I figure it best you know as much as possible to give the best answer.
I've decided to use DS18B20's as the sensors.
What i'd like is some pointers on how to get the pic (probably a 16f877 as thats what I have here at the moment) to read the temperatures display both on the lcd and monitor the range of both sensors so it switches only between 2 ranges
for example if the temp is above 20ºC and 25ºC only the temp is displayed on the LCD, but if it goes above 25ºC then an output goes high activating the cooler, similary is the temp goes below 20ºC then another pin goes high activating a cooler.
I'm not asking for finished code, as although it would be totally handy I like experimenting.
What Id like if possible is some help, maybe some kind of flow chart showing the steps I need to take bujt mainly how to get the pic measuring the range of both temp sensors continually and acting on it,
FORGOT to say above, each sensor is in a different room so they both need to be monitored and acted upon independentaly of each other,
hope that all made sense. (using PBP 2.5)
Lew
However I'm pretty new to Pic programming and I'd like some pointers please (if you dont mind me asking)
I'm trying to make a double thermostat i.e. measure the temperature indoors and outdoors, and if the temperature falls inbetween a certain range then my lcd would do nothing but display both temperatures.
However I'd like 2 switching outputs, so if the temperature was below a certain figure a heater would come on, if it was above a certain figure then a cooler would activate.
Hope I'm making sense so far, and apologies for making this long winded but I figure it best you know as much as possible to give the best answer.
I've decided to use DS18B20's as the sensors.
What i'd like is some pointers on how to get the pic (probably a 16f877 as thats what I have here at the moment) to read the temperatures display both on the lcd and monitor the range of both sensors so it switches only between 2 ranges
for example if the temp is above 20ºC and 25ºC only the temp is displayed on the LCD, but if it goes above 25ºC then an output goes high activating the cooler, similary is the temp goes below 20ºC then another pin goes high activating a cooler.
I'm not asking for finished code, as although it would be totally handy I like experimenting.
What Id like if possible is some help, maybe some kind of flow chart showing the steps I need to take bujt mainly how to get the pic measuring the range of both temp sensors continually and acting on it,
FORGOT to say above, each sensor is in a different room so they both need to be monitored and acted upon independentaly of each other,
hope that all made sense. (using PBP 2.5)
Lew