1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Hyperion+arduino issues

Discussion in 'Hyperion General' started by Nuno Rosa, 11 December 2016.

  1. Nuno Rosa

    Nuno Rosa New Member

    Messages:
    3
    Hardware:
    RPi3, +Arduino
    Hi,

    I've been struggling to fix the issue with this ambilight system and was hoping you could help with it.

    System:
    RPi3
    Arduino Uno R3
    Hyperion
    Fushicai USBTV007 Video Grabber [EasyCAP]
    HDMI switcher
    Converter from HDMI to AV
    Openelec OS
    WS2812B LEDs (7v) (273 LEDs with leds on the corners)

    The sketch I am using for arduino and the config.json for hyperion are in attachment.
    I tested the grabber and screenshots are being taken correctly.
    I tested the LEDs with the arduino and they are responding as it should.
    Whenever I initialize hyperion the LEDs work which I think is due to the sketch code because if I set up an hyperion boot sequence it does not work. Hyperion logs don't show anything wrong (also in attachment).

    I try to set static colours through hyperion-remote but the LEDs do not respond.
    I know the

    Note: On grabber I am using "device" : "/dev/myframegrabber" instead /dev/video0 which is just a reference and it should be working. Problem is not with the grabber since I can't even trigger static colours through the hyperion-remote.

    I believe if hyperion wasn't really communicating with arduino then it wouldn't trigger the LEDs at the server initialization. Even though I am not sure what is triggering the LEDs on server initialization because hyperion bootsequences does not work.

    If you need anything else to be able to help me with this problem let me know.

    Thank you very much.
     

    Attached Files:

    Last edited: 11 December 2016
  2. penfold42

    penfold42 Moderator Developer

    Messages:
    414
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    Try 272 instead of 273 in the sketch
     
  3. Nuno Rosa

    Nuno Rosa New Member

    Messages:
    3
    Hardware:
    RPi3, +Arduino
    I am using 273 leds. does inputting 273 would make no led to work?

    Just tried with 272 in the sketch and the same behavior. No leds output if I execute the following.

    /storage/hyperion/bin/hyperion-remote.sh --priority 50 --color red --duration 5000
     
    Last edited: 11 December 2016
  4. Nuno Rosa

    Nuno Rosa New Member

    Messages:
    3
    Hardware:
    RPi3, +Arduino
    issue was the fastled sketch. Changed it to neopixel and defined a correct prefix and it worked. thanks.
     
  5. redPanther

    redPanther Moderator Developer

    Messages:
    197
    Hardware:
    RPi1/Zero, RPi2, 32/64bit, +Arduino
    When using arduino it is wise to set delayAfterConnect to 1500. Most arduinos resets when connection/serial port is opend. After that they are in firmware mode. Depending on different things arduinos stay in firmware mode when they receiving constantly data via usb.
    The delay option ensures that the arduino has enough time to boot after connection was opened