0

how to rotate a still picture acording to a value send through serial?

Hello,

I've got an arduino that send a value between 0 and 360° and I would like to read this value and rotate a still image or a video (from the center of the screen) according to that?

how can I do this?

I thought to do that in HTML5 javascript but I don't know how to read serial data ?

 

 

6 comments

  • 0
    Avatar
    ^UD\_$

    What you may be able to do, if applicable, is to create 360 images, like so:

    0.png

    1.png

    2.png

    ...

    359.png

     

    Each image contains a rotated image, at an angle that corresponds to the file name.

    You would then use the Image Play File state in BA, which accepts a key.

    The arduino can send a key like "15", which would then play 15.png.

    Every time the arduino sends a key that is listed in the Image Play file, the corresponding image would show.

    I hope that helps.

     

     

  • 0
    Avatar
    nahornyj nicolas

    Thanks a lot, this solution look like nice!

    But I don't see how to connect arduino and the XT1143.

    I suppose I can send though serial port but how to build the link between the serial input and the "key"?

    Nico

  • 0
    Avatar
    ^UD\_$

     

    Start here

    http://docs.brightsign.biz/display/DOC/Video+Play+File%2C+Image+Play+File%2C+Audio+Play+File

     

    Use the serial input wildcard <*>

    http://docs.brightsign.biz/display/DOC/Serial+Input

     

    The serial input event, would keep transitioning into the Image Play List.

  • 0
    Avatar
    ^UD\_$

    Any luck there?

  • 0
    Avatar
    nahornyj nicolas

    Hello, Yes I think this will work, I’m also trying with an other media player custom build with a raspberryPi-like board.
    I will update the topic when I get interesting news.

    Nico

  • 0
    Avatar
    ^UD\_$

    Super!

    We like successful closure here.

    It makes our day :)

Please sign in to leave a comment.