In this assignment I applied multiple animations on WS2812 LED Strip.
The functions are powered by FastLED library.
bill of materials:
Arduino UNO
WS 2812 LED Strip (1m, Sealed(waterproof))
Jumper Wires
Button
expected animations;
- One pixel moving down the strip
- One pixel with a tail, fading in 3 pixels
- One pixel with a tail, fading in 4 pixels and bouncing back to start
- One pixel with a tail, fading in 3 pixels and changing color halfway through
- One pixel with a tail, fading in 4 pixels and bouncing 4 times and incrementing its HSV value by one for each step taken
- A blue color which has a random dripping water effect for 3 seconds (interpretative)
- One color which lights the whole strip in various colors for .5 second in a in a lightening effect (interpretative)
video:
Code can be reached through my GitHub repository based on this assignment:
Inside the repository you can access to version 1. which works with button
version 2. which works automatically on loop.
https://github.com/emres13/DT-Lab-2-/tree/master/LedStrip%20Animations
code: