Hello all, I am not good in programming but want to make these kind of effect on the neopixel strip so need help to make these effects. I am using 50 leds right now but will increase to 100 or 150.
I put a youtube link of the effects i need so you can see the effect.
Thanks
https://www.youtube.com/watch?v=eDyeuj54DeU
Theater chase neopixel effects
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- dastels
- Posts: 15653
- Joined: Tue Oct 20, 2015 3:22 pm
Re: Theater chase neopixel effects
You don't say what board/language you are using, but I would start by looking at the CircuitPython LED animation library https://learn.adafruit.com/circuitpython-led-animations.
Dave
Dave
Last edited by dastels on Wed May 24, 2023 5:54 pm, edited 1 time in total.
Reason: typo
Reason: typo
- kaku_hm
- Posts: 3
- Joined: Sun May 21, 2023 5:35 pm
Re: Theater chase neopixel effects
sorry about that ,
currently i am using Adafruit_NeoPixel.h library and arduino uno board will use esp8266 in future.
I am willing to make these effects in a function so i can call them whenever needed.
Thanks
currently i am using Adafruit_NeoPixel.h library and arduino uno board will use esp8266 in future.
I am willing to make these effects in a function so i can call them whenever needed.
Thanks
- dastels
- Posts: 15653
- Joined: Tue Oct 20, 2015 3:22 pm
Re: Theater chase neopixel effects
OK, you're using C++.
There are plenty of NeoPixel projects in the learning guides: https://learn.adafruit.com/search?q=ard ... 0animation Some of tyhoseare in CircuitPython (even with the arduino keyword). You might get some ideas from them.
Dave
There are plenty of NeoPixel projects in the learning guides: https://learn.adafruit.com/search?q=ard ... 0animation Some of tyhoseare in CircuitPython (even with the arduino keyword). You might get some ideas from them.
Dave
- kaku_hm
- Posts: 3
- Joined: Sun May 21, 2023 5:35 pm
Re: Theater chase neopixel effects
Hello,
I modified this code but couldn't reached my desire output, now this gives output only in RED color but i want each group with different color and one more thing the 1st ,6st,11th,16th,21th leds should be OFF after restarting the loop but it is not going OFF.
Need Help
I modified this code but couldn't reached my desire output, now this gives output only in RED color but i want each group with different color and one more thing the 1st ,6st,11th,16th,21th leds should be OFF after restarting the loop but it is not going OFF.
Need Help
Code: Select all
#include <FastLED.h>
// How many leds in your strip?
#define NUM_LEDS 24
#define DATA_PIN 6
//#define CLOCK_PIN 13
// Define the array of leds
CRGB leds[NUM_LEDS];
void setup() {
FastLED.addLeds<NEOPIXEL, DATA_PIN>(leds, NUM_LEDS);
}
void loop() {
theaterChase(CRGB::Red, 80);
}
void theaterChase(CRGB color, uint8_t wait) {
for (int j = 0; j < 10; j++) { // do 10 cycles of chasing
for (int q = 0; q < 5; q++) {
for (int i = 0; i < NUM_LEDS; i = i + 5) {
leds[i+q] = color; // turn every third pixel on
}
FastLED.show();
delay(250);
}
FastLED.clear(); // clear all pixel data
FastLED.show();
}
}
- Attachments
-
- code output.gif (520.88 KiB) Viewed 225 times
Last edited by dastels on Fri May 26, 2023 8:40 am, edited 1 time in total.
Reason: Please use code tags for embedded code
Reason: Please use code tags for embedded code
- dastels
- Posts: 15653
- Joined: Tue Oct 20, 2015 3:22 pm
Re: Theater chase neopixel effects
Everything looks to be functional, and you are off to a good start with the code. Keep working on it.
Dave
Dave
Please be positive and constructive with your questions and comments.