0

Sensor reset

Hello again,

 

Well, after everything, the presentation is up and running, it is one Presentation that is a black screen, (single zone with a html doc with a Black background) that has an event attached to trigger a second presentation, which is my calendar and RSS Feeds. When the sensor has no motion, for 10 seconds, it triggers back to the Black screen presentation.

 

Sometimes it gets into this weird state, where it is on the Blackscreen presentation, but it sensing motion and will not trigger the presentation, until the sensor resets itself. (no motion of 10 seconds)

Is there some way to reset the sensor? Maybe a power pulse or something?

 

8 comments

  • 0
    Avatar
    ^UD\_$

    HTML state may take too long to initialize.

    You could use a Live Text state without any text to get the black screen faster...

  • 0
    Avatar
    Chris Stambaugh Ctr

    I think maybe I am overthinking this a bit.

     

    If you had one presentation with 8 zones with different content, how would you switch to a black screen? 

    My current issue is not that it does not switch, its that If I use a timed trigger from black screen to Calendar, if there is motion ( a bunch of people walking) After the timer goes out, it reverts back to the Black presentation, and while the sensor still triggers motion (button 0 press) it will not revert until there is no motion for 10 seconds. 

    I guess I need to set some sort of conditional state, that says that if button 0 is still pressed, it will reset the timer... I just have no clue how to do this. 

     

    My layout is below. The first presentation (default) is Blackscreen. I could not find a way not to have the input sleep without using a HTML document that just basically says bgcolor= black with the bare essentials of html. 

     When motion is triggered, (button 0) it switches to Calendar which is the multi zoned presentation

    When the timeout event from button press 0 is over, it goes back to Presentation 1 or blackscreen. 

    If there is a better way, I am open to it, but the motion sensor seems to be the part I am stuck on. The sensor seems to lock my presentation on black if there is a whole group walking by during the timeout and never lets it rest. If that makes sense. 

     

     

  • 0
    Avatar
    ^UD\_$

    Are you actually switching between two presentations, or between two states within a single presentation?

    Please describe the requirements. Something like:

     

    By default screen is dark.

    Upon motion detection (someone approaching the screen) calendar shows for 30 seconds.

    If motion is detected during the 30 seconds timeout, the timer resets for additional 30 seconds.

    If after 30 seconds, motion was not detected, go back to dark screen.

     

    Is that describing your application?

  • 0
    Avatar
    Chris Stambaugh Ctr

    Shoot, the images did not upload. 

     

    Currently I am using 2 presentations. 

     

    By default presentation Blackscreen is enabled.

    When motion is triggered, it switches to Presentation 2 (calendar)

     

    If no motion is detected in (variable amount, not sure ) minutes, the screen goes back to Blackscreen (default)




  • 0
    Avatar
    ^UD\_$

    A lot clearer now. Thank you.

     

    Is the intention to darken the screen when there is no motion, or just remove the calendar?

     

    You said that the sensor locks for 10 seconds between detections.

    If we can agree that the calendar should show at least for 30sec, or some other period of time that is longer than 10 sec, this is what I would suggest.

    Blackout presentation is fine. Motion detected -> switch to calendar. No issue here.

    While on calendar, what you would need is a timer event to take you back to blackout.

    There would be another GPIO event, that would keep taking you back to calendar, every time motion is detected, while someone is still in front of the display.

    If they walk away, the timer would switch back to blackout.

    The GPIO (sensor) doesn't take you back to blackout, but rather keep you in the calendar mode, as long as motion is detected.

    You would need the timer event to be set for a delay time longer than 10 seconds.

    Like shown below.

    The event handler is not required. It is only there to make things clearer, but can still be used as shown.

  • 0
    Avatar
    Chris Stambaugh Ctr

    Ahhh... Ok, I think the light bulb has lit in my head... I was looking at changing the current function I never thought of adding another event handler like that. I am going to try that and see how it works.

     

    Thank you 

    Have a great Day

     

  • 0
    Avatar
    Chris Stambaugh Ctr

    Ok, So I have made this work, I looked more into the sensor and got more clarity on how it functions from the manufacturer. I changed the trigger and it functions as desired. The always on or real time data trigger keeps the Presentation on when there is motion, and starts the timer when it stops. 

    Thanks for the input 

    On to the next part! 

     

  • 0
    Avatar
    ^UD\_$

    Excellent!

    Thanks for sharing.

Please sign in to leave a comment.