PIR logic

Discussion in 'C-Touch/HomeGate/SchedulePlus/PICED Software' started by Memphix, Mar 7, 2007.

  1. Memphix

    Memphix

    Joined:
    Aug 31, 2006
    Messages:
    248
    Likes Received:
    1
    Location:
    Australia
    I'm using logic to control lights triggered by a PIR. The reason for using logic is due to having different lighting levels at different times.

    Problem arises when using an over ride. Turning off the over ride turns off the light and then the light will not turn on from the PIR until the PIR stops picking up movement and then starts picks up movement again... as the PIR is picking up movement while the over ride is on.

    So I need the PIR to be pulsing On rather than just telling that group address to come on when it first picks up movement from an non-active state.

    Is this possible ? Hope that made sense.
     
    Memphix, Mar 7, 2007
    #1
  2. Memphix

    Newman

    Joined:
    Aug 3, 2004
    Messages:
    2,203
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    If you assign a group to the Security function of the PIR then it will pulse a group on and off whenever it detects movement. You need to use this feature with caution, however, as it can put lots and lots of traffic on the bus.

    An alternative is to simply configure the timer on your regular PIR function to time out in 1 or 2 seconds instead.
     
    Newman, Mar 7, 2007
    #2
  3. Memphix

    Memphix

    Joined:
    Aug 31, 2006
    Messages:
    248
    Likes Received:
    1
    Location:
    Australia
    Thanks for that.

    The security option was interesting. The light seem to flash on and off with movement... didn't appear to be using the 2 minute timer.

    Reducing the timer to 2 or 3 seconds is almost as bad as the 2 minute setup... the problem being if they never leave the room, the PIR doesn't reset as its a retrig timer, its constantly on till they leave and there for doesn't turn the light on still.

    :confused:
     
    Memphix, Mar 8, 2007
    #3
  4. Memphix

    PSC

    Joined:
    Aug 3, 2004
    Messages:
    626
    Likes Received:
    0
    Location:
    Brisbane, Australia
    Memphix,

    You need to create some time of day flags. In the 'Trigger' application create a GA called 'Time Flags' then create your action selectors i.e 'Day' = 1, 'Night <11pm' = 2, 'Night >11pm' = 3.

    Now,

    1. Create a 'Lighting' GA in Toolkit e.g. 'PIR04.01 HALL'.

    2. Create a 'Lighting' GA in Toolkit e.g. 'A04.01 HALL'.

    3. Send me a PM with your email address so I can forward the Toolkit GUI screen grabs that you will need to follow. (admin, why can't I upload these files??? :mad: and why do you moderate all my posts??? :mad: )


    Then write some logic -

    once (Time = sunrise) then
    begin
    SetTriggerLevel("TIME FLAGS", "DAY");
    end;

    once (Time = sunset) then
    begin
    SetTriggerLevel("TIME FLAGS", "NIGHT <11PM");
    end;

    once (Time = "11:00:00 PM") then
    begin
    SetTriggerLevel("TIME FLAGS", "NIGHT >11PM");
    end;


    AND


    once (GetLightingState("PIR04.01 HALL") = ON) and
    (GetTriggerLevel("TIME FLAGS") = 1 {"NIGHT <11PM"} ) then
    begin
    PulseCBusLevel("Local", "Lighting", "A04.01 LOGIC", 70%, 0, "0:00:15", 0%);
    end;


    once (GetLightingState("PIR04.01 HALL") = ON) and
    (GetTriggerLevel("TIME FLAGS") = 1% {"NIGHT >11PM"} ) then
    begin
    PulseCBusLevel("Local", "Lighting", "A04.01 LOGIC", 30%, 0, "0:00:10", 0%);
    end;


    You will now have complete control over your light level outputs, lighting timers.

    You can make some minor changes to this code to meet your needs.

    I hope this helps.
     
    PSC, Mar 9, 2007
    #4
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.