Difference between revisions of "LedPet"
From
(11 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | {{Project | ||
+ | |ProjectName=LedPet | ||
+ | |Owner=zeno4ever | ||
+ | |Status=100% | ||
+ | |Skillz=Basic Electronics, Software (C) | ||
+ | |Summary=Hat with LED strip controlled by Arduino nano | ||
+ | }} | ||
+ | |||
Pet (dutch for hat) with 95 LEDS and selectable program via switch. You can chose between patterns with the switch. | Pet (dutch for hat) with 95 LEDS and selectable program via switch. You can chose between patterns with the switch. | ||
=Patterns= | =Patterns= | ||
− | |||
* colorWipe : Fill strip with color (and next color) | * colorWipe : Fill strip with color (and next color) | ||
* knightRider : What would be a LED strip without this option. | * knightRider : What would be a LED strip without this option. | ||
* rainbowCycle : Cycle rainbow colors over the strip. | * rainbowCycle : Cycle rainbow colors over the strip. | ||
− | |||
* police : Warn everyone that the police is coming. | * police : Warn everyone that the police is coming. | ||
* LightBrightnessVU : Testing program for light sensor. | * LightBrightnessVU : Testing program for light sensor. | ||
* theaterChase : Showtime | * theaterChase : Showtime | ||
* randomPix : Put random pixel on strip and fade out. Select Green for 'matrix' effect. | * randomPix : Put random pixel on strip and fade out. Select Green for 'matrix' effect. | ||
− | |||
* Demo : cycle between all above modes. | * Demo : cycle between all above modes. | ||
− | + | [[Media:LedPet.ino.zip|Download source here]] (be sure to download [https://github.com/adafruit/Adafruit_NeoPixel NeoPixel] Library from adafruit) | |
+ | |||
+ | |||
+ | |||
+ | {{#ev:youtube|zqoZPLEY528}} | ||
+ | |||
+ | |||
+ | |||
+ | <gallery mode="packed-hover> | ||
+ | File:IMG_4127.JPG|Light Sensor | ||
+ | File:IMG_4126.JPG|Arduino Nano connected | ||
+ | File:IMG_4124.JPG|Backside | ||
+ | </gallery> | ||
+ | |||
+ | |||
+ | [[File:LedPet_schematic.png|450px]] | ||
+ | |||
=Resources= | =Resources= | ||
==Parts List== | ==Parts List== | ||
− | * [https://www.aliexpress.com/ | + | * (officers) hat |
+ | * [https://www.aliexpress.com/item/1m-ws2812b-ws2812-144led-m-rgb-led-strip-waterproof-ip30-ip67-14keys-rf-wireless-led-rgb/32700470503.html AliExpress 144 ws2812 LED strip 1 Meter] US $17.50 | ||
* Powerbank | * Powerbank | ||
− | * [https://www.arduino.cc/en/Main/ArduinoBoardNano Arduino nano] or cloon at | + | * [https://www.arduino.cc/en/Main/ArduinoBoardNano Arduino nano] or [http://www.dx.com/nl/p/mini-usb-nano-3-0-atmega328p-development-board-parts-for-arduino-441217?Utm_rid=92935131&Utm_source=affiliate cloon at Dealextream] |
* Light sensor | * Light sensor | ||
* Micro Switch | * Micro Switch | ||
* 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 parts 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 | ||
* [https://learn.adafruit.com/adafruit-neopixel-uberguide/overview NeoPixel Uberguide] for practical info how to connect/control Neopixels. | * [https://learn.adafruit.com/adafruit-neopixel-uberguide/overview NeoPixel Uberguide] for practical info how to connect/control Neopixels. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Latest revision as of 15:02, 2 September 2017
Project: LedPet | |
---|---|
Name | LedPet |
Initiator | zeno4ever |
Status | 100% |
Skills | Basic Electronics, Software (C) |
Summary | Hat with LED strip controlled by Arduino nano |
Pet (dutch for hat) with 95 LEDS and selectable program via switch. You can chose between patterns with the switch.
Contents
Patterns
- 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.
- 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.
- Demo : cycle between all above modes.
Download source here (be sure to download NeoPixel Library from adafruit)
Resources
Parts List
- (officers) hat
- AliExpress 144 ws2812 LED strip 1 Meter US $17.50
- Powerbank
- Arduino nano or cloon at Dealextream
- 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 parts on the hat.
Other
- NeoPixel Library from adafruit
- NeoPixel Uberguide for practical info how to connect/control Neopixels.