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

BUG Hyperion.ng: random flickering because of webcam?

Discussion in 'Bug Reports' started by bigbossfr, 26 April 2019.

  1. bigbossfr

    bigbossfr New Member

    Messages:
    13
    Hardware:
    RPi1/Zero, RPi3, +nodeMCU/ESP8266
    Hi,

    So I built a setup based on Hyperion.ng + ESP32 + Pi Camera:


    Original post here: https://hyperion-project.org/threads/wireless-setup-controlled-by-camera.3267/#post-14295

    The thing is, the leds are not stable: I have some random leds that do some random colors.
    I was thinking that it was a hardware problem, but this is not. When I start the ESP32/leds without the RPI Zero, I have the CONFIG_LED_STANDARD_MODE set to RAINBOW: leds are stables, no flickering at all.

    So this is something that happen with Hyperion.ng.

    1) I am thinking that this is because of the quality of the Pi Camera. Here an image:

    [​IMG]

    As we can see, the image is very grainy. So perhaps this is the grain that give us random flickering.

    2) The original resolution is 640x480. If I set the sizeDecimation to 4, the CPU of the Pi Zero is 80%. If I set to 2, this is 100%. If I set to 1, this is completely crashing the RPI Zero.
    Is it normal?

    3) When I use the effect configurator/custom effects, I set the effect "flag" for example, I have some random flickering. Here this is not using the camera, isn't it? So I guess this is not the camera.

    I have no idea what is wrong.

    I have attached my Hyperion.ng config.

    Thank you
     

    Attached Files:

    Last edited: 26 April 2019
  2. bigbossfr

    bigbossfr New Member

    Messages:
    13
    Hardware:
    RPi1/Zero, RPi3, +nodeMCU/ESP8266
    So, after few tests, I know that this is not a hardware problem but software ( ? ).
    Here a test I did: when I turn off the RPI 0, so the esp32 is connected to nothing and this is showing the default color:
    Here a video:


    As we can see, this is stable.

    When I turn on the RPI0, the esp32 is connected, and I ask Hyperion.ng to show an effect (flag). Here a video:


    This is not stable.
    This is not the webcam also because like I said, this is an effect (flag).

    Any idea what is wrong please?
     
  3. Arakon

    Arakon Member

    Messages:
    137
    Hardware:
    RPi1/Zero, RPi3, +Arduino
    More likely to be a signal issue. Default color is never updated, so it just sticks to that one color settings. Once updates are sent, you get junk data. Try to keep all cables as short as possible and away from power sources.
     
  4. bigbossfr

    bigbossfr New Member

    Messages:
    13
    Hardware:
    RPi1/Zero, RPi3, +nodeMCU/ESP8266
    Cable from ESP32 to leds is 1 foot or less...
     
  5. Arakon

    Arakon Member

    Messages:
    137
    Hardware:
    RPi1/Zero, RPi3, +Arduino
  6. bigbossfr

    bigbossfr New Member

    Messages:
    13
    Hardware:
    RPi1/Zero, RPi3, +nodeMCU/ESP8266
    I tried with a 74AHCT125, and this is worse. Also, this is not explaining why this is flickering only when Hyperion is controlling, and this is stable without Hyperion.
     
  7. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    1,257
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino, +nodeMCU/ESP8266
    just to be right: pi zero w + a camera connected to the pi, is just grabbing and sends its data over wifi to an esp32, right?
     
  8. bigbossfr

    bigbossfr New Member

    Messages:
    13
    Hardware:
    RPi1/Zero, RPi3, +nodeMCU/ESP8266
  9. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    1,257
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino, +nodeMCU/ESP8266
    engine -> you get data and it has to be received processed and then send data to leds
    esp alone -> just send data to leds (less load)

    but i use this on my esps https://github.com/forkineye/ESPixelStick ...amazing peace of software...but with the esp8266...i'm not sure if it works with esp32 too

    may you can give it a try...

    @penfold42 : may you know if espixel works with esp32...
     
  10. bigbossfr

    bigbossfr New Member

    Messages:
    13
    Hardware:
    RPi1/Zero, RPi3, +nodeMCU/ESP8266
  11. bigbossfr

    bigbossfr New Member

    Messages:
    13
    Hardware:
    RPi1/Zero, RPi3, +nodeMCU/ESP8266
    Ok, tested with Hyperion (no Ng), I have the same thing (flickering). Any idea what I can try next please?
     
  12. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    1,257
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino, +nodeMCU/ESP8266
    did you try espixelstick?
     
  13. bigbossfr

    bigbossfr New Member

    Messages:
    13
    Hardware:
    RPi1/Zero, RPi3, +nodeMCU/ESP8266
    Nop, I don't really know where to start..
    I see:

    Pixel Protocols
    • WS2811 / WS2812 / WS2812b
    • GE Color Effects
    I have APA102. I guess it will not work, will it?
     
  14. bigbossfr

    bigbossfr New Member

    Messages:
    13
    Hardware:
    RPi1/Zero, RPi3, +nodeMCU/ESP8266
  15. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    1,257
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino, +nodeMCU/ESP8266
    1.no will not work with apa102....
    2. sorry i dont know the fastled webserver...but sounds like you can just controll it with the built in webinterface...