Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

GPIO (General Purpose Input/Output) pins allow you to connect devices like buttons or sensors to your BrightSign player to control presentation content. They are unique because they can be configured as either inputs to read signals from external devices or outputs to send power to external devices. For example, they can be used to trigger video playback when a button that is connected to a GPIO pin is pressed, or to perform actions based on temperature or light level sensor triggers connected to GPIO pins to adjust content based on environmental conditions. 

How to Configure GPIO

GPIO pins allow you to trigger content changes on the player based on input, or send advanced commands to change the state of the player GPIO switches and connected devices to on or off. The GPIO pins, which deliver about 3.3v 24mA (HS5, LS5, HD5, XD5 and XT5 players prior to Rev G deliver less than 3.3 volts), are ideal for lights, sensors, or buttons. Seehttps://docs.brightsign.biz/space/DOC/2264432656/Connect+the+Player+GPIO for more information on configuring your player hardware and external devices for GPIO.

...

  1. Define which GPIO pins are used as inputs or outputs. This is set under the Presentation Settings > Connectors menu.

    1. When GPIO is set to input, the connected device should be a contact closure type switch/relay, completing a circuit between the GPIO button pin and Ground, so that when a switch is pressed, something happens.

    2. GPIO ports that are set to output only have digital output.

  2. Set up event triggers to specify what actions should occur when a specific GPIO pin receives a signal. See GPIO Event, and GPIOfor more information.

Example

In this example, we will use BrightAuthor:connected to set up the player to receive input from buttons connected to GPIO ports 0, 1, 2, and 3 and we will issue commands that will turn on LEDs associated with GPIO ports 4, 5, 6, and 7 based on the video states. The main video will play until the user selects any of the three illuminated buttons associated with GPIOs 4, 5, or 6. In that case, the presentation will launch the associated video state, turn off the current LED buttons, and turn on the LED for the button that lets the user return to the main video.

...