Quote Originally Posted by lew247 View Post
Thanks, thats a great help although I had actually seen it when I was doing some research for this, what I dont get is how you use it as a thermostat though, monitoring a certain range of temperatures.
I'm using the 16f877 and the DS18B20 because thats what I have handy at the moment.
Are you asking how to use the information gathered from the DS18B20 ?
something like:
Code:
loop:
IF MYVAR1 >=  75 THEN
 PortB.1 = 1
IF MYVAR2 <=  65 THEN
 PortB.0 = 1
else
portb.1 = 0
portB.0 = 0
serout PortB.6,N9600,[254,128,"Inside temp is,"#myvar1]
serout PortB.6,N9600,[254,192,"Outside temp is,"#myvar2]
endif
endif
goto loop