0

GPIO QUESTION SWITCH

Hi

We have a HD1010 and we plan to use it to trigger audio files from some kind of switch.

Question is, we have a mechanical contraption that looks like an elevator and when it reachs a established height it triggers a switch to inform the control device to halt the engine.That switch is pressed and kept pressed for as long as the device stays in that place. Arriving at that spot it should trigger one determined audio file just one time. Is it possible ? In the brightautor theres Press First Touch; question is the button is pressed and kept pressed; will it assume its one single press ou assume are multiple singles press ?

Thanks for support

2 comments

  • 0
    Avatar
    Monica Knutson

    Hi There!

    You may want to use two zones.  One zone can be the listener for the GPIO and the other can have the audio file playback.

    A few questions on the mechanics however...

    • Are you connecting the switch in parallel to the BrightSign (3.3VDC) and your control device?
    • If this is the case, you may want to put in a relay if the voltages are different.
    • What restarts the elevator?  Does it need to be triggered to start after the audio plays?
    • Will the elevator control device also be able to send a signal to the BrightSign GPIO to reset the program?

    Back to the programming:

    First we configure the Audio Zone:

    1. On Zone 1 - let's call it  "Audio" - place your audio file to play and an event listener.  Event Listener should be the initial state. 
    2. Drag a zone message event from the listener to the audio file.  Make the event "Play Audio 1".  
    3. Drag another zone message event from the Audio file state to the Listener state.  Make the event "Reset Audio"
    4. If you have other control elements that are connected to the BrightSign to reset the audio... then they can connect to the GPIO and we can configure this input in the LIstener Zone.

    Next we configure the Listener Zone:

    1. On Zone 2 - "Listener" - place two event listeners.  One we'll call "Wait" - that is the initial state.  One we'll call "Audio Playing". 
    2. Drag a GPIO event (with your GPIO input # from the switch/relay) from Wait to Audio Playing.
    3. Configure the event as Press (First Touch) - Down, and confirm the transition to "Audio Playing" state. 
    4. In the "Advanced" tab on the GPIO event, add a zone message event Send > Zone Message and name it "Play Audio 1".

    Resetting things:  With switch control only:

    1. Drag a second GPIO event (same input #) from Audio Playing back to Wait. 
    2. Configure the second GPIO event as "Up", [because it's already down] and confirm the transition to "Wait" state.
    3. In the "Advanced" tab on the 'Up' GPIO event, add a zone message event Send > Zone Message and call it "Reset Audio".

    OR

    Resetting things:  With other control device input to GPIO:

    1. Drag a second GPIO event (new input # from controller) from Audio Playing back to Wait. 
    2. Configure the second GPIO event as "Down", and confirm the transition to "Wait" state.
    3. In the "Advanced" tab on the 'Up' GPIO event, add a zone message event Send > Zone Message and call it "Reset Audio".

    That should get you rolling in the right direction.  Feel free to follow up with other questions or info.

    Cheers,
    Monica

  • 0
    Avatar
    Monica Knutson

    Side note:  If your switch is tentative, you may want to add in a delay before sending the audio zone message to reset so as not to retrigger it on the way back down.  ;o)

    Cheers,
    Monica

Please sign in to leave a comment.