Difference between revisions of "LedPet"
From
(→Parts List) |
|||
Line 17: | Line 17: | ||
=Resources= | =Resources= | ||
==Parts List== | ==Parts List== | ||
+ | * (officers) hat | ||
* [https://www.aliexpress.com/snapshot/7932602944.html?orderId=77093580550442 AliExpress 144 ws2812 LED strip 1 Meter] US $17.50 | * [https://www.aliexpress.com/snapshot/7932602944.html?orderId=77093580550442 AliExpress 144 ws2812 LED strip 1 Meter] US $17.50 | ||
* Powerbank | * Powerbank | ||
Line 24: | Line 25: | ||
* 2 * 10 K OHM resistor for switch and light | * 2 * 10 K OHM resistor for switch and light | ||
* 470 OHM resistor for LED data line | * 470 OHM resistor for LED data line | ||
+ | * Some ductape to fix the part on the hat. | ||
+ | |||
==Other== | ==Other== | ||
* [https://github.com/adafruit/Adafruit_NeoPixel NeoPixel] Library from adafruit | * [https://github.com/adafruit/Adafruit_NeoPixel NeoPixel] Library from adafruit |
Revision as of 21:19, 3 September 2016
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
- (officers) hat
- 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
- Some ductape to fix the part on the hat.
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>