Close

Coding

A project log for Neopixel LED Skirt

DIY Skirt with 120 Neopixel LEDs and motion detection

maketveemakeTVee 02/03/2021 at 17:490 Comments

1. Meteor rain

Simple example using the following lib: https://github.com/ArminiusM/Neopixel which I have found on https://www.tweaking4all.com/hardware/arduino/adruino-led-strip-effects/ 

To install the library, you have to download the AGNeoPatterns folder from the repository above, put it into a zip-file and include this AGNeoPatterns.zip in the Arduino IDE as a library.

It allows me to define virtual strip segments in a long LED strip, so I can control the 6 strips separately even if they are connected to a single pin of the controller.

2. Bouncing Ball

added to my Github: https://github.com/makeTVee/ledskirt as a PlatformIO project.

special version with rainbow color change balls, looks even better ;-)

If you are using RGBW strips instead of RGB strips, you have to change the init parameters for the Neopixels:

RGB: npNeoPixel pixels = npNeoPixel(20, NeoPin, NEO_GRB + NEO_KHZ800, 1.0);

RGBW: npNeoPixel pixels = npNeoPixel(20, NeoPin, NEO_GRBW + NEO_KHZ800, 1.0);

Discussions