×

Hello friend! SparkFun Customer Support will be unavailable today from 3:00 pm Mountain Time through the remainder of the day. We will resume normal operation at 9:00 AM Mountain Time tomorrow 6/20/18. Thank you for your patience!

Member #147145

Member Since: August 17, 2010

Country: United States

  • These are not quite what I expected. They are very pretty and quite bright, but they are much much thicker than a normal LED strip or even a rope light. The suggested FastLED library works great. I adapted the included Cylon (code below) sketch to produce a quick video demo.
    https://youtu.be/wTi-pQ5de3Q Some notes: The red stripe wire is +24v, the middle wire is 5v data, the other end wire is ground. Be sure to tie the 24v ground to arduino ground. Be careful to limit how tightly you bend these. The data line seems to be sensitive and some LED’s can get stuck if the bend is too tight, see the video for an example of this effect.

    #include "FastLED.h"
    
    // How many leds in your strip?
    #define NUM_LEDS 20 
    
    // For led chips like Neopixels, which have a data line, ground, and power, you just
    // need to define DATA_PIN.  For led chipsets that are SPI based (four wires - data, clock,
    // ground, and power), like the LPD8806, define both DATA_PIN and CLOCK_PIN
    #define DATA_PIN 7
    
    // Define the array of leds
    CRGB leds[NUM_LEDS];
    
    void setup() { 
        Serial.begin(57600);
        Serial.println("resetting");
        LEDS.addLeds<UCS1903,DATA_PIN,RGB>(leds,NUM_LEDS);
        LEDS.setBrightness(84);
    }
    
    void fadeall() { for(int i = 0; i < NUM_LEDS; i++) { leds[i].nscale8(250); } }
    
    void loop() { 
        static uint8_t hue = 0;
        Serial.print("x");
        // First slide the led in one direction
        for(int i = 0; i < NUM_LEDS; i++) {
            // Set the i'th led to red 
            leds[i] = CHSV(hue++, 255, 255);
            // Show the leds
            FastLED.show(); 
            // now that we've shown the leds, reset the i'th led to black
            // leds[i] = CRGB::Black;
            fadeall();
            // Wait a little bit before we loop around and do it again
            delay(10);
        }
        Serial.print("x");
    
        // Now go in the other direction.  
        for(int i = (NUM_LEDS)-1; i >= 0; i--) {
            // Set the i'th led to red 
            leds[i] = CHSV(hue++, 255, 255);
            // Show the leds
            FastLED.show();
            // now that we've shown the leds, reset the i'th led to black
            // leds[i] = CRGB::Black;
            fadeall();
            // Wait a little bit before we loop around and do it again
            delay(10);
        }
    }
    

No public wish lists :(