Want To Ask For my Prob Project


Closed Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2016
    Posts
    2

    Default Want To Ask For my Prob Project

    Hi, im student and i want to get some help for my project

    the problem like this

    temp<29C until temp <35C; the bulb ON
    if temperature>35C until temperature >29C ; the bulb will OFF

    anyone hv some idea to solve this?

  2. #2
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default Re: Want To Ask For my Prob Project

    That seems to make little sense.
    It sounds like a bulb (heater) will turn on at any temp less than 29 deg,
    and stay on until temp is over 35 degrees?


    Code:
    var byte temp = 29
    var bit bulb = 0
    
    
    cycle:
    
    (check temperature here)
    
    if bulb = 0 then
    	if temp < 29 then
    	bulb = 1
    	endif
    else
    	if temp > 35 then
    	bulb = 0
    	endif
    endif
    
    goto cycle

Similar Threads

  1. WRITE prob during power cycle 18f6722
    By jason in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 24th May 2010, 23:06
  2. Help with a project
    By altech6983 in forum Off Topic
    Replies: 0
    Last Post: - 26th October 2009, 19:04
  3. mcs prob
    By andrewwaack in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 8th January 2009, 10:59
  4. Prob osc with PIC16f876 20 sp
    By kris in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 15th March 2006, 13:19
  5. prog prob
    By muddy0409 in forum General
    Replies: 4
    Last Post: - 21st September 2005, 16:30

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts