0

HD1024 serial input from Arduino through USB

Hi.

I have an Arduino DUE that prints on Serial ( Serial.println() ) a number.

I setted up the serial input event on port 1 for trigger the start of a video but nothing happens.

Baud is set on 115200 on boh devices.

What's wrong?

 

6 comments

  • 0
    Avatar
    Monica Knutson

    For troubleshooting, try using Serial.print instead of Serial.println

    https://www.arduino.cc/reference/en/language/functions/communication/serial/print/

    In your case the BrightSign is waiting for an integer, so:

    Serial.print(i, DEC);

     

    Cheers,
    Monica

  • 0
    Avatar
    kronikle

    I tried both Serial.print(i) than Serial.print(i, DEC) but it doesn't work. Neither Serial.println(i, DEC).

     

    Mmh.. what's wrong..

  • 0
    Avatar
    kronikle

    But is it possible to connect Arduino directly to brightsign with the USB cable or I need the adaptor USB/Serial Jack 3.5mm??

     

  • 0
    Avatar
    Monica Knutson

    If you're using Serial input on the BrightSign, you'll need to use the 3.5mm RS232 input.  If you don't have a DB9-3.5mm cable, something like this is what you need:

    https://www.cablestogo.com/product/02445/1.5ft-velocity-db9-female-to-3.5mm-male-adapter-cable

     

    ALTERNATIVES:

    However, if you only have up to eight combinations, you could use the GPIO.  How many sensors do you have?

    As a second alternative for your Arduino, you could also get the Ethernet shield and use UDP commands.

    https://www.arduino.cc/en/Tutorial/UDPSendReceiveString

     

    Cheers,
    Monica

  • 0
    Avatar
    kronikle

    Ok now it's clear!

    Thank you

     

    In the meantime I solved with Ethernet and UDP!

  • 0
    Avatar
    Monica Knutson

    Excellent!   Glad to hear it!

    Good luck with your project.

    Cheers,
    Monica

Please sign in to leave a comment.