Results 1 to 4 of 4

Thread: Using Arduino Uno, Vixen 3, and a 16x16 neopixel matrix.

  1. #1
    Join Date
    Nov 2019
    Posts
    3
    Post Thanks / Like

    Default Using Arduino Uno, Vixen 3, and a 16x16 neopixel matrix.

    First off, I want to say there is a ton of good information on this site, but unfortunately, none of it seems to help nor work for me. I am using Vixen to set up the Arduino Uno so that it will play a 16x16 matrix. I know a lot of people have done this with different types of rgb ights, but none are like mine. I am using a Dotstar matrix (pictured). It has a single data in, ground, and power. The one data in controls all 256 pixels. I have set it up within the vixen software as a pixel grid. I once I set it up the arduino lights up as if its reading the controller, but I cant figure out exactly what to do in Arduino to get it to read just the one data in and do the light sequence. Any help or advice???? I am new to the whole programming side of things and think I may have bit off more than I can chew with this project for my class which is due in a few days.
    DotStar 16x16 Pixel Matrix.PNG

  2. #2
    Join Date
    Dec 2014
    Location
    Southern California
    Posts
    899
    Post Thanks / Like

    Default Re: Using Arduino Uno, Vixen 3, and a 16x16 neopixel matrix.

    what sketch are you running on the UNO ??
    Kevin

  3. #3
    Join Date
    Nov 2019
    Posts
    3
    Post Thanks / Like

    Default Re: Using Arduino Uno, Vixen 3, and a 16x16 neopixel matrix.

    Kevin, Please keep in mind I am not a programmer by any means. This is a course I have to take for my program at school. So, I have pieced together something which is more than likely way wrong.

    Sketch is below:

    int pin = 6;

    int i = 0;
    int incomingByte[1];
    #define BAUD_RATE 115200

    void setup()
    {
    // Begin serial communication
    Serial.begin(BAUD_RATE);

    // Set up each channel as an output
    for(int i = 0; i < incomingByte; i++)
    {
    pinMode(pin, OUTPUT);
    }
    }

    void loop()
    {
    if (Serial.available() >= incomingByte)
    {
    // Read data from Vixen, store in array
    for (int i = 0; i < incomingByte; i++)
    {
    incomingByte[i] = Serial.read();
    }
    // Write data from array to a pin on Arduino
    for (int i = 0; i < incomingByte; i++)
    {
    digitalWrite(pin, incomingByte[i]);
    }
    }
    }

  4. #4
    Join Date
    Dec 2014
    Location
    Southern California
    Posts
    899
    Post Thanks / Like

    Default Re: Using Arduino Uno, Vixen 3, and a 16x16 neopixel matrix.

    That sketch is not going to work. Take a look at this thread. Look for the sketch he uses.
    http://doityourselfchristmas.com/for...o+pixels+vixen
    post #8

    There are probably newer sketches out there too.
    Last edited by kev; 11-25-2019 at 11:48 AM.
    Kevin

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
  •