Neopixel: Difference between revisions

From Technologia Incognita
Jump to navigation Jump to search
Einstein (talk | contribs)
Einstein (talk | contribs)
Line 56: Line 56:
* Using colorcodes.h instead of rgb values in code, because i got tired of typing numbers :) download colorcodes.h and include it in the source, rename to colorcodes.h
* Using colorcodes.h instead of rgb values in code, because i got tired of typing numbers :) download colorcodes.h and include it in the source, rename to colorcodes.h


** colorcodes.h download here -> [[:File:colorcodes.h.txt]]
** [:File:colorcodes.h.txt]] colorcodes.h


** Sample ON with colorcodes -> [[:File:Neopixel_all_on_colorcodes.ino.txt]]
** [[:File:Neopixel_all_on_colorcodes.ino.txt]]Sample ON with colorcodes ->


** Sample OFF with colorcodes -> [[:File:Neopixel_all_low_colorcodes.ino.txt]]
** Sample OFF with colorcodes -> [[:File:Neopixel_all_low_colorcodes.ino.txt]]

Revision as of 15:52, 17 September 2013

Projects
Participants Einstein
Skills Basic electronics, Programming, Arduino
Status Active
Niche Electronics
Purpose Fun

Welcome to our Neopixel wiki by Einstein

What do we use for this project

  • Neopixel Ledstrip WS2812 60leds/mtr
  • Controlerboard
    • Arduino Ethernet (ready for networking features :))
    • STM

Other stuff you might need

  • Networkcable
  • USB cable
  • Powersupply

Control your Neopixel Leds

Arduino

Connecting

Hardware

  • Connect your Neopixel LED strip DI to pin6 of your Arduino
  • Connect +5V and GND to your Arduino

Software

  • #define NUM_LIGHTS 4 //Number off connected leds (i use 4 in all sources, please change to 60 for 1 meter)
  • #define PIN 6 //Pin 6 for Data

Programming

Software

Arduino Software

Arduino Software can be downloaded here -> http://arduino.cc/en/Main/Software

Adafruit Neopixel libraries

Adafruit Neopixel libraries can be downloaded here -> libraries https://github.com/adafruit/Adafruit_NeoPixel

Examples

Example by Adafruit
Examples by Einstein
  • Using colorcodes.h instead of rgb values in code, because i got tired of typing numbers :) download colorcodes.h and include it in the source, rename to colorcodes.h
    • [:File:colorcodes.h.txt]] colorcodes.h
  • Simple blink in one color

STM

Connecting

Hardware

  • Connect your Neopixel LED strip DI to pin6 of your STM
  • Connect +5V and GND to your STM

Software

  • #define NUM_LIGHTS 4 //Number off connected leds (i use 4 in all sources, please change to 60 for 1 meter)
  • #define PIN 6 //Pin 6 for Data

Programming

Software

STM Software

STM Software can be downloaded here -> https://

Adafruit Neopixel libraries

Adafruit Neopixel libraries can be downloaded here -> libraries https://

Examples

Example by Adafruit
  • Adafruit Neopixel example to get you going https://
Examples by Ralph
  • Simple ON in one color
  • Simple OFF in one color
  • Simple blink in one color

What todo with your LED strip

Fun Hard- and Softwareprojects

by Einstein

Software

  • Remote control leds thru http get requests
    • Webserver with links : In progress (works code soon)
    • Webserver with buttons : In progress (works code soon)
  • Remote control leds thru telnet
    • In progress (works code soon)
  • Knightrider
    • In progress (works code soon)
  • Beachparty lights
    • In progress (works code soon)
  • Policelights
    • In progress (works code soon)

Hardware

  • None yet

by Ralph

Software

  • Running demo on lantern
    • In progress (works code soon)

Hardware

  • reBuilding your own OHM2013 lantern
    • In progress (foto's soon)

Serious Hard- and Softwareprojects

  • Huh?