DEPRECATED. See lumiere-client-*
projects.
Lumiere. Change holiday lights around the world.
Here you will find code and instructions on how to set up some Lumiere lights with an Arduino Yun. By default, it will talk with the main Lumiere application at lumiere.lighting, but you can also set up your own Lumiere server.
There are links to products at Adafruit as reference points; though Adafruit is awesome, there is no requirement to buy products from them.
- An Arduino YÚN.
- Any lights supported by FastLED. NeoPixels are a good choice.
- You will have to update configuration in the firmware script.
- Depending on the amount of lights you have, you will have different power requirements; consult information regarding your strand of lights.
For prototyping, you will probably, but not necessarily, need the following (note that you can probably get a kit with most of this stuff, too):
- Breadboard
- Jumper/prototyping wires
- Resistor, any will do; this is just to go in between the LED data connector to help protect it.
- If you need more power than what the Arduino Yun can provide, you will need something like the following:
- Capacitor to be connected to the power supply in parallel so that a possible intial power surge will not harm your LEDs.
- 5V 10A power supply. This power source is solid and will power many lights.
- Female DC power adaptor used to connect the power supply to the breadboard and then the lights and Arduino. For those of us that don't know about these things that well, the
-
should be connected to ground and+
to the 5V power.
- Install the Arduino IDE. Make sure to install the one that supports the Yun, which at this time it is
1.5.8 beta
. - Open up the Arduino IDE.
- Install libraries. There is a "package manager" in the IDE which is suggested.
- Download FastLED. The
zip
file. This was last tested with thev2-final
version.- Load the library in the Arduino IDE by going to
Skitch > Import Library > Add Library
and choose thezip
file you downloaded.
- Load the library in the Arduino IDE by going to
- Download ArdunioJSON and load as library like above.
- Download FastLED. The
- Copy the default config:
cp lumiere/config-default.h lumiere/config.h
- Edit config values in
lumiere/config.h
as desired. - Open the
lumiere/lumiere.ino
file in the Arduino IDE. - Compile and Upload the sketch to your Ardunio Yun.
The following are some example of how to hook up the lights. Please read all the relevant information about the lights you have before connecting them up.
The following is a diagram using the Yun with a strand of Neopixels lights and an external 5V power source.
Here's the relevant config to update; the default is setup for this case so there's not much to change:
// This is up to how many lights you have
#define NUM_LEDS 320
The following is a diagram using the Yun with a strand of LPD8806 lights and an external 5V power source.
Here's the relevant config to update:
#define LED_TYPE LPD8806
#define DATA_PIN 3
#define CLOCK_PIN 13
// This is up to you
#define NUM_LEDS 320
// The lights there were tested needed a different order, but
// this may change for your lights
#define COLOR_ORDER GRB