Shooting Star Animation for Individually Addressable LEDs (Arduino, WS2812B, FastLED Library)

Поділитися
Вставка
  • Опубліковано 26 вер 2024
  • Demonstration of a Shooting Star / Comet animation for WS2812B LED strip using an Arduino Uno and the FastLED library.
    Source code available on GitHub:
    github.com/Ele...
    Related videos:
    1) Fire Animation for Individually Addressable LEDs (Arduino, WS2812B, FastLED Library):
    • Fire Animation for Ind...
    2) Rainbow Cycle Animation for Individually Addressable LEDs (Arduino, WS2812B, FastLED Library):
    • Rainbow Cycle Animatio...
    3) Knight Rider Animation for Individually Addressable LEDs (Arduino, WS2812B, FastLED Library):
    • Knight Rider Animation...
    My channel: / @electriangle
    #arduino #fastled #ws2812b

КОМЕНТАРІ • 19

  • @mikethechap
    @mikethechap Рік тому

    Thank you. I’m going to put this on the edge of some wheels to give the appearance of the wheels moving clockwise on a little Outdoors Christmas Train decoration.

    • @Electriangle
      @Electriangle  Рік тому

      Sounds like a neat idea! My computer fans have an animation similar to this one where it's going around clockwise to simulate a spinning effect. It does look good. Have fun with the project 😀.

  • @manukalias
    @manukalias Рік тому

    You never fail to impress 😍😍

  • @DhokoHD
    @DhokoHD 14 днів тому

    how i can make an emoji face in this pattern?

    • @Electriangle
      @Electriangle  12 днів тому

      I'm not sure how it would be made as an emoji face using a 1D strip... Are you working with a 2D LED matrix panel? Or wrapping the LEDs in a circle? I imagine this animation could work good for a circle ring of LEDs as a loading symbol or a spinning wheel effect.

  • @justinlepitre7973
    @justinlepitre7973 6 місяців тому

    Very cool, thank you! I was wondering, what material did you use for the diffusion?

    • @Electriangle
      @Electriangle  6 місяців тому

      For these FastLED demo videos, I've been using a large plastic diffusion sheet that I had pulled from a broken TV. I try to pull out the diffusion sheets when I see a TV being thrown away. They are not always as nice as this one, but when they are, they can be a good way to get a free diffusion sheet for DIY projects.

  • @liftedaura99
    @liftedaura99 6 місяців тому

    Is it possible to combine animations? Could you have this but with a rainbow cycle as well?
    Working on my first individually addressable project and would really appreciate any advice.

    • @Electriangle
      @Electriangle  6 місяців тому

      Yes, do you mean combine them into one Arduino sketch to switch between them? I decided to format the code for these videos so that the animations can be activated simply by calling a single function. So, depending on your project, if you want to use a button to switch between them or switch after a certain time limit, you will be able to add that into the loop() of the Main sketch and call the rainbowCycle() or ShootingStar() function based on a conditional statement. Just download and put both the Shooting_Star_Animation.ino and the RainbowCycle_Animation.ino files in the same Arduino folder together and each function can be called within the Main sketch.

  • @akip6322
    @akip6322 6 місяців тому

    👍👍👍

  • @rosbob7819
    @rosbob7819 Рік тому

    wonderful, can i ask if it's possible to recreate the spark fire effects with these leds, you know like exploding in beams independently, i've seen the effect in some lasers, i've thought of using paint maybe, any info is appreciated thanks

    • @rosbob7819
      @rosbob7819 Рік тому

      sry i figured it out, it would br the same way ur using these lights with ledfx could do the same effect!! just need to bubble them or do a line with a buble in the tip or something, thanks for the idea!

    • @Electriangle
      @Electriangle  Рік тому

      @@rosbob7819 I'm not familiar with ledfx, but it does look really interesting from what I see online. I may decide to look into that for a future project.

  • @aadilabduljaleel1784
    @aadilabduljaleel1784 Рік тому

    Great animation! I was wondering how to reverse the animation.... could you help in that?

    • @Electriangle
      @Electriangle  Рік тому

      Hi. Reversing the animation is a simple change. The change would be to put "NUM_LEDS" in the .setRGB() method index and subtract the incrementing count value from it. So, for this line 19 in the code under the Shooting_Star_Animation tab, it would be changed to this:
      leds[NUM_LEDS - (count % (NUM_LEDS+1))].setRGB(red, green, blue);
      I can update the source code on GitHub to include this feature with a reverse option. Let me know if you still need clarification here.
      Edit: I have updated the source code on GitHub to include an option for reversing the direction of the shooting star animation.

  • @lifebarier
    @lifebarier 11 місяців тому

    This seems faster than I can animate my WS2813 on raspberryPi....

    • @Electriangle
      @Electriangle  10 місяців тому

      I haven't used the WS2813 version before. But I know that Raspberry Pi has significantly more processing power than an Arduino. Also the FastLED library can support WS2813 based on the documentation by defining it in the FastLED setup line of code. So may be worth a try.

    • @lifebarier
      @lifebarier 10 місяців тому

      @@Electriangle After digging it seems that it is hardware limitation of leds and not python/RPi speed problems( ? ). I can only push 40fps on 144led strip. I am planning of getting andruino with that library to test though.