ws2812b

I got ws2812b strip containing 60 LEDS.. I need to update all the 60 leds at once at a rate of 15 times per sec...when I was using FastLed library via Arduino Uno I could see the lag...I need to update the leds very fast..please help me

Back-of-a-beermat calculation:
1.25us per bit
24 bits per LED
60 LEDs.

A shade under 2ms, or 500Hz.

Maybe the problem is in the code you didn't post.

code :

#include "FastLED.h>

#define LED_PIN 7
#define NUM_LEDS 60

CRGB leds[NUM_LEDS];

void setup(){
FastLED.addLeds<WS2812,LED_PIN,GRB>(leds,NUM_LEDS);
}
int i=0;

void loop()
{
for (i=0;i<60;i++ )
{
leds*=CRGB(255,0,0);*

  • }*
  • delay (100)*
  • for (i=0;i<60;i++ )*
  • {*
    _ leds*=CRGB(0,0,0);_
    _
    }_
    _
    }*_

Please read this:-
How to use this forum
Because your post is breaking the rules about posting code.

See how your code goes into italics and a bit of your code is missing? That is because the forum software mistakes bits of your code for formatting instructions that is why we ask you to post them between code tags. If you use the "copy for forum" in the IDE the code tags you need are automatically included.

That code you posted will never light up anything, you have no call to the show method.
Now please post the code you are having your stated problem with. I can guess what you have done wrong but I can only be sure if you post the correct information.

The code you posted won't even compile.#include "FastLED.h>

The delay that limits the update rate to 10Hz maximum lacks a semicolon.

Please stop wasting time.

#include "FastLED.h"

#define LED_PIN 7
#define NUM_LEDS 60

CRGB leds[NUM_LEDS];



void setup() {
  // put your setup code here, to run once:
  FastLED.addLeds<WS2812,LED_PIN,GRB>(leds,NUM_LEDS); 

  
}



void loop() {
 for (i=0;i<60;i++)
 {
  leds[i]=CRGB(255,0,0);
  
 }
 FastLED.show();
 delay(100);
 for (k=0;k<60;k++)
 {
  leds[k]=CRGB(0,0,0);
  
 }
 FastLED.show();
 delay(100);
}

this should give me about 5fps(total delay 200ms)..but it isn't..

but it isn't..

It isn't what?

Please, you've got five minutes between posts, use them wisely.

At least post code that has a hope of compiling.

The above code is working(compiling with out errors)..but Im not getting required frame rate..(5fps )
Sorry for being asking like a noob!..

Please don't waste time.
The code in reply #5 is incomplete, unless the .h file defines the missing loop indices.

this should give me about 5fps(total delay 200ms)..but it isn't..

So if it isn’t what is it?