Change colourOrder halfway through device

  • I have extended my Hyperion system to a book shelf next to my TV, video below. (All WS2801 LED strips)


    https://drive.google.com/open?…hmhZ-DmLv9cXB0dHQtTnE3Y2M


    The issue I am having is that the new LED Strip has a colourOrder of "RBG" and the old one is "RGB". So when these are linked together, the blue and green will never be the same.


    I have been trawling the forums and wikis for a long old time, I am more of a hardware hacker but am familiar with coding the hyperion config json files as I have written new arrays for the new LEDs.


    is there any way that I can apply "RBG" only to LEDs over 105? and keep "RGB" to all numbers under 105?


    otherwise I have to get another strip and go through installation all over again. costly pain!


    Another alternative that I have thought about (but don't now exactly how to execute) is to create arduino adalight system and another hyperion server out of the USB port? will this work?


    Any help appreciated.

  • Greetings,
    currently it is impossible to mix up the rgb byte order with "one" device.


    You could use a arduino
    Step 4 is a sketch https://hyperion-project.org/t…-ws2801-ws2812b-apa102.8/


    Use the Hyperion forwarder to push the grabbed pictures to a second hyperion instance (the arduino instance) (the usage of the forwarder (setting it up) will be improved with the next hyperion version)
    https://hyperion-project.org/w…trolling-Multiple-Devices


    Setting it up may need some time, but it is doable.

  • What about reading the values from the SPI line with an arduino, and spitting them back out with the G and B values reversed?


    Do you think that could work?

  • OK thanks, I just wish sellers of these strips would list the Byte order!


    I have ordered more strips for the other side of the room, so I might end up swapping one of the strips out.


    I will experiment with the Arduino methods above this weekend and keep this post updated with my progress.

  • In case i deliver the wrong information
    -> a WIP esp sketch with fastled: https://github.com/SciLor/ESP8266_Hyperion_LED-Controller
    you need to add to config.static.h your settings like byte order wlan ssid/pw led type


    now you start a second hyperion instance with device: udp - add ip and port
    configure the leds (amount) you attached to the esp


    forward the pictures with the enabled hyperion forwarder to the second hyperion if you want to process the grabbed pictures too.


    Not sue if TPmodding wanted to say this. I use just a nodeMCU currently.



  • So in order to execute this, I copy the .h and .cpp files to my Arduino Libraries folder, add a file called config.static.h with config details, and compile and upload the .ino file?


    seem about right to you guys?

  • i realized there is no readme
    sadly no. you need to active or download
    a) ArduinoThread
    b) ArduinoJson
    c) LinkedList
    d) FastLED (clone from github repo - not the integrated one) https://github.com/FastLED/FastLED
    e) Logging (copy to folder libraries) - https://github.com/SciLor/Arduino-loggin...master.zip
    rename config.static.h.example to
    config.static.h


    I already prepared a portable arduino ide which should hopefully work on other computers. i still didn´t tested it. (is a prepare for a tutorial)
    I will upload it :)



    Edit: https://onedrive.live.com/redi…vny-soY&ithint=file%2czip

    2 Mal editiert, zuletzt von Brindosch ()

  • Ok great, thanks, I will try this out.


    Having issues with logging library for some reason.



    EDIT: Great! It compiled! I will next be by my hardware tomorrow and am very looking forward to trying this.


    One of these days you will have to show me that tutorial, and how you made this portable IDE.

    2 Mal editiert, zuletzt von tgbporter ()

  • Just a quick update while I work on this:


    I used the arduino method with a second hyperion daemon over USB to get the second LED strip working.


    One issue that caused me to scratch my head for a while: Chinese clone Arduinos with CH340G Usb to Serial converters will not work.
    You need to use a genuine arduino or at the very least one with a better serial interface.


    I want to experiment more with the ESP8266 later today, and add some more lights to my setup.


    Another thing I did find, inside this guide:


    https://hyperion-project.org/t…-ws2801-ws2812b-apa102.8/


    In step 4, There is a line that says "Mount boot partition read/write"


    The


    Code
    mount -o remount,rw /flash


    command did not work for me, so instead what I did was:


    Edit /boot/config.txt and added the line about UART speed.


    Not sure if correct, but the proof is in the pudding. The second strip works.


    It lags the slightest amount behind the other one though.
    This I think must be a consequence of going from Pi to Arduino to WS2801 rather than going straight from Pi to WS2801 (which has no lag or at least imperceptible)


    Thanks a lot for the help guys, I will perhaps make a new discussion regarding the ESP8266

Jetzt mitmachen!

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