xlights sends out w...
 
Notifications
Clear all

xlights sends out wrong data to pixels.

22 Posts
3 Users
0 Reactions
9,761 Views
Posts: 39
 jssr
Topic starter
(@jssr)
Eminent Member
Joined: 5 years ago
[#54983]

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


21 Replies
Posts: 39
 jssr
Topic starter
(@jssr)
Eminent Member
Joined: 5 years ago

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/technik-elektronik/technik-elektronik-projekte/technik-elektronik-projekte-weihnachtsbeleuchtung/

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

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 = 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.


Reply
Posts: 39
 jssr
Topic starter
(@jssr)
Eminent Member
Joined: 5 years ago

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

1

2

3

4
5

Reply
Posts: 39
 jssr
Topic starter
(@jssr)
Eminent Member
Joined: 5 years ago

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

5

6

Reply
Posts: 39
 jssr
Topic starter
(@jssr)
Eminent Member
Joined: 5 years ago

Sorry, the photo was still missing

8

Reply
Page 1 / 5
Share: