PR 11 Programming Question

LED Blinking, Walking with Cytron Servo, Displaying RFID, Multi-function Mobile Robot......

PR 11 Programming Question

Postby fir » Sat Nov 12, 2011 10:43 pm

Hi there.

How to delay the fan to stop? How to write the source code?
Now the fan will ON when Temp reach 40°C and OFF when Temp below 40°C.
How to delay the fan to OFF at 30°C?

Thanks in advance.
fir
Freshie
 
Posts: 6
Joined: Fri Nov 11, 2011 7:03 am

Re: PR 11 Programming Question

Postby shahrul » Sat Nov 12, 2011 11:54 pm

if ( (fan is off) & (temperature > 40) ) on fan
if ( (fan is on) & (temperature < 30) ) off fan
User avatar
shahrul
Professional
 
Posts: 812
Joined: Sat May 16, 2009 9:54 pm
Location: Selangor

Re: PR 11 Programming Question

Postby fir » Sun Nov 13, 2011 3:29 am

Thanks for the help. But I'm not sure if the code is suite for PR11 code.
Here I attach a screen shot.
Attachments
sc.png
fir
Freshie
 
Posts: 6
Joined: Fri Nov 11, 2011 7:03 am

Re: PR 11 Programming Question

Postby shahrul » Sun Nov 13, 2011 8:54 am

fir WROTE:Thanks for the help. But I'm not sure if the code is suite for PR11 code.
Here I attach a screen shot.

I don't know
User avatar
shahrul
Professional
 
Posts: 812
Joined: Sat May 16, 2009 9:54 pm
Location: Selangor

Re: PR 11 Programming Question

Postby shiyan » Tue Nov 15, 2011 7:47 am

shahrul WROTE:I don't know


Shahrul, good one! :lol:

fir, why don you just try yourself? Putting the code recommended into the original code is so hard? Harder that you ask other to check your code and figure out whether it is suitable?
User avatar
shiyan
Amateur
 
Posts: 189
Joined: Wed Jun 09, 2010 10:59 am

Re: PR 11 Programming Question

Postby zhenning » Wed Nov 30, 2011 12:42 am

fir WROTE:Thanks for the help. But I'm not sure if the code is suite for PR11 code.
Here I attach a screen shot.



Just test it. It wont burn your PIC :roll:
zhenning
Enthusiast
 
Posts: 351
Joined: Thu Dec 30, 2010 12:32 am

Re: PR 11 Programming Question

Postby robosang » Wed Nov 30, 2011 9:14 pm

Good one! :D
robosang
Expert
 
Posts: 1239
Joined: Wed Jun 10, 2009 5:37 pm


Return to DIY Project Set

Who is online

Users browsing this forum: No registered users and 8 guests

cron