Comments: Addressable LED Neon Flex Rope Hookup Guide

Pages

Comments 4 comments

  • I had no problem getting this to work with the FastLED library - worked seamlessly! Unfortunately, I could not get FastLED to cooperate with the SparkFun MP3 Player shield on my Arduino Mega so I wrote my own library to control the UCS1903 chip.

    Library is posted on git hub @ https://github.com/wpt31337/AVR-UCS1903-LEDArray

  • Hi i want this LED to show only the green colour how do i set it to show only the green 1

    • Other than setting up the FastLED example code for UCS1903 chip, you would tell each LED to light up green. Here's an example from the modified blink sketch. I have not tested this code but it should compile and work for the LED Neon Flex Rope.

      /*Modified FastLED Blink.ino Example
      
         Description: This modified example is used to control one segment
             of the LED Neon Flex Rope.
      */
      #include "FastLED.h"
      
      // How many leds in your strip?
      #define NUM_LEDS 16 //# of segments on the LED Neon Flex Rope
      
      // 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 5
      //#define CLOCK_PIN 13
      
      // Define the array of leds
      CRGB leds[NUM_LEDS];
      
      void setup() {
        // put your setup code here, to run once:
        FastLED.addLeds<UCS1903, DATA_PIN, BRG>(leds, NUM_LEDS);
      
      }
      
      void loop() {
        // put your main code here, to run repeatedly:
      
        for (int i = 0; i > 16; i++) {
          leds[i] = CRGB::Green;
          FastLED.show();
          //delay(500);//optional delay
        }
      }
      

      There's more than one shade of green in the FastLED library. Try checking their keywords for the different greens that can be mixed together => [ https://github.com/FastLED/FastLED/blob/fece62ec8001b6aa75903cfabb4da51f59e004bd/keywords.txt#L147 ]. =)


If you've found a bug or have other constructive feedback for our tutorial authors, please send us your feedback!