Another newbie that seeks help after following youtube tutorial

  • Hi all,


    I have been checking out some video's on youtube for some years trying to build my own ambilight, the philips ambilight tv's have only 1 thing thats really good on them.... the ambilight! I checked out the video by steve does stuff and figured out that this was an easy enough build for me to do.


    Parts: Pi 0w, WS2812B strip, power supply of 10 A, HDMI splitter, HDMI to usb vid. capture, and Arduino nano.


    I followed the the tutorial and ended up getting the pi setup to work completely. I can see the live image of the HDMI in the live view but the LED's dont respond. In the beginning the first2 leds showed white and the 3rd green. Every other off. After restarting the pi and the arduino they light up in the beginning . It shows Blue red green and then off.


    Does anyone have a clue to what i could do differently to get the setup working ?


    Link to video :

    Externer Inhalt www.youtube.com
    Inhalte von externen Seiten werden ohne Ihre Zustimmung nicht automatisch geladen und angezeigt.
    Durch die Aktivierung der externen Inhalte erklären Sie sich damit einverstanden, dass personenbezogene Daten an Drittplattformen übermittelt werden. Mehr Informationen dazu haben wir in unserer Datenschutzerklärung zur Verfügung gestellt.


    Thanks a lot for helping :):) (this project as been sitting on the shelf for 2 months now out of frustration ;( )


    Jen

  • hi,



    first i would suggest to put your Hyperionlog here> go to log> debug and post it here.

    you can only see everything in expert mode> top right of WebUI > change the wand to expert.



    and post the log here.

    if there's flaws there... follow below


    second; take out the arduino and test your ledstrip without it on Hyperion.NG

    connect the strip DIRECTLY to GPIO 18 ( PIN 12)

    ledcontroller settings to


    • dma 5 ( or 10)
    • GPIO18
    • ws281x


    in config.txt on boot file SD card, put there the line dtparam=audio=off

  • 2021-06-24T15:20:46.903Z [hyperiond DAEMON] (INFO) CEC handler created 2021-06-24T15:20:46.983Z [hyperiond EFFECTFILES] (INFO) 39 effects loaded from directory :/effects/ 2021-06-24T15:20:47.007Z [hyperiond EFFECTFILES] (INFO) 22 effect schemas loaded from directory :/effects/schema/ 2021-06-24T15:20:47.015Z [hyperiond EFFECTFILES] (INFO) 0 effects loaded from directory /.hyperion/custom-effects 2021-06-24T15:20:47.247Z [hyperiond SETTINGSMGR] (DEBUG) (SettingsManager.cpp:109:SettingsManager()) Settings database initialized 2021-06-24T15:20:47.262Z [hyperiond BLACKBORDER] (DEBUG) (BlackBorderProcessor.cpp:64:handleSettingsUpdate()) Set mode to: default 2021-06-24T15:20:47.265Z [hyperiond COMPONENTREG] (DEBUG) (ComponentRegister.cpp:36:setNewComponentState()) Blackborder detector: enabled 2021-06-24T15:20:47.325Z [hyperiond DAEMON] (INFO) set screen capture device to 'dispmanx' 2021-06-24T15:20:47.328Z [hyperiond DISPMANXGRABBER] (DEBUG) (Grabber.cpp:30:setVideoMode()) Set videomode to 0 2021-06-24T15:20:47.344Z [hyperiond DISPMANXGRABBER] (INFO) Display opened with resolution: 640x480 2021-06-24T15:20:47.352Z [hyperiond DISPMANXGRABBER] (DEBUG) (Grabber.cpp:90:setWidthHeight()) Set new width: 80, height: 45 for capture 2021-06-24T15:20:47.358Z [hyperiond DAEMON] (INFO) DISPMANX frame grabber created 2021-06-24T15:20:47.379Z [hyperiond V4L2:/DEV/VIDEO0] (DEBUG) (Grabber.cpp:30:setVideoMode()) Set videomode to 0 2021-06-24T15:20:47.681Z [hyperiond V4L2:/DEV/VIDEO0] (INFO) Signal threshold set to: {12, 12, 12} 2021-06-24T15:20:47.689Z [hyperiond V4L2:/DEV/VIDEO0] (INFO) CEC detection is now disabled 2021-06-24T15:20:47.691Z [hyperiond V4L2:/DEV/VIDEO0] (INFO) Signal detection is now disabled 2021-06-24T15:20:47.694Z [hyperiond V4L2:/DEV/VIDEO0] (INFO) Signal detection area set to: 0.250000,0.250000 x 0.750000,0.750000 2021-06-24T15:20:47.696Z [hyperiond DAEMON] (DEBUG) (hyperiond.cpp:630:handleSettingsUpdate()) V4L2 grabber created 2021-06-24T15:20:47.700Z [hyperiond JSONSERVER] (DEBUG) (JsonServer.cpp:28:JsonServer()) Created instance 2021-06-24T15:20:47.712Z [hyperiond JSONSERVER] (INFO) Started on port 19444 2021-06-24T15:20:47.343Z [hyperiond LEDDEVICE] (INFO) Start LedDevice 'ws281x'. 2021-06-24T15:20:47.348Z [hyperiond LEDDEVICE] (DEBUG) (LedDevice.cpp:148:init()) deviceConfig:

  • [{"colorOrder":"rgb","currentLedCount":117,"dma":5,"gpio":18,"hardwareLedCount":1,"invert":false,"latchTime":0,"leds":256,"pwmchannel":0,"rewriteTime":1000,"rgbw":false,"type":"ws281x","whiteAlgorithm":"subtract_minimum"}] 2021-06-24T15:20:47.358Z [hyperiond LEDDEVICE] (DEBUG) (LedDevice.cpp:407:setLatchTime()) LatchTime updated to 0ms 2021-06-24T15:20:47.338Z [hyperiond COMPONENTREG] (DEBUG) (ComponentRegister.cpp:36:setNewComponentState()) Smoothing: enabled 2021-06-24T15:20:47.364Z [hyperiond SMOOTHING] (DEBUG) (LinearColorSmoothing.cpp:701:selectConfig()) cfg [0]: Type: linear - Time: 200 ms, outputRate 25.000000 Hz, interpolationRate: 25.000000 Hz, timer: 40 ms, Dithering: 0, Decay: 1.000000 -> HalfTime: 100.000000 ms 2021-06-24T15:20:47.361Z [hyperiond LEDDEVICE] (DEBUG) (LedDevice.cpp:428:setRewriteTime()) Refresh interval = 1000ms 2021-06-24T15:20:47.376Z [hyperiond LEDDEVICE] (DEBUG) (LedDevice.cpp:434:setRewriteTime()) RewriteTime updated to 1000ms 2021-06-24T15:20:47.380Z [hyperiond LEDDEVICE] (DEBUG) (LedDeviceWS281x.cpp:59:init()) ws281x strip type : 1050624 2021-06-24T15:20:47.506Z [hyperiond SMOOTHING] (DEBUG) (LinearColorSmoothing.cpp:701:selectConfig()) Previous line repeats 1 times 2021-06-24T15:20:47.509Z [hyperiond FLATBUFCONN] (INFO) Connecting to Hyperion: 127.0.0.1:19401 2021-06-24T15:20:47.532Z [hyperiond EFFECTENGINE] (INFO) Run effect "Rainbow swirl fast" on channel 0 2021-06-24T15:20:47.599Z [hyperiond EFFECTENGINE] (DEBUG) (EffectEngine.cpp:183:runEffectScript()) Start the effect: name [Rainbow swirl fast], smoothCfg [2] 2021-06-24T15:20:47.601Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:161:registerInput()) Register new input 'System/EFFECT' with priority 0 as inactive 2021-06-24T15:20:47.604Z [hyperiond HYPERION] (INFO) Initial foreground effect 'Rainbow swirl fast' started 2021-06-24T15:20:47.610Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:161:registerInput()) Register new input 'System/V4L' with priority 240 as inactive 2021-06-24T15:20:47.619Z [hyperiond COMPONENTREG] (DEBUG) (ComponentRegister.cpp:36:setNewComponentState()) V4L capture device: enabled 2021-06-24T15:20:47.924Z [hyperiond V4L2:/DEV/VIDEO0] (INFO) configured v4l device: /dev/video0 2021-06-24T15:20:47.947Z [hyperiond V4L2:/DEV/VIDEO0] (DEBUG) (V4L2Grabber.cpp:582:init_device()) Set device input to: Camera 1 2021-06-24T15:20:47.957Z [hyperiond V4L2:/DEV/VIDEO0] (DEBUG) (V4L2Grabber.cpp:696:init_device()) Set resolution to width=1920 height=1080 2021-06-24T15:20:47.968Z [hyperiond V4L2:/DEV/VIDEO0] (DEBUG) (V4L2Grabber.cpp:713:init_device()) Set framerate to 5 fps 2021-06-24T15:20:47.975Z [hyperiond V4L2:/DEV/VIDEO0] (DEBUG) (V4L2Grabber.cpp:735:init_device()) Pixel format=YUYV 2021-06-24T15:20:48.058Z [hyperiond V4L2:/DEV/VIDEO0] (INFO) Started 2021-06-24T15:20:48.065Z [hyperiond V4L2:/dev/video0] (DEBUG) (GrabberWrapper.cpp:48:start()) Grabber start() 2021-06-24T15:20:47.623Z [hyperiond BOBLIGHT] (DEBUG) (BoblightServer.cpp:28:BoblightServer()) Instance created 2021-06-24T15:20:48.081Z [hyperiond HYPERION] (INFO) Hyperion instance 'First LED Hardware instance' has been started 2021-06-24T15:20:47.626Z [hyperiond COMPONENTREG] (DEBUG) (ComponentRegister.cpp:36:setNewComponentState()) LED device: enabled 2021-06-24T15:20:47.793Z [hyperiond FLATBUFSERVER] (INFO) Started on port 19400 2021-06-24T15:20:47.811Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:33:initServer()) Initialize Webserver 2021-06-24T15:20:47.800Z [hyperiond PROTOSERVER] (INFO) Started on port 19445 2021-06-24T15:20:47.819Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:33:initServer()) Initialize Webserver 2021-06-24T15:20:47.864Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:351:setCurrentTime()) Set visible priority to 0 2021-06-24T15:20:47.867Z [hyperiond SMOOTHING] (DEBUG) (LinearColorSmoothing.cpp:701:selectConfig()) cfg [2]: Type: linear - Time: 200 ms, outputRate 25.000000 Hz, interpolationRate: 25.000000 Hz, timer: 40 ms, Dithering: 0, Decay: 1.000000 -> HalfTime: 100.000000 ms 2021-06-24T15:20:47.870Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:559:handlePriorityChangedLedDevice()) priority[0], previousPriority[255] 2021-06-24T15:20:47.879Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:569:handlePriorityChangedLedDevice()) new source available -> switch LED-Device on 2021-06-24T15:20:48.366Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:91:handleSettingsUpdate()) Apply Webserver settings 2021-06-24T15:20:48.370Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:91:handleSettingsUpdate()) Apply Webserver settings 2021-06-24T15:20:48.377Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:109:handleSettingsUpdate()) Set document root to: :/webconfig 2021-06-24T15:20:48.370Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:109:handleSettingsUpdate()) Set document root to: :/webconfig 2021-06-24T15:20:48.386Z [hyperiond WEBSERVER] (INFO) Started on port 8090 name 'Hyperion Webserver' 2021-06-24T15:20:48.745Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:251:setInputImage()) Priority 240 is now active 2021-06-24T15:20:50.375Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:251:setInputImage()) Priority 0 is now active 2021-06-24T15:20:51.259Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:315:setCurrentTime()) Timeout clear for priority 0 2021-06-24T15:20:51.263Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:351:setCurrentTime()) Set visible priority to 0 2021-06-24T15:20:51.272Z [hyperiond SMOOTHING] (DEBUG) (LinearColorSmoothing.cpp:701:selectConfig()) cfg [0]: Type: linear - Time: 200 ms, outputRate 25.000000 Hz, interpolationRate: 25.000000 Hz, timer: 40 ms, Dithering: 0, Decay: 1.000000 -> HalfTime: 100.000000 ms 2021-06-24T15:20:51.275Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:559:handlePriorityChangedLedDevice()) priority[0], previousPriority[0] 2021-06-24T15:20:51.356Z [hyperiond WEBSOCKET] (DEBUG) (WebSocketClient.cpp:30:WebSocketClient()) New connection from ::ffff:192.168.68.111 2021-06-24T15:20:51.369Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:81:handleInstanceSwitch()) Client '::ffff:192.168.68.111' switch to Hyperion instance 0 2021-06-24T15:20:51.509Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:351:setCurrentTime()) Set visible priority to 240 2021-06-24T15:20:51.528Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:559:handlePriorityChangedLedDevice()) priority[240], previousPriority[0] 2021-06-24T15:20:53.308Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:175:handleSettingsUpdate()) Setup SSL certificate 2021-06-24T15:20:53.336Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:191:handleSettingsUpdate()) Setup private SSL key 2021-06-24T15:20:53.344Z [hyperiond WEBSERVER] (INFO) Started on port 8092 name 'Hyperion Webserver' 2021-06-24T15:35:34.457Z [hyperiond LEDDEVICE] (INFO) Stopped LedDevice 'ws281x' 2021-06-24T15:35:34.469Z [hyperiond COMPONENTREG] (DEBUG) (ComponentRegister.cpp:36:setNewComponentState()) LED device: disabled 2021-06-24T15:35:34.481Z [hyperiond LEDDEVICE] (INFO) Start LedDevice 'ws281x'. 2021-06-24T15:35:34.490Z [hyperiond LEDDEVICE] (DEBUG) (LedDevice.cpp:148:init()) deviceConfig: [{"colorOrder":"rgb","currentLedCount":117,"dma":5,"gpio":18,"hardwareLedCount":117,"invert":false,"latchTime":0,"leds":256,"pwmchannel":0,"rewriteTime":1000,"rgbw":false,"type":"ws281x","whiteAlgorithm":"subtract_minimum"}] 2021-06-24T15:35:34.496Z [hyperiond LEDDEVICE] (DEBUG) (LedDevice.cpp:407:setLatchTime()) LatchTime updated to 0ms 2021-06-24T15:35:34.499Z [hyperiond LEDDEVICE] (DEBUG) (LedDevice.cpp:428:setRewriteTime()) Refresh interval = 1000ms 2021-06-24T15:35:34.506Z [hyperiond LEDDEVICE] (DEBUG) (LedDevice.cpp:434:setRewriteTime()) RewriteTime updated to 1000ms 2021-06-24T15:35:34.518Z [hyperiond LEDDEVICE] (DEBUG) (LedDeviceWS281x.cpp:59:init()) ws281x strip type : 1050624 2021-06-24T15:35:34.531Z [hyperiond COMPONENTREG] (DEBUG) (ComponentRegister.cpp:36:setNewComponentState()) LED device: enabled 2021-06-24T15:35:44.617Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:1054:handleLoggingCommand()) log streaming activated for client ::ffff:192.168.68.111

  • the strip only flickers red in some places now, i set the sounds to off in the bootloader, connected LEDstrip data to GPIO18 and made a common ground with the pi and the strip.

  • no faults in the debug, everything runs.


    • so probably first ledstrip needs to power from BOTH sides, GnD and VCC
    • measure PSU > under load no more than 5 volts DC
    • make sure Hyperion runs as root for PWM controller ( i give you props below)
    • measure ledstrip with continuity


    to run Hyperion.NG as root for basics,


    you can do a few things to do this.



    first is dtparam=audio=off in config.txt boot section.


    if that doesn't work> in terminal of raspi;

    sudo systemctl disable --now hyperiond@pi

    sudo systemctl enable --now hyperiond@root

    sudo reboot now

    copy and paste this code line with ctrl/shift +V in terminal then press enter




    or


    sudo nano /etc/systemd/system/hyperiond@.service


    Remove the User sessionline and save with CTRL+O and exit CTRL+x.

    Don't forget to reboot

  • Ambientheater77 Thank you for the support! I would like to appologise for the long pause in my reply. We had a baby Boy in the meanwhile so the project got put on hold. Last weekend I rebuilt the project and I found that a few connections were'nt great. I resoldered the whole thing and presto, the strip lit up and it works great! So i suppose it was a connection that causes the weird lighting problem. The HDMI switch gets powered by my google chromecast so it does'nt need power. And I power the Pi from the same 5v power connection I power the LED strip with (also creates common ground).


    I dont know if you can answer this question, why would people use the arduino if we can hook ik up straight to GPiO 18 ?

    Also , do you now if i can use the strip in this configuration as a backlight for my tv (when I turn the Pi/strip on it will display one single colour until video feed begins)?


    Thanks again !

  • its found at Image Processing >>



    You can alter the brightsetting there :) >> note; only works when (USB) grabber is enabled.


    The arduino is used for more reasons, NodeMCU esp you can use for Wled >> tranfers over wIFI to ledstrip

    i don't have a arduino so don't have more examples


    and congratulations!

  • I'm running into a similar instance where my LED's are not lighting up since I upgraded to the latest available version.


    Code
    2021-10-12T19:30:24.497Z [hyperiond LEDDEVICE] (ERROR) Device disabled, device 'ws281x' signals error: 'Hyperion must run with "root" privileges for this device. Current user is: "pi"'


    I know that I need to change the permissions, but for the life of me, I can't figure out where. I'm not running Hyperbrian, as I have a few other services also running on my pi.


    I believe that I need to get to the config.txt file, but i'm not sure what's the pathway to get there.

  • I was going to edit my comment, but I think it's locked now. I have been able to make the changes. For some reason the services for me is listed as hyperion.service - no D.


    This might help someone else too.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!