element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Cool LED Display
  • Challenges & Projects
  • Project14
  • Cool LED Display
  • More
  • Cancel
Cool LED Display
Blog AR-Drone Arduino with programmable RGB LED string
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Cool LED Display to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: rsc
  • Date Created: 2 Jan 2018 9:04 PM Date Created
  • Views 1316 views
  • Likes 3 likes
  • Comments 1 comment
  • ardintermediate
  • arduino_projects
  • leddisplaych
  • arduino pro micro
Related
Recommended

AR-Drone Arduino with programmable RGB LED string

rsc
rsc
2 Jan 2018

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

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

  • Sign in to reply

Top Comments

  • DAB
    DAB over 7 years ago +3
    It will be interesting to see how your neighbors react to the lights in the sky. DAB
  • DAB
    DAB over 7 years ago

    It will be interesting to see how your neighbors react to the lights in the sky.

     

    DAB

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube