Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 25 Next »

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 read temperature or light levels from sensors 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.5 volts, are ideal for lights, sensors, or buttons. See https://docs.brightsign.biz/space/DOC/2264432656/Connect+the+Player+GPIO for more information on configuring your player hardware and external devices for GPIO.

To use GPIO functionality in BrightAuthor:connected:

  1. Define which GPIO pins are used as inputs or outputs. GPIO events can be set to input or output under the Presentation Settings > Connectors menu. When GPIO is set to input, those items can be set as contact closure so that when a switch is pressed, something happens.

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

Example

In this example, we will associate GPIO ports 1, 2, and 3 with switches connected to the GPIO output of ports 4, 5, and 6. Then the presentation can play the videos associated with each port when the switch is set to On (and turn the videos off when the port is set to Off).

Image1b.png
  1. Create a presentation with four videos, one main presentation and three secondary presentations (named “A”, “B”, and “C” in Image 1, above)

  2. Set GPIO pins 0-4 to Input and 4-7 to Output as shown in the image.

  3. Under the Events toolbar, select GPIO 0.

  4. Connect the GPIO 0 icon to the main content and then to the “A” content. Do the same to connect GPIO 1 to the main content and the “B” content, and GPIO 2 to the main content and “C” content.

  5. Select the “A”, “B”, and “C” content in the sandbox and connect the GPIO 3 icon to all of them and then to the main content.

  6. Select the main content. In the State Properties pane on the right, add a GPIO command and set the Command Parameters to On and 4. Do the same for GPIO ports 5 and 6 as shown in Image 2, below

  7. Now you need to set the Off command for the “A”, “B”, and “C” content. Select the “A” content and create GPIO commands as you did in the previous step, but now set the to Off.

Image2.png

  • No labels