Janos MagyarEva Konya
Published © GPL3+

Colors of Photons

This painting change in each moment as new.

IntermediateShowcase (no instructions)24 hours9,916
Colors of Photons

Things used in this project

Hardware components

Adafruit NeoPixel Digital RGB LED Strip 144 LED
×2
acrylic glass/ 1 cm thick
×1
Adafruit Hook-up Wire Spool Set
×1
Adafruit Perma-Proto Half-sized Breadboard PCB - Single
×1
Adafruit Rugged Metal On/Off Switch with Green LED Ring
×1
Capacitor 1000 µF
Capacitor 1000 µF
×1
Resistor 475 ohm
Resistor 475 ohm
×1
wood frame
×1
Adafruit 5V 10A switching power supply
×1
Anker 15600mAh Power Bank
×1
Adafruit Pro Trinket - 5V 16MHz
×1
Photon
Particle Photon
×1
Adafruit Lithium Ion Polymer Battery - 3.7v 2500mAh
×1
Adafruit USB LiIon/LiPoly charger - v1.2
×1
Android device
Android device
×1
Arduino UNO
Arduino UNO
×1
photo foam board
×1

Software apps and online services

Spark Pixels
Thank You very much for this great works!

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)
Adafruit Multi-size wire stripper & cutter
Adafruit solder wire

Story

Read more

Schematics

Colors of photons circuit

Circuit

Code

Fast LED

Arduino
Just simple upload, and try to change, play with it :) This for Adafruit Pro Trinket or any Arduino thing with Arduino Ide or Codebender.cc
#include <FastLED.h>

#define LED_PIN      9
// Information about the LED strip itself
#define NUM_LEDS    144
#define CHIPSET     WS2812
#define COLOR_ORDER GRB
CRGB leds[NUM_LEDS];

#define BRIGHTNESS  255



// FastLED v2.1 provides two color-management controls:
//   (1) color correction settings for each LED strip, and
//   (2) master control of the overall output 'color temperature' 
//
// THIS EXAMPLE demonstrates the second, "color temperature" control.
// It shows a simple rainbow animation first with one temperature profile,
// and a few seconds later, with a different temperature profile.
//
// The first pixel of the strip will show the color temperature.
//
// HELPFUL HINTS for "seeing" the effect in this demo:
// * Don't look directly at the LED pixels.  Shine the LEDs aganst
//   a white wall, table, or piece of paper, and look at the reflected light.
//
// * If you watch it for a bit, and then walk away, and then come back 
//   to it, you'll probably be able to "see" whether it's currently using
//   the 'redder' or the 'bluer' temperature profile, even not counting
//   the lowest 'indicator' pixel.
//
//
// FastLED provides these pre-conigured incandescent color profiles:
//     Candle, Tungsten40W, Tungsten100W, Halogen, CarbonArc,
//     HighNoonSun, DirectSunlight, OvercastSky, ClearBlueSky,
// FastLED provides these pre-configured gaseous-light color profiles:
//     WarmFluorescent, StandardFluorescent, CoolWhiteFluorescent,
//     FullSpectrumFluorescent, GrowLightFluorescent, BlackLightFluorescent,
//     MercuryVapor, SodiumVapor, MetalHalide, HighPressureSodium,
// FastLED also provides an "Uncorrected temperature" profile
//    UncorrectedTemperature;

#define TEMPERATURE_1 DirectSunlight
#define TEMPERATURE_2  DirectSunlight

//#define TEMPERATURE_1 OvercastSky  //ezek nagyon jok egyutt
//#define TEMPERATURE_2 MercuryVapor

// How many seconds to show each temperature before switching
#define DISPLAYTIME 3   
// How many seconds to show black between switches
#define BLACKTIME   0.0

void loop()
{
	// draw a generic, no-name rainbow
	static uint8_t starthue = 0;
	fill_rainbow(leds + 0, NUM_LEDS - 0, --starthue, 2);  //try to put lower and higher starthue 

														  // Choose which 'color temperature' profile to enable.
	uint8_t secs = (millis() / 1000) % (DISPLAYTIME * 2);
	if (secs < DISPLAYTIME) {
		FastLED.setTemperature(TEMPERATURE_1); // first temperature
											   //leds[0] = TEMPERATURE_1; // show indicator pixel
	}
	else {
		FastLED.setTemperature(TEMPERATURE_2); // second temperature
											   //leds[0] = TEMPERATURE_2; // show indicator pixel
	}

	//Black out the LEDs for a few secnds between color changes
	//to let the eyes and brains adjust
	if ((secs % DISPLAYTIME) < BLACKTIME) {
		memset8(leds, 0, NUM_LEDS * sizeof(CRGB));
	}

	FastLED.show();
	FastLED.delay(45);                //minel tobb a szam annal lassab 
}

void setup() {
	delay(3000); // power-up safety delay
				 // It's important to set the color correction for your LED strip here,
				 // so that colors can be more accurately rendered through the 'temperature' profiles
	FastLED.addLeds<CHIPSET, LED_PIN, COLOR_ORDER>(leds, NUM_LEDS).setCorrection(TypicalSMD5050);
	FastLED.setBrightness(BRIGHTNESS);
}

This for the Particle Photon

Use with https://build.particle.io/build

Credits

Janos Magyar

Janos Magyar

1 project • 17 followers
Eva Konya

Eva Konya

1 project • 2 followers
With my artworks I would like make harmonious living space where people feel comfortable More about me evakonya.com

Comments