Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: introduce myself and some questions

  1. #11
    Join Date
    Jan 2018
    Location
    Dordrecht Nederland
    Posts
    12
    Post Thanks / Like

    Default Re: introduce myself and some questions

    this is the code in the arduino
    i made in the privieuw screen some boxes to no if vixen is sending
    this screen reacts good
    but the output on pin 6 is doing nothing,


    #include <bitswap.h>
    #include <chipsets.h>
    #include <color.h>
    #include <colorpalettes.h>
    #include <colorutils.h>
    #include <controller.h>
    #include <cpp_compat.h>
    #include <dmx.h>
    #include <FastLED.h>
    #include <fastled_config.h>
    #include <fastled_delay.h>
    #include <fastled_progmem.h>
    #include <fastpin.h>
    #include <fastspi.h>
    #include <fastspi_bitbang.h>
    #include <fastspi_dma.h>
    #include <fastspi_nop.h>
    #include <fastspi_ref.h>
    #include <fastspi_types.h>
    #include <hsv2rgb.h>
    #include <led_sysdefs.h>
    #include <lib8tion.h>
    #include <noise.h>
    #include <pixelset.h>
    #include <pixeltypes.h>
    #include <platforms.h>
    #include <power_mgt.h>

    /*



    Vixen to Arduino based Generic Serial interface for Addressable Pixels



    */



    #include <FastLED.h>

    #define NUM_LEDS 12

    #define DATA_PIN 6

    #define LED_TYPE WS2812

    #define COLOR_ORDER GRB



    CRGB leds[NUM_LEDS];



    void setup() {

    delay(3000);

    FastLED.addLeds<LED_TYPE, DATA_PIN, COLOR_ORDER>(leds, NUM_LEDS);

    FastLED.clear();

    Serial.begin(115200);

    }



    void loop() {

    int cnt;

    unsigned int num_leds;

    unsigned int d1, d2, d3;



    for(;;) {

    cnt = 0;

    //wait for vixen header

    while(!Serial.available());

    if(Serial.read() != '>') {

    continue;

    }

    //second char of header

    while(!Serial.available());

    if(Serial.read() != '>') {

    continue;

    }

    //first digit for the number of pixels

    while(!Serial.available());

    d1 = Serial.read();



    //second digit for the number of pixels

    while(!Serial.available());

    d2 = Serial.read();



    //third digit for the number of pixels

    while(!Serial.available());

    d3 = Serial.read();



    //read til end of the header

    while(!Serial.available());

    if(Serial.read() != '<') {

    continue;

    }



    while(!Serial.available());

    if(Serial.read() != '<') {

    continue;

    }



    // calculate number of pixels from the characters provided in the header digits

    num_leds = (d1-'0')*100 + (d2-'0')*10 + (d3-'0');

    // if requested number of pixels exceeds connected pixels, ignore.

    if(num_leds > NUM_LEDS) {

    continue;

    }



    do {

    while(!Serial.available());

    leds[cnt].r = Serial.read();

    while(!Serial.available());

    leds[cnt].g = Serial.read();

    while(!Serial.available());

    leds[cnt++].b = Serial.read();

    }

    while(--num_leds);

    FastLED.show();

    }

    }

  2. #12
    Join Date
    Jan 2018
    Location
    Dordrecht Nederland
    Posts
    12
    Post Thanks / Like

    Default Re: introduce myself and some questions

    i go look at it
    also look at the teensy


    leuk je hier te zien .

  3. #13
    Join Date
    Jan 2018
    Location
    Dordrecht Nederland
    Posts
    12
    Post Thanks / Like

    Default Re: introduce myself and some questions

    when i read some artikels rge talk about the lights RX an TX the schould blinking
    here only the rx starts when vixen starts
    any idee ???

  4. #14
    Join Date
    Dec 2012
    Location
    Hudson MA
    Posts
    2,798
    Post Thanks / Like

    Default Re: introduce myself and some questions

    and the fe light must be off. if fe is blinking or on then you are having data errors. wrong baud rate or wires reversed are the major causes of that


    2018 - Moving and going to visit my Daughter in New Zealand. Most likely I will be dark or nearly dark, Some static stuff that is simple to put up.

  5. #15
    Join Date
    Jan 2018
    Location
    Dordrecht Nederland
    Posts
    12
    Post Thanks / Like

    Default Re: introduce myself and some questions

    i have
    on led is green is on
    rx is showing data flikering
    and a L led this one is also on orange

    this is a Original uno


    thanks for the help

Page 2 of 2 FirstFirst 12

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
  •