WS8211B LED Strip control Via Blynk

Good Afternoon,

I am currently working with an Arduino Nano, A ESP8266 wifi Chip, and Blynk on Andriod 7.1.1
Blynk Server Library 2.18.1

I need some help getting some base code set and then hopefully I can continue off that,

What I would like to do is be able to control my LED strip by changing the color as well as being able to set patterns on the go.

there are a few example sketches that I would like to pull some palettes from.

• Add your sketch code. :point_up:Code should be formatted as example below.

Simply paste your code between ``` If you don’t format your code, your topic can be deleted by moderators.

#include <FastLED.h>

#define LED_PIN     6
#define NUM_LEDS    240
#define BRIGHTNESS  64
#define LED_TYPE    WS2811
#define COLOR_ORDER GRB
CRGB leds[NUM_LEDS];

#define UPDATES_PER_SECOND 100

void setup()  delay( 3000 ); // power-up safety delay
    FastLED.addLeds<LED_TYPE, LED_PIN, COLOR_ORDER>(leds, NUM_LEDS).setCorrection( TypicalLEDStrip );
    FastLED.setBrightness(  BRIGHTNESS );
    
    currentPalette = RainbowColors_p;
    currentBlending = LINEARBLEND;
}

void loop()
{
    ChangePalettePeriodically();
    
    static uint8_t startIndex = 0;
    startIndex = startIndex + 1; /* motion speed */
    
    FillLEDsFromPaletteColors( startIndex);
    
    FastLED.show();
    FastLED.delay(1000 / UPDATES_PER_SECOND);
}

void FillLEDsFromPaletteColors( uint8_t colorIndex)
{
    uint8_t brightness = 255;
    
    for( int i = 0; i < NUM_LEDS; i++) {
        leds[i] = ColorFromPalette( currentPalette, colorIndex, brightness, currentBlending);
        colorIndex += 3;
    }
}

Currently, this code just loops through all of the palettes I would like to control the palettes via a separate button in blynk and also have an all off button option. I would also like the ability to make the whole strip a solid color with a color wheel. If parts of code have been written else where please don’t hesitate to point them out to me.

Thank You for your assistance,
Kris

Search this forum for keywords like FastLED :wink:

This would be a good starting point:

Pete.