An algorithm for controlling temperature and humidity of greenhouse and aviculture


Results 1 to 11 of 11

Threaded View

  1. #4
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    Amindzo, add the code necessary and it should work.

    Code:
    Rdegree     var byte        ' sensor reading variable
    Sdegree     var Byte        ' Temperature setpoint variable
    RHumidity   var byte        ' Sensor Humidity variable
    SHumidity   var byte        ' Humidity setpoint variable
    TempDev     var Portx.x     ' Pin to  control the heating system
    HumDev      var Portx.y     ' pin to control water spry motor
    
    
    Main:
    'make a loop delay for the time required at the end call CheckAmbient
    'Here you need also the routine for setting your setpoints
    goto main
    
    CheckAmbient:
    if Rdegree > Sdegree then
    TempDev=Low
    else 
    TempDev=high 
    Endif
    if RHumidity > SHumidity then
    HumDev=Low
    else 
    HumDev=high 
    Endif
    return
    
    end
    Al.
    Last edited by aratti; - 7th November 2008 at 17:26.
    All progress began with an idea

Members who have read this thread : 0

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