[DIY] Amblight project/guide - Hyperion - WS2801/ WS2812B / APA102 (4 Viewers)

Freshage

Portal Member
March 16, 2016
21
2
36
Home Country
United Kingdom United Kingdom
Running 204 LED's, should I increase the baud rate to 146,880? Going off 204 * 24 (bits) * 30 (fps)?

Not sure if there will be any benefit, just triple checking my notes from our conversation before heading home and getting stuck in.

Actually, let's assume 60fps as I'll also be gaming... So will have to go as high as 293,760... Almost triple the standard.
 

Rick164

MP Donator
  • Premium Supporter
  • January 7, 2006
    1,335
    1,006
    Home Country
    Netherlands Netherlands
    Yeah but would raise it to 460,800 to give you some headroom or for future expansions as the Uno R3 allows that and used to drive 218 leds perfectly @ 60 fps using that rate :)

    You might need to tweak the RPi max baud rate setting but have the required steps for that listed in the Additional configuration chapter.
     

    Freshage

    Portal Member
    March 16, 2016
    21
    2
    36
    Home Country
    United Kingdom United Kingdom
    Dude, you've worked magic! It's amazing. Perfect. Thank you.

    One thing, black border protection doesn't seem to work...

    "blackborderdetector" :
    {
    "enable" : true,
    "threshold" : 0.5,
    "unknownFrameCnt" : 600,
    "borderFrameCnt" : 50,
    "maxInconsistentCnt" : 10,
    "blurRemoveCnt" : 1,
    "mode" : "default"
     

    Rick164

    MP Donator
  • Premium Supporter
  • January 7, 2006
    1,335
    1,006
    Home Country
    Netherlands Netherlands
    Good to hear :D
    Noticed that the threshold there is set pretty high, would use the following settings:

    Code:
      "blackborderdetector" :
       {
         "enable" : true,
         "threshold" : 0.01,
         "unknownFrameCnt" : 600,
         "borderFrameCnt" : 50,
         "maxInconsistentCnt" : 10,
         "blurRemoveCnt" : 1,
         "mode" : "default"
       },

    Also you can also change the "mode" there from default to classic to use the original black border detection in case something is going wrong but would try to keep the default as it's more accurate.
    If all else fails best to check if the screenshot output from hyperion-v4l2 shows no borders as well to make sure the crop settings are correct.

    Couple of screenshots that show the black border modes:

    Source:
    https://github.com/tvdzwan/hyperion/pull/470#issue-128985782

    771e8a48-c824-11e5-8a8b-cd2e32f0c342.jpg
     
    Last edited:

    Freshage

    Portal Member
    March 16, 2016
    21
    2
    36
    Home Country
    United Kingdom United Kingdom
    Again, thanks mate.

    Final question hopefully. I can't for the life of me work out how to have Hyperion start the video grabber config from startup... As in, I have to SSH into the Pi to launch the config to get the ambilight to work every time. Anyway around this?

    Also, that border config above didn't work... I've had to do this:

    "blackborderdetector" :
    {
    "enable" : true,
    "threshold" : 0.1
    },
     
    Last edited:

    Rick164

    MP Donator
  • Premium Supporter
  • January 7, 2006
    1,335
    1,006
    Home Country
    Netherlands Netherlands
    With OpenElec you should be to run this command and it will remain running in the background:

    Code:
    /storage/hyperion/bin/hyperiond.sh /storage/.config/hyperion.config.json </dev/null >/dev/null 2>&1 &

    On Raspberry reboot it should start its own so this only needed when tweaking things :)
     

    Freshage

    Portal Member
    March 16, 2016
    21
    2
    36
    Home Country
    United Kingdom United Kingdom
    I'm on OpenElec.

    The command you've supplied is the one I'm running, but as soon as I crash out the SSH connection, the Ambilight freezes up...
     

    Rick164

    MP Donator
  • Premium Supporter
  • January 7, 2006
    1,335
    1,006
    Home Country
    Netherlands Netherlands
    Hmm that's weird, if you reboot the Raspberry does it start correctly?
     

    Freshage

    Portal Member
    March 16, 2016
    21
    2
    36
    Home Country
    United Kingdom United Kingdom
    Yep, ignore me haha. No worries :)

    All seems to be good then! I'm now just tweaking to get reds, greens and blues as best I can.
     

    Users who are viewing this thread

    Top Bottom