0

Arduino to BrightSign HD222 via GPIO

Hello there,

I need to connect an Arduino to a BS HD222 via GPIO, could you please recommend a suitable connector? I have seen HMS Electronics have many and I don't know which one I would need. I am only trying to send a low signal so that the BS can play a video.

Many thanks for letting me know.

Best wishes

MM

18 comments

  • 0
    Avatar
    ^UD\_$

    Marcus,

     

    This document may help.

    https://jmgs.jp/products/media_player/pdf/Hardware_Manual_HD2.pdf

     

    If you have an open collector, or opto-isolated type of interface on your arduino, you could get it done with as much as a single resistor.

    If you have network hardware on the arduino, you could send UDP to the player.

    or

    BS-4OPTO-5V (4 Isolated Inputs)

     

  • 0
    Avatar
    Marcus Smith

    HI,

    Thanks for the quick reply.

    I thought about using the Ethernet connection, but the BS will be talking to other BS players in line.

    I just bought the BS-4OPTO-5V.

    On a different note, I am planning to connect the Arduino to a Logic level Converter, in order to step down the current from 5V to 3.3V.

    By using a resistor, do you mean I could simply plus a resistor inside the hole of the female GPIO adapter on the back of the BS player?

    Many thanks for the help

    Best wishes

     

    MM

     

  • 0
    Avatar
    ^UD\_$

    I thought of using a resistor as pull up, but I'm not familiar with the logics output of the arduino, so with that said...

    If network is an option, then you should go with that.

    If planned correctly, the arduino should not conflict with other players.

    When you send a UDP command, it can be addressed to the player's IP address, or host name, that needs to respond by playing the video.

    You can also broadcast a UDP message, that all players would receive, but only one player would do something with that message. The rest of players would simply ignore the UDP message.

  • 0
    Avatar
    Marcus Smith

    Thank you, I would prefer to use the network UDP message indeed, it would make everything much easier, but I will also be using the Arduino to constantly talk via serial to a MacMini, and I won't be able to access it once at destination in order to setup access to network etc.

    So, I bought the BS40-4OPTO-5V, am I right saying that I can send a 5v signal from the Arduino (pin low from high) to one of the BS40-4OPTO-5V inputs and access the GPIO (BrightSign HD222 plays a video in loop)?

    The reason why I am asking is because I had experience of controlling other BrightSign players through GPIO (the XD230) using a Level Converter, in order to transform the signal from 5v to 3v and access the back of the BrightSign through a simple GPIO terminal block adapter.

    Many thanks for your help

    Bst wishes

     

    MM

  • 0
    Avatar
    ^UD\_$

    5v seems like what the device was designed for.

    See schematics

    http://www.hms-electronics.com/BrightSign/pdf_files/HD_4OPTO_S.pdf

     

    The Arduino would basically need to activate an LED inside the opto coupler.

    The logics voltage level, would determine the choice of resistors R1-R4

    By use of an opto isolator, you protect the player from being exposed to wrong voltage. The Arduino's output is converted to light, which activate the change in logic state on the player's side of the isolator. Too much light would not harm the player...

    I hope that is clearer 

     

  • 0
    Avatar
    Marcus Smith

    Hi, Thanks a lot for confirming this!

    As I am building the circuit and I won't have the BrightSign to test it, I get easily confused :)

    If the Arduino needs to activate an LED inside the opto coupler, I will have to send a 'high' signal?

    Also, in terms of connection and by looking at the schematics, I have the +V and 0V for each of the 4 inputs.
    Should I only connect my 'high' (5V) signal to the +V?

    Many thanks of the continuous help and patience

     

     

  • 0
    Avatar
    ^UD\_$

    If the Arduino needs to activate an LED inside the opto coupler, I will have to send a 'high' signal?

    High would act as a button push, if a normally opened pushbutton was directly wired to the GPIO port.

     

    Also, in terms of connection and by looking at the schematics, I have the +V and 0V for each of the 4 inputs.
    Should I only connect my 'high' (5V) signal to the +V?

    Yes, but you must use two wires from the Arduino. The 0v connects to the Arduino's logic ground.

     

     

  • 0
    Avatar
    Marcus Smith

    Thanks1
    That's great to hear, I will write the code accordingly.
    And will also connect the ground to the 0V, makes perfect sense.

    One last bit, because the Arduino will act as a push button to let the BrightSign play the video, if I want to access Pin 7 (which according to the schematics is button 1 Input/Output and use it as Input) which of the 4 inputs from the BS40-4OPTO-5V should I use?
    Would that be Input 1?

  • 0
    Avatar
    ^UD\_$

    The schematics is showing that Button1 (pin 7) corresponds to input 2.

    BS-4OPTO-5V Pin 3 -> Arduino Ground

    BS-4OPTO-5V Pin 4 -> Arduino output 

     

    Notice that BrightSign's IO first input is 0, while the BS-4OPTO-5V  IO numbering starts at 1.

     

     

  • 0
    Avatar
    Marcus Smith

    Great help!
    Thanks for making it crystal clear!

     

  • 0
    Avatar
    ^UD\_$

    With pleasure :)

  • 0
    Avatar
    Marcus Smith

    Hi there,
    Just a quick update.

    I noticed the BS-4OPTO-5V connector has some little parts, looking like tiny LEDs.
    If they actually are, do they need to light up when the Arduino is sending a HIGH signal? (5V)
    I am just testing the connector and at present I have connected the wires as suggested from the previous conversations we had, the output of the Arduino is connected to V+ and the Ground to 0V, the output is sending 5V, but no LED is blinking.
    The reason I am asking is because other relays I normally use at studio have LEDs that blink or light up when the is current and was wondering if the BS-4OPTO-5v needs to be connected to any power source in order to work.

    Many thanks for your help and time

    MM

  • 0
    Avatar
    ^UD\_$

    I think what you are looking at are the resistors R1-R4.

    But most importantly, is the player responding to the Arduino signal?

  • 0
    Avatar
    Marcus Smith

    It works! 
    Thanks a lot for your help!!!!

     

  • 0
    Avatar
    ^UD\_$

    With pleasure.

    Well done!

  • 0
    Avatar
    Alfonso Descalzo

    Just for you to know.

    Is possible to use some Arduinos with BrightSign via USB as an USB Keyboard, just sending a character  (or a string using the USB Input Event) when a button is pressed

    https://www.arduino.cc/reference/en/language/functions/usb/keyboard/

    And with some GPIO expander boards you can have lot of buttons

    https://www.sparkfun.com/products/11723

    Tested and working

     

  • 0
    Avatar
    krt

    Hi!

    "Is possible to use some Arduinos with BrightSign via USB as an USB Keyboard"

    Is it possible to use Brightsign as keyboard?

    I mean to connect arduino to player via USB and send commands from player to arduino?

    In this case, what does the code should look like?

  • 0
    Avatar
    Alfonso Descalzo

    As I know, there´s not a keyboard out action in BrightSign.

    Is easier using Arduino via serial port (USB) and you could send and recieve commands.

    You need to setup the BS serial port 1 to work this way

     

Please sign in to leave a comment.