Difference between revisions of "Neopixel"

From Technologia Incognita
Jump to: navigation, search
Line 71: Line 71:
  
 
== STM ==
 
== STM ==
* Connecting
+
=== Connecting ===
** PIN 1
+
 
 +
==== 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 ===
 
=== Programming ===
  
 
==== Software ====
 
==== Software ====
===== Software http://none.yet =====
+
===== Arduino Software =====
===== Libraries https://none.yet =====
+
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 ====
 
==== Examples ====
 
===== Example by Adafruit =====
 
===== Example by Adafruit =====
* Adafruit Neopixel example to get you going https://none.yet
+
* Adafruit Neopixel example to get you going https://raw.github.com/adafruit/Adafruit_NeoPixel/master/examples/strandtest/strandtest.pde
  
===== Examples by Ralph =====
+
===== Examples by Einstein =====
  
 
* Simple ON in one color
 
* Simple ON in one color
 
+
    [[:File:Neopixel_all_on.ino.txt]]
 +
 
 
* Simple OFF in one color
 
* Simple OFF in one color
 +
    [[:File:Neopixel_all_off.ino.txt]]
 +
 +
* Using colorcodes.h instead of rgb values
 +
 +
Using colorcodes.h instead of rgb values in code, because i got tired of typing numbers :)
 +
 +
    use this file and include it in the source
 +
    [[:File:colorcodes.h.txt]]
 +
 +
    already changed sources
 +
    Sample ON:
 +
    [[:File:Neopixel_all_on_colorcodes.ino.txt]]
 +
   
 +
    Sample OFF:
 +
    [[:File:Neopixel_all_low_colorcodes.ino.txt]]
 +
 +
* Simple blink in one color
  
 
= What todo with your LED strip =
 
= What todo with your LED strip =

Revision as of 13:54, 17 September 2013

Projects
RGB strip lights.jpg
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

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
  • Simple ON in one color
   File:Neopixel_all_on.ino.txt
  • Simple OFF in one color
   File:Neopixel_all_off.ino.txt
  • Using colorcodes.h instead of rgb values

Using colorcodes.h instead of rgb values in code, because i got tired of typing numbers :)

   use this file and include it in the source
   File:colorcodes.h.txt
   already changed sources
   Sample ON:
   File:Neopixel_all_on_colorcodes.ino.txt
   
   Sample OFF:
   File:Neopixel_all_low_colorcodes.ino.txt
  • Simple blink in one color

STM

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
  • Simple ON in one color
   File:Neopixel_all_on.ino.txt
  • Simple OFF in one color
   File:Neopixel_all_off.ino.txt
  • Using colorcodes.h instead of rgb values

Using colorcodes.h instead of rgb values in code, because i got tired of typing numbers :)

   use this file and include it in the source
   File:colorcodes.h.txt
   already changed sources
   Sample ON:
   File:Neopixel_all_on_colorcodes.ino.txt
   
   Sample OFF:
   File:Neopixel_all_low_colorcodes.ino.txt
  • Simple blink in one color

What todo with your LED strip

Fun projects

  • Building your own OHM2013 lantern

Serious projects

  • Huh?