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

RPi + OpenELEC Please share with me working scetch

Discussion in 'Software Support' started by Karol, 7 December 2019.

  1. Karol

    Karol New Member

    Messages:
    18
    Hardware:
    32/64bit
    Please help me, no arduino sketch is working for me. Maybe you can send me a checked and working sketch for arduino. I have already tried everyone, from the official website of the hyperion, and with fast led and nothing. Even from the tutorial that is here. And the only thing I get is a led test at the beginning.

    In the arduino is ok everything because the TX flashes all the time as I have set on the videograbber.

    My diodes are WS2812B.

    Thank you!!!!
     
  2. Akriss

    Akriss Active Member

    Messages:
    563
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
  3. Karol

    Karol New Member

    Messages:
    18
    Hardware:
    32/64bit
    Ok thanks.
    It's for mega right?
    And did you changed the "#define LED_PINS 6" to another pin?
     
  4. Akriss

    Akriss Active Member

    Messages:
    563
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
  5. Karol

    Karol New Member

    Messages:
    18
    Hardware:
    32/64bit
    On mega, don't work. Only at nano and uno. But on uno i have flickering diode, not all. And i will try at nano when i buy new one, becouse my old one ja broken.
     
  6. Karol

    Karol New Member

    Messages:
    18
    Hardware:
    32/64bit
    Do you use some capacitor or resistor?
     
  7. Akriss

    Akriss Active Member

    Messages:
    563
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    Yes, if needed.

    Resistor to help with flicker and the capacitor to protect the led's from power surges.

    For reference:
    NeoPixel Fritzing Sketch1.jpg
    R value can swing -/+ 250 ohms
    Cap. value. I use the value in image. It works for me.
     
    • Like Like x 1
  8. mommel

    mommel New Member

    Messages:
    6
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +PhilipsHue, +nodeMCU/ESP8266
    Last edited: 7 December 2019
    • Like Like x 1
  9. Karol

    Karol New Member

    Messages:
    18
    Hardware:
    32/64bit
    Thank you very much, i will try the board from first link, and other nedded files too.
    I will come back when i will finish this little projekt.
    I think it will help.
    You did this project?
     
  10. Karol

    Karol New Member

    Messages:
    18
    Hardware:
    32/64bit
    And do you think i can upload the scetch by Arduino program not from makefile?
     
  11. mommel

    mommel New Member

    Messages:
    6
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +PhilipsHue, +nodeMCU/ESP8266
    • Like Like x 1
  12. Karol

    Karol New Member

    Messages:
    18
    Hardware:
    32/64bit
    Thank you. I will try and let you know about this.
     
  13. Karol

    Karol New Member

    Messages:
    18
    Hardware:
    32/64bit
    But i try at UNO with you config files to board and to hyperion and i have this:

    Of course i change the number of leds and pins to 8 at arduino board.
    You know the reason?
     
  14. mommel

    mommel New Member

    Messages:
    6
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +PhilipsHue, +nodeMCU/ESP8266
    It seems you should swap clockwise <> counterclockwise when creating your hyperion.config.json.
    Please check also:
    The amount of leds in ino and in hyperion.config,json should be the same
    The rest seems to be ok
     
  15. mommel

    mommel New Member

    Messages:
    6
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +PhilipsHue, +nodeMCU/ESP8266
    If can tell me your setup( amount of leds top bottom left right and if clock or counterwise from the picture not the led side) and i can create a json for you
     
  16. Karol

    Karol New Member

    Messages:
    18
    Hardware:
    32/64bit
    Thanks. Here is my setup from Hypercon attached.

    Also i use grabber V4L2 UTV007 Fushicai.
    I can create json from hypercon but in your file, i can say it's another story ;)
    Thank you again :)
     

    Attached Files:

  17. mommel

    mommel New Member

    Messages:
    6
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +PhilipsHue, +nodeMCU/ESP8266
    When you look onto the screen of your tv/monitor, where is your injection point 1,2,3,4 or anywhere else? And does it run with the to the left or right when you just look at the top ledstripe, but remember to look from the front of the tv/monitor. Just have a look at the attached image.
     

    Attached Files:

  18. mommel

    mommel New Member

    Messages:
    6
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +PhilipsHue, +nodeMCU/ESP8266
    If I were you i would do it in iterations. First get hw working, you have passed that as it is showing colors etc. So if your amount of leds in the ino is right you won't need to touch that again. Second use the internal grabber and get the colors and positions matching. And final step activate the v4la and get that done.
     
  19. Karol

    Karol New Member

    Messages:
    18
    Hardware:
    32/64bit
    Thank you very much for your sincere help but I had to abandon the project for personal reasons. Anyway, I've been doing it for 2 months and I spent a lot of money on it. Besides, I think that the grabber is terribly slow to send the image too late.
    I also thank you for your valuable time. You are a really good teacher.