Quote Originally Posted by mackrackit View Post
I think the answer to you problem would be to make fan1on a loop not a return.

Stay in that loop until the temp drops below the set point.

Move the ADC commands to a GOSUB and then you can sample from anywhere and have less code.
I do plan on using GOSUB's but at the moment I am using the demo version of PicBasic and can't really afford to step up to Pro (poor student) so am just qualifying my code/ideas within the line limit of the demo version.

I *really* appreciate all the help and input on this - thanks guys.


Hoops