Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: xlights sends out wrong data to pixels.

  1. #1
    Join Date
    Jun 2021
    Location
    Deutschland / Schleswig-Holstein 24351 Damp
    Posts
    27
    Post Thanks / Like

    Default xlights sends out wrong data to pixels.

    Hello, my dears. I have a problem with xlights again and I hope that you have some time between setting up and completing your Christmas lights.
    I have the following problem: I completed the programming at xlights and set up the lighting system for testing purposes and wanted to test everything beforehand.

    Unfortunately, the pixels are not controlled in the way that xlights displays in the program. For example, if I want to let the candy cane go off, the same number of pixels will light up again somewhere in the system. It shouldn't be that natural.
    Some data from my small system for understanding. I have a total of 625 pixels x 3 = 1875 pixels. I use a Tennsy 4.1 as a controller. The Teensy can control a maximum of 1024 pixels per channel. I can use 8 channels. It's all connected with USB from the PC to the Tennsy and from there with a network cable to the Pixels. In xLights I set a controller as Generic Serial with 966 channels, because I have an end model there and the chains can be separated here in order to connect a new data cable. xlights controls the pixels up to 966 correctly and cleanly.

    However, other pixels in the system also light up unintentionally. If channels 1-100 are to light up, other lights also light up. I have set the controller, port and protocol and the channel numbers are also correct. Nevertheless, other pixels also light up. Check Sequence reports 5 errors to Models spanning controller: is not configured for a controller.
    The error is known and comes because I told xlights that channel 966 is the last channel on this line. But I can't assign any further controllers because the Tennsy can only have 1024 pixels per channel. I have to set an additional universe in order to be able to assign a controller to the other 5 models. But don't know how I can adjust it at xlights.
    It is also very strange that when I plug in the plug, the pixels in the first part, in the middle and at the end of the system, glow white. Most of the other pixels remain dark. Only when I plug in the Tennsy or xlights sends data do the pixels go out. 3 pixels continue to shine permanently at a different point.
    I think that another data line has to be connected, which I already did from the Pixel 967 onwards. From the Pixel onwards I connected a second data cable. The first data cable ends at the Pixel 966. Unfortunately, nothing changes.

    It's also strange when I do a test under Tools to check the pixels, I have two pixels that are testing one pixel after the other. Somehow it looks like xlights thinks that there are two start channels 1- ?? gives.
    I hope that I got it across in a reasonably understandable way. And sorry for the bad English. Is translated as goggle.
    Perhaps someone from you experts has an idea or a solution.

    Warm greetings from Germany. Jörg

  2. #2
    Join Date
    Oct 2014
    Location
    Sauk City, WI USA
    Posts
    2,167
    Post Thanks / Like

    Default Re: xlights sends out wrong data to pixels.

    I think you need to post pictures to make this clear. Picture of your teensy with wiring described. Picture of controller setup in xLights and pictures of a model setup that use channels 967 and up.

    You can't have a controller defined in xlights as 996 but then send it 1875 channels. The controller in xlights should be the whole shooting match. Then in the teensy, you need to break the data stream into different channels (output pins).

    625 pixels is not a lot. Are they all connected in series (one channel?) or are you doing something on the teensy to break them into different outputs?

  3. #3
    Join Date
    Jun 2021
    Location
    Deutschland / Schleswig-Holstein 24351 Damp
    Posts
    27
    Post Thanks / Like

    Default Re: xlights sends out wrong data to pixels.

    Hello Mike, first thanks for your answer. I am happy to post photos of the system. It's not a large facility, but I don't have any more space. But if you look at the photos how it should look.
    The first thing I do is copy Heinz's sketch

    /*
    ************************ Heinz Doessegger - www.technikfreak.ch ******************************

    vchristmas v1.0 - Januar 2015
    Dokumentation zum Projekt:
    http://www.technikfreak.ch/category/...tsbeleuchtung/

    HARDWARE: TEENSY 3.1 / 3.2

    ARDUINO PLUGIN: TEENSYDUINO mit OctoWS2811 Bibliothek
    http://www.pjrc.com/teensy/td_download.html

    LED: WS2811

    SOFTWARE: Vixen Lights 3.x
    Programm zur Steuerung von WS2811 RGB LED durch Vixen Lights 3.x http://www.vixenlights.com/
    DISPLAY CONFIGURATION - COMx (x = COM Port von Arduino) 115200, None, 8 One
    SEND A TEXT HEADER: VIXStart
    Kanaele: Pro LED braucht es 3 Kanäle (Rot/Gruen/Blau)
    Color Handling: RGB

    TIPP: Fuer Einsteiger
    Zum Start nur mit einer 50er LED Reihe beginnen. ledsPerStrip und PixelCount jeweils auf 50 setzen.
    In Vixen Lights 50 LED Elemente anlegen und ueber das Color Handling RGB auf 150 Ausgaenge mappen.

    ************************ Heinz Doessegger - www.technikfreak.ch ******************************
    */

    #include <OctoWS2811.h>

    const int ledsPerStrip = 1000; // Maximale Anzahl Pixel pro Strang
    int PixelCount = 50; // Effektive Anzahl Pixel
    float hell = 0.50; // Dimmer 1.00=100% Helligkeit - 0.50=50% Helligkeit

    DMAMEM int displayMemory[ledsPerStrip*6];
    int drawingMemory[ledsPerStrip*6];
    const int config = WS2811_GRB | WS2811_800kHz;
    OctoWS2811 leds(ledsPerStrip, displayMemory, drawingMemory, config);
    int pixelValue = 0;

    void setup()
    {
    delay(300);
    Serial.begin(115200); // Geschwindigkeit der Datenuebertragung von Vixen Lights 3 zum Arduino

    leds.begin();
    for (int i=0;i<PixelCount;i++) // Initialisierung - Einmalig leuchten alle LED blau
    {
    leds.setPixel(i, 0, 0, 200*hell);
    }
    leds.show();
    delay (5000);
    for (int i=0;i<PixelCount;i++)
    {
    leds.setPixel(i, 0, 0, 0);
    }
    leds.show();
    }

    void loop()
    {

    if (Serial.available()>5) // Auf Datenuebertragung von Vixen Lights warten
    {
    waitForVixenHeader(); // Funktion aufrufen: Warten auf Startstring

    for (int pixCount=0; pixCount<PixelCount;pixCount++) // Do this for as many Pixels defined in PixelCount
    {
    int RGB[3]; // Array fuer die drei RGB Farbwerte
    for (int color = 0;color<3;color++) // Drei Werte bilden jeweils eine RGB LED
    {
    while (Serial.available() < 1) // Auf die naechste Zahl warten
    {
    delay(10);
    }
    RGB[color] = int(Serial.read()*hell); // Farbwert dem Array zuweisen mit Helligkeitskorrektur
    } // Wiederholen bis alle drei Werte eingelesen sind

    leds.setPixel(pixCount, RGB[1], RGB[0], RGB[2]);

    } // Wiederholen bis alle LED eingelesen sind
    leds.show(); // Farbmuster aktivieren
    } // Naechstes Farbmuster holen
    } // Schlaufen Ende

    void waitForVixenHeader()
    {
    char *header="VIXStart";
    char buffer[3];
    int index = 0;

    while (true)
    {
    int inByte = Serial.read();
    if(inByte==-1)
    {
    continue;
    }

    buffer[index] = inByte;
    if(buffer[index]!=header[index])
    {
    index=-1;
    }

    buffer[index+1] = 0;
    index++;
    if(index==8)
    {
    return;
    }
    }
    }
    ################################################## ################################################## ####

    This is the sketch but without the settings. These are on another PC.

  4. #4
    Join Date
    Jun 2021
    Location
    Deutschland / Schleswig-Holstein 24351 Damp
    Posts
    27
    Post Thanks / Like

    Default Re: xlights sends out wrong data to pixels.

    Here are the photos of the Teensy and the cable entry from the Teensy to the pixels

    1.jpg
    2.jpg
    3.jpg
    4.jpg
    Attached Images Attached Images
    • File Type: jpg 5.jpg (99.7 KB, 15 views)

  5. #5
    Join Date
    Jun 2021
    Location
    Deutschland / Schleswig-Holstein 24351 Damp
    Posts
    27
    Post Thanks / Like

    Default Re: xlights sends out wrong data to pixels.

    This is what it looks like when I put the plug in the socket. The snowflakes are present twice

    5.jpg
    6.jpg

  6. #6
    Join Date
    Jun 2021
    Location
    Deutschland / Schleswig-Holstein 24351 Damp
    Posts
    27
    Post Thanks / Like

    Default Re: xlights sends out wrong data to pixels.

    Sorry, the photo was still missing

    8.jpg

  7. #7
    Join Date
    Jun 2021
    Location
    Deutschland / Schleswig-Holstein 24351 Damp
    Posts
    27
    Post Thanks / Like

    Default Re: xlights sends out wrong data to pixels.

    This is what my controller settings look like

    9.jpg
    10.jpg

  8. #8
    Join Date
    Jun 2021
    Location
    Deutschland / Schleswig-Holstein 24351 Damp
    Posts
    27
    Post Thanks / Like

    Default Re: xlights sends out wrong data to pixels.


  9. #9
    Join Date
    Jun 2021
    Location
    Deutschland / Schleswig-Holstein 24351 Damp
    Posts
    27
    Post Thanks / Like

    Default Re: xlights sends out wrong data to pixels.


  10. #10
    Join Date
    Jun 2021
    Location
    Deutschland / Schleswig-Holstein 24351 Damp
    Posts
    27
    Post Thanks / Like

    Default Re: xlights sends out wrong data to pixels.

    If the whole system should light up, that works great

    14.jpg
    15.jpg

    But if only these two models are to light up, these also light up

    18.jpg
    19.jpg

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •