pixel led ws2811 programming issue

Hello everyone ,I am new here , I am in between of my project ,and got stucked , i am making a neo pixel led LED program of 2811 using Arduino .What i want is there are 200 neo pixel led been connected to an Arduino and these LED should working in sequence and move forward ,as led us take an example like the first led is red now the next 5 led will be in off state and then the 6th led will be red again the next 5 five led will be off then the 12th led will be red then again the next 5 led will be off and 18th led will be red and so on , now the led will be moving in fashion that the preceding led will turn off and the succeeding led will turn on and again the same moving so on .Please have a look at the above video as well .
Thank you
here is Gplus link for video
https://plus.google.com/u/1/110618654694053350595/posts/AisUDiKJoFA

And your code is?

Hello everyone, I am new here, I am in between of my project, and got stuck, I am making a neo pixel led LED program of 2811 using Arduino.What I want is there are 200 neo pixel led been connected to an Arduino and these LED should working in sequence and move forward, as led us to take an example like the first led is red now the next 5 led will be in off state and then the 6th led will be red again the next 5 five led will be off then the 12th led will be red then again the next 5 led will be off and 18th led will be red and so on, now the led will be moving in fashion that the preceding led will turn off and the succeeding led will turn on and again the same moving so on .Please have a look at the above video as well.
Thank you

What have you tried ?
Can you control the LEDs ?
Can you turn an LED on and off ?

rohit1121:
Hello everyone, I am new here,
I am in between of my project, and got stuck,
I am making a neo pixel led LED program of 2811 using Arduino.
What I want is there are 200 neo pixel led been connected to an Arduino and
these LED should working in sequence and move forward,
as led us to take an example like the first led is red
now the next 5 led will be in off state and
then the 6th led will be red again
the next 5 five led will be off
then the 12th led will be red
then again the next 5 led will be off
and 18th led will be red
and so on,
now the led will be moving in fashion that the preceding led will turn off and the succeeding led will turn on and again the same moving so on .
Please have a look at the above video as well.
Thank you

Sorry had to make it readable.
Tom... :o

PS. What video?

Hi
Please do not cross post. Is this oyurs?

http://forum.arduino.cc/index.php?reportsent;topic=519106.msg3537765#msg3537765

Tom... :o

Hello everyone, I am new here, I am in between of my project, and got stuck, I am making a neo pixel led LED program of 2811 using Arduino.What I want is there are 200 neo pixel led been connected to an Arduino and these LED should working in sequence and move forward, has led us to take an example like the first led is red now the next 5 led will be in off state, like 2, 3,4,5 and then the 6th led will be red again the next 5 five led will be off but first led is on.

example:-

LED no. 1 2 3...... 5 ...... 7........ 10 11 12 13 14......... n

#1 on off off on off on off off off off
#2 off on off off off off on off off off
#3 off off on off on off off on off off
#4 off off off off off off off off off on
after this repeat loop

Please do not multiple post your threads.

Tom... :slight_smile:
PS. Reported to Moderator

Threads merged.

You can gain access to a multiple of x by checking for the index of the led and perform an if statement index%x == 0. Itterate over all leds and wrap this in another loop.

Something like this

int x //number of leds blank
int offset = 0;

for(index = 0 until all leds){
   
   if((index + offset ) %x == 0){
         //turn on
    }else{
      ///turn off
    }

}

offset++;

if(offset > x){
  offset = 0;
}