Dimmer and PIR

Discussion in 'Pascal Logic Code Examples' started by Andy1967, Feb 17, 2019.

  1. Andy1967

    Andy1967

    Joined:
    Apr 22, 2017
    Messages:
    13
    Likes Received:
    0
    Location:
    Wigan
    does anyone have a good way of controlling a dimmer via a pir and a DLT key set as dimmer where the pir is disabled when the dlt key is used. There is a PAC.
    Thanks.
     
    Andy1967, Feb 17, 2019
    #1
    1. Advertisements

  2. Andy1967

    Ashley

    Joined:
    Dec 1, 2005
    Messages:
    867
    Likes Received:
    50
    Location:
    Adelaide, Australia
    I'm sure you know what you are talking about but that makes no sense :). You want to control a dimmer via a pir when the pir is disabled ????
     
    Ashley, Feb 17, 2019
    #2
    1. Advertisements

  3. Andy1967

    Andy1967

    Joined:
    Apr 22, 2017
    Messages:
    13
    Likes Received:
    0
    Location:
    Wigan
    Yeah. Maybe I kept it a bit too brief.
    I have a dimmer output channel that I want to control in 2 ways as follows
    1: The PIR is to set the dimmer output at 50% when movement is detected.
    2: The key function of 1 DLT key is to be set as "dimmer" which will control the dimmer output channel to the desired level but also disable the PIR at the same time, Then re enable the PIR when the DLT key is off or 0%
    Thanks.
     
    Andy1967, Feb 17, 2019
    #3
  4. Andy1967

    Ashley

    Joined:
    Dec 1, 2005
    Messages:
    867
    Likes Received:
    50
    Location:
    Adelaide, Australia
    Put the PIR and DLT on separate groups addresses. In the output unit, put the DLT controlling the output, and the PIR ga in the logic and specify maximum. In the PIR disable put the DLT ga and select 'disable'.

    The only problem is that disabling a PIR does not turn it's ga off (unfortunately!), so if the PIR is triggered when you disable it, it won't turn off. If this is a problem, you will need to add a line of code in the PAC so that whenever the DLT ga turns on, it turns off the PIR ga.

    Alternatively, if you are not using all the blocks in the DLT, set up a single ga in both DLT and PIR to control the load. Then in a spare block set up another ga to disable the PIR. Link that block to the same dimmer switch.
     
    Ashley, Feb 17, 2019
    #4
  5. Andy1967

    Andy1967

    Joined:
    Apr 22, 2017
    Messages:
    13
    Likes Received:
    0
    Location:
    Wigan
    Hello Ashley.
    Thanks for your advice, I'll give it a try.
     
    Andy1967, Feb 18, 2019
    #5
  6. Andy1967

    Andy1967

    Joined:
    Apr 22, 2017
    Messages:
    13
    Likes Received:
    0
    Location:
    Wigan
    Had a look at this and the problem I have is that the PIR would only be able to drive the output to "max" in logic
    So if I only wanted the PIR to drive the output to 50% I would need to set the "max" to 50%
    This would stop the DLT Key driving the output to more than 50%
    Am I correct and if so have you any more ideas.
    Thanks,
     
    Andy1967, Feb 19, 2019
    #6
  7. Andy1967

    Ashley

    Joined:
    Dec 1, 2005
    Messages:
    867
    Likes Received:
    50
    Location:
    Adelaide, Australia
    I think you may be looking at the max in the min/max tab, not the logic tab. Go to the Logic tab. In the first box select the ga controlling the pir (assuming the switch is set to control the channel). Then tick the checkbox for the switch channel and select Max radio button in the same column. Now the output will be the maximum of the 2 ga's.
     
    Ashley, Feb 19, 2019
    #7
  8. Andy1967

    Andy1967

    Joined:
    Apr 22, 2017
    Messages:
    13
    Likes Received:
    0
    Location:
    Wigan
    Hello Ashley.
    Thanks a lot.
    Regards.
    Andy.
     
    Andy1967, Feb 20, 2019
    #8
    1. Advertisements

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.