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

RPi + OSMC Working adalight fails with hyperion

Discussion in 'Hardware Support' started by Nostradani, 9 September 2016.

  1. Nostradani

    Nostradani New Member

    Messages:
    3
    Hardware:
    RPi1/Zero, +Arduino
    First things first:
    About two years ago I built my setup using adalight and Boblight. For that I bought the following:
    https://www.adafruit.com/product/738
    as well as an arduino uno.

    Now I want to revive my setup by using hyperion. I stumbled across the following tutorial:
    https://hyperion-project.org/threads/diy-amblight-project-guide-hyperion-ws2801-ws2812b-apa102.8/

    I basically just used the sketch from the tutorial (see attached).
    I uploaded it to my Arduino and used the "colorswirl" sketch from adalight to verify that it works (using "Processing"). And it does.

    So far so good...

    Now I installed OSMC on my Pi1 as well as Hyperion and all seems well. Of course I create a config using HyperCon (see attached). Now every time I start hyperiond the lights will flash to indicate they can be used (as expected). But then... nothing.

    For testing, I just used the Hyperion Remote App (iOS). I can see that all commands from the app arrive since hyperion logs it:

    Code:
    ...
    EFFECTENGINE INFO: run effect Green mood blobs on channel 0
    BLACKBORDER INFO: threshold set to 0 (0)
    BLACKBORDER INFO: mode:default
    EFFECTENGINE INFO: effect finished
    ...
    
    However the LEDs stay off...
    Currently, I have no idea how to debug this since I get no errors or warnings whatsoever. Hope you guys can help me out.
     

    Attached Files:

  2. iiidefconiii

    iiidefconiii Member

    Messages:
    106
    Hardware:
    32/64bit, +Arduino
    Hi as you have an arduno,

    In my hyperion config for arduino i have
    "output" : "/dev/ttyUSB0",
    and
    "colorOrder" : "grb" = for ws2812b you now have rgb.
    while yours is AMA0, im not sure but double check if AMA0 is correct.

    btw why not get rid of arduino and directly connect to rpi?

    let us know how it went, im not a pro just trying to help

    if all works out note that with arduino, install hyperion kodi app
     
    Last edited: 9 September 2016
  3. Nostradani

    Nostradani New Member

    Messages:
    3
    Hardware:
    RPi1/Zero, +Arduino
    Hi iiidefconiii,

    Thanks for the reply!
    I actually use /dev/ttyACM0 (My mistake, AMA0 was just my latest test, but didn't work either, just like USB0). I'm pretty sure this is also correct since only with ACM0 I get the flashing in red, green, blue when starting hyperiond. (I also used ACM0 in my formerly working boblight setup).

    I also tried hyperion-remote -c red while running hyperiond, but again no effect (though hyperiond logs it).

    As for the color order: According to my sketch, RGB should be correct. Even if not, this should then result in wrong colors, but at the moment, I get no colors at all...

    The reason why I do not get rid of the Arduino is that I integrated the arduino (as well as the LEDs) within the casing of my TV. Only the USB cable and the power connector are accessible at the moment. So I would rather keep it...
     
  4. iiidefconiii

    iiidefconiii Member

    Messages:
    106
    Hardware:
    32/64bit, +Arduino
    Sorry seems.you know things better then me xd
     
  5. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    1,972
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino, +nodeMCU/ESP8266
    You have no grabber active...
    // NO V4L2 GRABBER CONFIG
    ...
    // NO FRAME GRABBER CONFIG
    // NO KODI CHECK CONFIG

    after the start effect the pi has "nothing to do", you have to configure a grabber for osmc you need the kodi cchecker
     
  6. iiidefconiii

    iiidefconiii Member

    Messages:
    106
    Hardware:
    32/64bit, +Arduino
    yes that is ok, but the hyperion-remote -c red should work without the grabber right? and it doesnt work for him, is the led grounded ok? and which power adapter are you using.
     
  7. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    1,972
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino, +nodeMCU/ESP8266
     
  8. Nostradani

    Nostradani New Member

    Messages:
    3
    Hardware:
    RPi1/Zero, +Arduino
    Alright, by coincidence I seem to have found the issue. I stumbled upon an old boblight.conf file and found the following entry:
    Code:
    rate            115200
    So I gave it a try and set the baud rate to 115200 and it worked!

    I think this is really weird, since the sketch running on my Arduino defines a rate of 125000...

    Can someone explain this? I'd rather increase the rate in the future but apparently there seems to be some kind of trick..
     
  9. iiidefconiii

    iiidefconiii Member

    Messages:
    106
    Hardware:
    32/64bit, +Arduino
    try 1 million, just be sure both hyperion.conf.json and sketch has the same valeue