Hello guys n gals, so id like to share with you my project,

Hello guys n gals, so id like to share with you my project, since i need your help to achieve it :slight_smile: im working on a light sculpture for my 8 year old… basically a prototype which id like to develop as a kids toy…idea being to learn through playful interaction with intelligently controlled light. initially it will be through the ability to control preset patterns via, potentiometers… n buttons, but to works towards… movement sensors and touch sensors… allowing the child to develop through their interaction with the ( ill call it a thing for the moment) :slight_smile: so for this first stage im collecting various patterns to play with, which i would like to commbine together so to be able to select each pattern. i would also like to have a global rgb colour fade system using 3 potentiometers to adjust the brightness of the red green and blue, i also want to have a pattern speed control… and an overall brightness controll. after i have these aspects figured out, id then like to be able to blend between patterns. and add some movementt sensors… however i have only 2 weeks… to get the first stage of this completed :slight_smile: hehe… i like to push my self.
So my series of questions are:
1, how might it be best to compile a series of patterns together, and then to select between each? do i need to compile all of the patterns into one ? any pointers to how i might achieve my aims would be greatly appreciated. i will upload pics when ive put the thing together, for now i am still constructing the servo controlled arms :slight_smile: in between working out how to work with Fastled :slight_smile: and arduino. thankyou for any help

Take a look at this to see how I switch between buttons and read pots to change inputs to various things: https://bitbucket.org/ratkins/technocolourdreamcoat2014

Check out the RGB Shades code too, they have 2 buttons with multiple functions. And there are multiple animations to call from. https://github.com/macetech/RGBShades

Ah this is great :slight_smile: thanks guys…checking it now :slight_smile:

Go to line 580 to see how to separate animations, and 633 to see how buttons are handled: https://gist.github.com/StefanPetrick/2f448d2e77e091d6fb1b

hi im having issues, with these codes since im using 4 single strips with different numbers of leds, and not sure how to seperate the smartmatrix so they can work with my setup…HELP please, thanks

CLEDController &CFastLED::addLeds(CLEDController *pLed,
struct CRGB *data, int nLedsOrOffset, int nLedsIfOffset) {

That line of code is from the FastLED.cpp file in the library. When you add the leds, you have the option to indicate different lengths, after you name the controller type, data pin, and color order.

So,

strip1 = 5 leds
strip 2 = 25 leds
strip 3 = 64 leds

LEDS.addLeds<WS2812B, pin1, GRB>(leds, strip1);
LEDS.addLeds<WS2812B, pin2, GRB>(leds, strip1, strip2);
LEDS.addLeds<WS2812B, pin3, GRB>(leds, strip1 + strip2, strip3);

or

LEDS.addLeds<WS2812B, pin1, GRB>(leds, 5);
LEDS.addLeds<WS2812B, pin2, GRB>(leds, 5, 25);
LEDS.addLeds<WS2812B, pin3, GRB>(leds, 30, 64);

walla! @Zeke_Koch shared some code from awhile back: https://github.com/zekekoch/CupNoise/blob/master/CupNoise.ino

Oh, just so ya know, a Smartmatrix is a type product not the term for a matrix of LED’s FYI :wink: