Skip to content
This repository has been archived by the owner on Dec 10, 2021. It is now read-only.

lumiere-lighting/lumiere-node-arduino-yun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DEPRECATED. See lumiere-client-* projects.

Lumière with Ardunio Yun

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.

Ingredients

There are links to products at Adafruit as reference points; though Adafruit is awesome, there is no requirement to buy products from them.

Controller

Lights

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

Other stuff

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.

Setup

Software

  1. Install the Arduino IDE. Make sure to install the one that supports the Yun, which at this time it is 1.5.8 beta.
  2. Open up the Arduino IDE.
  3. Install libraries. There is a "package manager" in the IDE which is suggested.
    1. Download FastLED. The zip file. This was last tested with the v2-final version.
      1. Load the library in the Arduino IDE by going to Skitch > Import Library > Add Library and choose the zip file you downloaded.
    2. Download ArdunioJSON and load as library like above.
  4. Copy the default config: cp lumiere/config-default.h lumiere/config.h
  5. Edit config values in lumiere/config.h as desired.
  6. Open the lumiere/lumiere.ino file in the Arduino IDE.
  7. Compile and Upload the sketch to your Ardunio Yun.

Hardware

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.

Neopixels and external 5V

The following is a diagram using the Yun with a strand of Neopixels lights and an external 5V power source.

Yun and Neopixels powered by 5V external diagram

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

LPD8806 and external 5V

The following is a diagram using the Yun with a strand of LPD8806 lights and an external 5V power source.

Yun and LPD8806 powered by 5V external diagram

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

About

Lumiere lights made with an Arduino Yun

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published