This wiki has been archived and made read-only.
For up-to-date information about TkkrLab and it's projects please visit our main website at tkkrlab.nl.

Difference between revisions of "LedPet"

From

Jump to: navigation, search
 
(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=
* pulseColor : Fade in/out a color
 
 
* 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.
* whiteOverRainbow
 
 
* 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.
* mixColors : Experimental mix light colors
 
 
* Demo : cycle between all above modes.
 
* Demo : cycle between all above modes.
  
Source will be published soonish  at my personal [https://github.com/zeno4ever/ Github] account.
+
[[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/snapshot/7932602944.html?orderId=77093580550442 AliExpress 144 ws2812 LED strip 1 Meter] US $17.50
+
* (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 AliExpress for $2 or less.
+
* [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.
 
<pre>
 
#define PIN_LIGHTSENSOR A0
 
#define PIN_BUTTON 2
 
 
#define PIN_NEOPIXEL 6
 
 
#define NUM_LEDS 95
 
 
#define BRIGHTNESS 30
 
<pre>
 

Latest revision as of 15:02, 2 September 2017

Project: LedPet
LedPet Picture.jpg
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.

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)




LedPet schematic.png

Resources

Parts List

Other