Difference between revisions of "LedPet"
From
(Created page with "Pet (dutch for hat) with 95 LEDS and selectable program via switch. You can chose between : * RandomPixel * Police * more Source will be published soonish at my personal [...") |
|||
Line 1: | Line 1: | ||
− | Pet (dutch for hat) with 95 LEDS and selectable program via switch. You can chose between | + | Pet (dutch for hat) with 95 LEDS and selectable program via switch. You can chose between patterns with the switch. |
− | * | + | =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 [https://github.com/zeno4ever/ Github] account. | Source will be published soonish at my personal [https://github.com/zeno4ever/ Github] account. | ||
Line 9: | Line 18: | ||
==Parts List== | ==Parts List== | ||
* [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 |
− | * [https://www.arduino.cc/en/Main/ArduinoBoardNano Arduino nano] or cloon | + | * [https://www.arduino.cc/en/Main/ArduinoBoardNano Arduino nano] or cloon at AliExpress for $2 or less. |
* Light sensor | * Light sensor | ||
* Micro Switch | * Micro Switch |
Revision as of 18:29, 2 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
- 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>