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

SOLVED WS2801 Lights periodically turn on and off

Discussion in 'Software Support' started by Pulkit Mahajan, 11 June 2020.

  1. Pulkit Mahajan

    Pulkit Mahajan New Member

    Messages:
    3
    Hardware:
    RPi1/Zero
    I am running Hyperion on a Raspberry Pi 0, connected to WS2801 LED light strip. My USB grabber has the UTVF007 chipset.

    I am using Hypercon 1.03.04 and moved the new hyperion-v4l2 to the Pi. I am able to take grabber screenshots, and the LED lights seem to correspond correctly to the image on screen.

    However, the lights keep turning on and off periodically - they never stay on like I've seen in everyone else's builds. I have attached the video in a zip file (since I was not able to find out how to upload it myself, sorry).

    Please let me know if you need the log or config file.
     

    Attached Files:

  2. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    1,890
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino, +nodeMCU/ESP8266
    logs please...
     
  3. Pulkit Mahajan

    Pulkit Mahajan New Member

    Messages:
    3
    Hardware:
    RPi1/Zero
    Code:
    ssh in:     Jun 11 08:59:02 raspberrypi systemd[1]: Started Hyperion Systemd service.
    ssh in:     Jun 11 08:59:03 raspberrypi hyperiond[1766]: Hyperion Ambilight Deamon (1766)
    ssh in:     Jun 11 08:59:03 raspberrypi hyperiond[1766]:         Version   : V1.03.5 (GitHub-66bef6b/fb413cd-1566231780
    ssh in:     Jun 11 08:59:03 raspberrypi hyperiond[1766]:         Build Time: Aug 25 2019 10:39:29
    ssh in:     Jun 11 08:59:03 raspberrypi hyperiond[1766]: INFO: Selected configuration file: /etc/hyperion/hyperion.config.json
    ssh in:     Jun 11 08:59:03 raspberrypi hyperiond[1766]: HYPERION INFO: ColorTransform 'default' => [0; 69]
    ssh in:     Jun 11 08:59:03 raspberrypi hyperiond[1766]: HYPERION INFO: ColorCorrection 'default' => [0; 69]
    ssh in:     Jun 11 08:59:03 raspberrypi hyperiond[1766]: HYPERION INFO: ColorAdjustment 'default' => [0; 69]
    ssh in:     Jun 11 08:59:03 raspberrypi hyperiond[1766]: LEDDEVICE INFO: configuration:
    ssh in:     Jun 11 08:59:03 raspberrypi hyperiond[1766]: {
    ssh in:     Jun 11 08:59:03 raspberrypi hyperiond[1766]:         "colorOrder" : "rbg",
    ssh in:     Jun 11 08:59:03 raspberrypi hyperiond[1766]:         "name" : "MyHyperionConfig",
    ssh in:     Jun 11 08:59:03 raspberrypi hyperiond[1766]:         "output" : "/dev/spidev0.0",
    ssh in:     Jun 11 08:59:03 raspberrypi hyperiond[1766]:         "rate" : 921600,
    ssh in:     Jun 11 08:59:03 raspberrypi hyperiond[1766]:         "type" : "ws2801"
    ssh in:     Jun 11 08:59:03 raspberrypi hyperiond[1766]: }
    ssh in:     Jun 11 08:59:03 raspberrypi hyperiond[1766]: INFO: Creating linear smoothing
    ssh in:     Jun 11 08:59:03 raspberrypi hyperiond[1766]: HYPERION (CS) INFO: Created linear-smoothing(interval_ms=16;settlingTime_ms=200;updateDelay=0
    ssh in:     Jun 11 08:59:03 raspberrypi hyperiond[1766]: EFFECTENGINE INFO: 27 effects loaded from directory /usr/share/hyperion/effects
    ssh in:     Jun 11 08:59:03 raspberrypi hyperiond[1766]: EFFECTENGINE INFO: Initializing Python interpreter
    ssh in:     Jun 11 08:59:03 raspberrypi hyperiond[1766]: INFO: Hyperion started and initialised
    ssh in:     Jun 11 08:59:03 raspberrypi hyperiond[1766]: INFO: Boot sequence 'Rainbow swirl fast' EFFECTENGINE INFO: run effect Rainbow swirl fast on channel 0
    ssh in:     Jun 11 08:59:03 raspberrypi hyperiond[1766]: BLACKBORDER INFO: threshold set to 0 (0)
    ssh in:     Jun 11 08:59:03 raspberrypi hyperiond[1766]: BLACKBORDER INFO: mode:default
    ssh in:     Jun 11 08:59:03 raspberrypi hyperiond[1766]: started
    ssh in:     Jun 11 08:59:03 raspberrypi hyperiond[1766]: INFO: Json server created and started on port 19444
    ssh in:     Jun 11 08:59:03 raspberrypi hyperiond[1766]: INFO: Proto server created and started on port 19445
    ssh in:     Jun 11 08:59:03 raspberrypi hyperiond[1766]: V4L2GRABBER INFO: width=720 height=480
    ssh in:     Jun 11 08:59:03 raspberrypi hyperiond[1766]: V4L2GRABBER INFO: pixel format=YUYV
    ssh in:     Jun 11 08:59:03 raspberrypi hyperiond[1766]: BLACKBORDER INFO: threshold set to 0 (0)
    ssh in:     Jun 11 08:59:03 raspberrypi hyperiond[1766]: BLACKBORDER INFO: mode:default
    ssh in:     Jun 11 08:59:03 raspberrypi hyperiond[1766]: V4L2GRABBER INFO: signal threshold set to: {0,0,0}
    ssh in:     Jun 11 08:59:03 raspberrypi hyperiond[1766]: V4L2GRABBER INFO: started
    ssh in:     Jun 11 08:59:03 raspberrypi hyperiond[1766]: INFO: V4L2 grabber created and started
    ssh in:     Jun 11 08:59:04 raspberrypi hyperiond[1766]: V4L2GRABBER INFO: stopped
    ssh in:     Jun 11 08:59:06 raspberrypi hyperiond[1766]: EFFECTENGINE INFO: effect finished
    ssh in:     Jun 11 08:59:06 raspberrypi hyperiond[1766]: V4L2GRABBER INFO: started
    ssh in:     Jun 11 09:00:57 raspberrypi hyperiond[1766]: BORDER SWITCH REQUIRED!!
    ssh in:     Jun 11 09:00:57 raspberrypi hyperiond[1766]: CURRENT BORDER TYPE: unknown=0 hor.size=0 vert.size=0
    These are the logs. I have also attached the config file.
     

    Attached Files:

  4. mav2010

    mav2010 New Member

    Messages:
    6
    I had the very same problem with a Pi 0. With my Pi 4 everything is great.
    What worked for me: force the resolution of the grabber to 640x480 or lower in Hypercon. With that it was stable for me.
    Apparently the USB bandwidth of the Pi 0 is not large enough for the standard 720x480 resolution.
     
    • Like Like x 2
  5. Pulkit Mahajan

    Pulkit Mahajan New Member

    Messages:
    3
    Hardware:
    RPi1/Zero
    That worked, thank you so much! Just for my own curiosity, how did you find that out / debug the issue?
     
  6. mav2010

    mav2010 New Member

    Messages:
    6
    With a lot of testing and trying. My first assumption was that something is wrong with the power supply. So I tried a variety of powered and non-powered USB hubs and also different OTG adapters. Nothing worked. Then I got a Raspberry Pi 4 and tested with that - worked immediately without touching any settings. I then read through a lot of posts in the different Raspberry boards. And while I read a lot that the Pi Zero per se is fast enough (confirmed by looking at CPU usage), I read the hint about the USB bandwidth in another context. So I tried settings that might lower the amount of data to be transferred by the capture stick. In the end it turned out (that’s now my understanding - might still be wrong) that a change in resolution is actually passed on to the stick and reduces the captured image before it is actually passed on via USB (in contrast to the image reduction settings in Hyperion that in my understanding rather serve to lower the CPU load.