This project was to add some night lighting to my AR-Drone quadcopter.

I started with 2 strings of RadioShack TM1803 programmable RGB LEDs and an Arduino micro.

The Arduino code uses this library:

FastLED LED animation library for Arduino (formerly FastSPI_LED)

There are 27 LEDs on each side, addressed as groups of 3.

 

#include "FastLED.h"
// Define the array of leds
CRGB ledsl[9];
CRGB ledsr[9];
void setup() { FastLED.addLeds<tm1803, 3="">(ledsl, 9); 
               FastLED.addLeds<tm1803, 4="">(ledsr, 9);
}
void loop() { 
        ledsl[0] = CRGB::Green;
        ledsl[1] = CRGB::Green;
        ledsl[2] = CRGB::Green;
        ledsl[3] = CRGB::Green;
        ledsl[4] = CRGB::Yellow;
        ledsl[5] = CRGB::Black;
        ledsl[6] = CRGB::Black;
        ledsl[7] = CRGB::Black;
        ledsl[8] = CRGB::Black;
        ledsr[0] = CRGB::Green;
        ledsr[1] = CRGB::Green;
        ledsr[2] = CRGB::Green;
        ledsr[3] = CRGB::Green;
        ledsr[4] = CRGB::Blue;
        ledsr[5] = CRGB::Black;
        ledsr[6] = CRGB::Black;
        ledsr[7] = CRGB::Black;
        ledsr[8] = CRGB::Black;
        FastLED.show();
        delay(50);
        ledsl[0] = CRGB::Black;
        ledsl[1] = CRGB::Black;
        ledsl[2] = CRGB::Black;
        ledsl[3] = CRGB::Black;
        ledsl[5] = CRGB::Red;
        ledsl[6] = CRGB::Red;
        ledsl[7] = CRGB::Red;
        ledsl[8] = CRGB::Red;
        ledsr[0] = CRGB::Black;
        ledsr[1] = CRGB::Black;
        ledsr[2] = CRGB::Black;
        ledsr[3] = CRGB::Black;
        ledsr[5] = CRGB::Red;
        ledsr[6] = CRGB::Red;
        ledsr[7] = CRGB::Red;
        ledsr[8] = CRGB::Red;
        FastLED.show();
        delay(50);
}

Enjoy the video!

Scott