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.

LedPet

From

Revision as of 21:19, 3 September 2016 by Zeno (Talk | contribs) (Parts List)

Jump to: navigation, search

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 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

#define PIN_LIGHTSENSOR A0 
#define PIN_BUTTON 2

#define PIN_NEOPIXEL 6

#define NUM_LEDS 95

#define BRIGHTNESS 30
<pre>