Getting Xlights with Generic Serial to Work with Arduino

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ต.ค. 2022
  • This video covers everything to get you started with Xlights and Arduino. The hardware being demo-ed in this video is an Arduino Mega 2560.
    First. The example script that will get your started is here on GitHub:
    github.com/mlivolsi63/xlights
    Second: The Video covers the following:
    A) Setting up your controller to talk to the Arduino
    B) Setting up the layout
    C) Creating an extremely simple sequence.
    This video also covers things like "Output to Lights" which actually begins the process of sending bytes across the line.
    WARNING: If you set the BAUD rate to 9600, the Arduino will not process the stream fast enough and a log jam will occur, and the display and sound will not sync up correctly.
    The main goal is to take away the mystery of Xlights and get you started on your Generic Serial journey.
    If you have comments or questions, please leave them in the comments sections.
  • แนวปฏิบัติและการใช้ชีวิต

ความคิดเห็น • 7

  • @bjj.7060
    @bjj.7060 ปีที่แล้ว +5

    I'm trying to get two strands of individually addressable WS2811 RGB lights to work with xLights from my Arduino. Is there a way to control the strand (each light individually) with just one pin (because the strand only uses one data pin)? Also, I'm afraid I don't know much about generic serial and xLights... does the data for each light come as or does the data come as ? Have you ever used individually addressable lights with xLights? If so, could you share how you accomplished it so that I can try to understand how to use xLights with an individually addressable RGB strand?

    • @mrjoestrr
      @mrjoestrr 8 หลายเดือนก่อน

      Did you ever find a solution to your issue? I'm in the same situation at the moment and have been banging my head against the wall.

  • @ryana661
    @ryana661 ปีที่แล้ว +1

    Awesome tutorial, would you possibly show how to do the rgb, it sounds amazing.

  • @littlemisskittykitty9123
    @littlemisskittykitty9123 หลายเดือนก่อน

    I want to do this with arduino uno r3 but am not sure what code I need, what code do I need?

  • @DJMovit
    @DJMovit ปีที่แล้ว

    I want to run x-lights on falcon player with a raspberry Pi connected to my Arduino.
    I have to do the generic serial connection, I haven't found too much info on this. This video comes close to helping

  • @shawnshoptaw7344
    @shawnshoptaw7344 ปีที่แล้ว +1

    Great tutorial! Thanks for posting. I have successfully uploaded the Arduino sketch, set up the controller, and made a simple layout and sequence. I have tried many baud rates as well. When I upload the Arduino sketch, It compiles and uploads. I click on the yellow light bulb and it cycles through all 52 amber flashes. The problem I'm having is that when I run the sequencer, I'm not getting any output from the Arduino. Would you happen to have any ideas on where I'm going wrong? Thanks again!

    • @MoltenFungus
      @MoltenFungus  ปีที่แล้ว +1

      What you can do is check out the value of the bytes in your Arduino script.. In the loop(), if any of the bytes == 255, then I set pin2 to high (which you can check with a voltmeter or cheap LED bulb that can handle 5v)
      if (inByte == 255) digitalWrite(2, HIGH);
      else digitalWrite(2, LOW);
      255 means that in your sequence, you have one of your channel values set to "on".
      btw. If you've ever worked with Vixen before (ie. v.2.1) it works in the same way