LedPet
From
Pet (dutch for hat) with 95 LEDS and selectable program via switch. You can chose between patterns with the switch.
Contents
Patterns
- pulseColor : Fade in/out a color
- colorWipe : Fill strip with color (and next color)
- knightRider : What would be a LED strip without this option.
- rainbowCycle : Cycle rainbow colors over the strip.
- whiteOverRainbow
- police : Warn everyone that the police is coming.
- LightBrightnessVU : Testing program for light sensor.
- theaterChase : Showtime
- randomPix : Put random pixel on strip and fade out. Select Green for 'matrix' effect.
- mixColors : Experimental mix light colors
- Demo : cycle between all above modes.
Source will be published soonish at my personal Github account.
Resources
Parts List
- AliExpress 144 ws2812 LED strip 1 Meter US $17.50
- Powerbank
- Arduino nano or cloon at AliExpress for $2 or less.
- Light sensor
- Micro Switch
- 2 * 10 K OHM resistor for switch and light
- 470 OHM resistor for LED data line
Other
- NeoPixel Library from adafruit
- NeoPixel Uberguide for practical info how to connect/control Neopixels.
#define PIN_LIGHTSENSOR A0 #define PIN_BUTTON 2 #define PIN_NEOPIXEL 6 #define NUM_LEDS 95 #define BRIGHTNESS 30 <pre>