Profile

Cover photo
Peter Buelow
Works at Life Fitness, Inc.
Attended Ball State University
83 followers|92,746 views
AboutPostsPhotos

Stream

 
How would I go about getting a candle light effect using a 12 LED ring from Adafruit? I tried Fire2012 from +Mark Kriegsman, but that doesn't look right. I want it to just be sort of a bright candle effect, limited color range, and using a palette so I can modify it to be and ice candle for cool nights.

I've got a tiki torch using a ball mason jar and a photon to drive the lights. I frosted the glass, and am putting it on top of the tiki torch base you can buy from Home Depot or Lowes. So far, so good. But now I gotta get the right effect. I am just striking out. Good coder, just not artistically creative, so I am not getting something that might look like the flame from a tiki torch.

I might also make it use the Adafruit Jewel which would move the lights farther from the glass. Just a thought.

Anyone creative with this? I'm drawing a blank. I will share my Eagle board via github which fits nicely into the 3" mason jar opening leaving the electronics sealed for the most part.
1
Marc Miller's profile photoMatt Richard's profile photoPeter Buelow's profile photoKen White's profile photo
5 comments
 
+Peter Buelow -  check out the post by +Christopher Smolinski and his digital fireplace (put the word “fireplace” in the FastLED community search box and scroll to the bottom).  He uses +Mark Kriegsman’s "holiday twinkle" code with a palette of red, orange, and yellow.  I tried this with a 24 NeoPixel ring using an Arduino Uno and a glass with tissue paper in the glass covering the ring.  It looks nice.  I am sure you can adjust the palettes and other variables to get the effect you want.
Add a comment...

Peter Buelow

Discussion  - 
 
Has anyone done aquarium lighting? There are two purposes for me for this activity.

1. To turn the light on and off at a given time every day, so I don't have to remember to do it.
2. I'd like to do something which is more blue white early and late, and during the day, sunlight. Maybe some varying levels such as clouds gently passing.

I know this is a lot for a small fish tank, but I have a lid which has a very nice light apparatus that I can pillage to create a much better one. I'm going to use a Photon as the controller to get easy access to the network, so just keep in mind I'm not on master please.

Thoughts? I'm going to prototype this next week when I get a few minutes. However, given the level of color and blending awareness here, I thought I would get some ideas first.

Going to be somewhere in the neighborhood of 10 WS2812, pry two strips of 6 from the 30 per meter adafruit setup. I also plan to do some palettes which may show off fish colors better as well, but the primary purpose is just to keep their schedule fairly normal.

Thanks.
1
Andrew Tuline's profile photoAdam Groves's profile photoTerkel Sorensen's profile photoPeter Buelow's profile photo
4 comments
 
Thanks. So, freshwater, small, no real plants now. Keeping it simple with 2 small kids is the goal. I used to have a pretty elaborate freshwater setup, but that was 25 years ago. I may try for that again in the future, but not now.

Nothing more than small colorful fish from the Amazon I would assume right now. Think Danio, Gourami, Tetra, and maybe some sort of bottom feeder, etc. Finding a way to make some of the colors pop is a goal, so adding some blue/purple might be nice. Mostly though, I just want to make sure the fish are comfortable and I don't forget to turn on/off the light.

I do plan to extend this for control of temp and do PH and other monitoring in the future, but that's just because I can and will have a Micro sitting mostly unused to do it.
Add a comment...
 
I can't for the life of me find a reference to an already set and nicely laid out Christmas Palette. I built one, but I don't love it, and am wondering what others have used. Searching the forum and Google isn't turning anything up, though I'm sure this isn't the first time someone has asked.

Can someone share their tested and nicely arranged Christmas palette with me?
2
Mark Kriegsman's profile photoJeremy Spencer's profile photoPeter Buelow's profile photo
11 comments
 
Mark's palette is nice. I'm playing it tonight using his twinkles code. The colors are very nice and work well. The only change I made was to add a Red and Blue replacing two of the whites, as it was  a little too much white in my opinion. 

Thanks +Mark Kriegsman 
Add a comment...

Peter Buelow

Discussion  - 
 
As I wait for Photon support and hack away at my Teensy to get the patterns correct, I happened upon Daniel's comment regarding IR and 2812's. The statement was that IR doesn't work with AVR chips, but should/might work with the ARM M-Cores. Any specific documentation on this? Thoughts? Suggestions?

I can't really test it yet, but my goal is to put an IR receiver in with my Photon so I can run it on battery, and enable WiFi as needed to change programs or upload new firmware. I'm putting up some tiki type lights around a pool, and want to control them remotely (change displays, set brightness, upload firmware, etc). My thought was to put IR receivers in each one, and then listen for a very simple IR code which would signal that it is time to enable WiFi for a few minutes. Since I'm just driving a few LED's, I can run all night on a rechargeable and use solar to power it back up during the day.

I'll take suggestions though, if the IR idea just won't work. Individual buttons are a problem as the lights aren't exactly remote, but the pool side with the lights isn't super easy to walk around.
1
Daniel Garcia's profile photoPaulStoffregen's profile photo
9 comments
 
Good to know.  I'll try to put something together for WS2811 using PWM & DMA, to serve as a driver FastLED can use.
Add a comment...

Peter Buelow

Show off your work!  - 
 
Got it working. The effect is really slick. I'm not using any of the scale or log functions though, as to be honest, I don't know how. Anyway, ill post the code later today when I get some time. Ill also post a video of the windows when I fix the board they are connected to. It seems to have burned out. 
6
Peter Buelow's profile photo
2 comments
 
Ok, I've finally got it working. I think there is probably a bug or two still living there, and it's for 40 LED's, not 460. But still...

The .ino
http://paste.ofcode.org/hdcgjYxCwftJgf2qsu88DZ
And I created a couple of classes in a .h file.
http://paste.ofcode.org/tVnDTFigaaM2T37pY6U6ss

Put them together, and it seems to work pretty well. I'd take some feedback on any optimizations, although to be honest, it seems to be pretty functional, so optimization isn't specifically necessary. Feedback or bug's pointed out would be super cool though.
Add a comment...

Peter Buelow

Discussion  - 
 
Local Dimming Question: I have 4 arrays of 120 LEDS all running nicely in my front windows. They currently do a rather bland Christmas Tree light type of display (randomly blinking different colors). However, I'd like to expand that and make random pixels in each array slightly brigthen, then dim, and return to the original brightness as a new color. I have been trying to use the Anti-aliased example to do this, but can't quite figure out how to get an RGB color from the pixel in question into HSV so I can use that code? The other dimming functions all take arrays all take arrays of pixels. Two thoughts I had.

1. Is it possible to have a non linear array of pixels that I can send to fadeToBlackBy()? And if it is, how would I use this or another function to brighten to max first, and then dim to black? is there a penalty to sending these functions a single pixel array? I assume they don't return until the operation is complete, so this isn't likely what I want to do.
2. How could I modify the anti-alias example to do this? I think that actually might be a better way to do it, but I don't see how to translate so I can query the set color first and then do my little display.

Thanks for any help.
1
Peter Buelow's profile photoMark Kriegsman's profile photo
2 comments
 
Happy to share the code and the light!

As for a multi-colored version of this code, there are a lot of ways to skin the proverbial cat.

The least-weird way is that along side your
  CRGB leds[NUM_LEDS];
array, you also declare an array of HSV colors, one for each led, like this
  CHSV pixelColor[NUM_LEDS];

Then you do all your animation in the pixelColor array, and each time just before you call FastLED.show(), you do this:
  hsv2rgb_rainbow( pixelColor, leds, NUM_LEDS);
  FastLED.show();
This will convert all your pixelColor's into RGB values in the leds array, and then display them.

The problem is that this takes up exactly twice as much RAM as just keeping RGB values around, and you may not have that much RAM.  Probably don't in fact.

Another way to to it is to have a separate, smaller array of "which pixels am I animating right now", and for each of those pixels, keep information like what the new target hue is, what the current brightness is, whether you're still brightening the old color or fading in a new color, etc.  This takes way less RAM, but needs more code (and thinking).

There are, of course, lots of other ways to do it, too, but at this point I'd recommend playing around a bit and see what you come up with.
Add a comment...
Have him in circles
83 people
Jessica Jedlicka's profile photo
Josh Warren's profile photo
SUNAN CCTV's profile photo
Philip Lee's profile photo
Walt Miner's profile photo
Ryan Brock's profile photo
Ivan Andrei's profile photo
Sarah Kutza's profile photo
Jerry “Benz” Chukwuemeka's profile photo
 
Simple question I think. What is the best way to tell if some pixel is at half brightness? I have a simple nightlight in my daughter's room that currently just blinks an LED ring from Adafruit, one pixel on showing through a globe with stars painted on it. Neat little lit moving star field on the ceiling. However, I'd like to do something where I light one for a few seconds, and then dim it rather quickly but start to brighten another when I've dimmed the pixel by say 50%.

I've thought about doing this with CHSV, where the idea is pretty simple, but there aren't enough colors I think. The nightlight doesn't work well with darker colors like red and orange. So, the CRGB gamut is where I want to be because I can do all sorts of bright colors. But, I can't tell when a color is roughly halfway dimmed so I can start the next one.

Anyone have any easy way to do this? Thoughts?
1
Peter Buelow's profile photoMarc Miller's profile photo
3 comments
 
Also, if you know you're darkening it by a fixed amount each loop or iteration, then you would know that after x number of loops or iterations you would have reached that 50% or lower value and it's time to trigger lighting up another pixel.
Add a comment...
 
Hello +Daniel Garcia and +Mark Kriegsman, I'm looking for some help if you have time. I want to use the Photon, but also play with FastLED master (to get the latest CRGBSet code). But, I have a problem. The FastLED-Sparkcore isn't even close to the latest master. I figured I could fork it and make it work, but I'm having little to no luck getting it to build.

I have a gist containing where I'm stuck during the build at

https://gist.github.com/buelowp/a6818ab69428e61cf100

Code is at

https://github.com/buelowp/FastLED-photon

I'm hoping this is something dumb, but I'm worried that you are too far ahead and it will be a lot of work for you or me to pull it into working shape.

Note, I'm building this using Eclipse, in this case from the command line. My project seems to be somewhat complex, and the Web IDE doesn't do it well. I was able to build this using the FastLED-Sparkcore for a long time, but as stated above, I want to use the latest and greatest now for CRGBSet reasons.

Plus, I'm willing to do the work to keep this up to date with master over time. I think this is just one of the latest commits doing something odd though, so maybe it won't be too bad?

Thoughts?
1
Daniel Garcia's profile photoPeter Buelow's profile photo
3 comments
 
Their web IDE is terrible. I mostly just hate it, but use it for some quick one off items when having web access is nice and my laptop isn't handy. Command line and Eclipse is way nicer.

I'd like to help here, and can dedicate a little bit of time to this. I just don't want to get my fork running only to find out it was way different than what you did. I can wait, this is obviously not critical (says my wife). Just love the idea of the CRGBSet and want to start trying that out.
Add a comment...

Peter Buelow

Discussion  - 
 
Has anyone done any work with FastLED on a connected Micro, using TCP or UDP to control it? I'd like to setup a Photon with some sort of handler that allows me to set a program, color, or brightness in close to real time using UDP messaging (think Hue control like). The Photon should do this very neatly.

I know I can do this, pry a bunch of interesting ways. The question is, what have others done, and what issues were solved? Would openpixelcontrol work for this? Are there other LED control protocols (especially lightweight ones for use with a micro and UDP)? Should I just hack up some simple UDP protocol and do it that way? The Particle.io REST interface isn't a good choice, too slow, and I just started looking into OPC. This will all be local network driven via WiFi, so I'm curious to know what others have done and how they figured it all out.
1
Peter Buelow's profile photoSimon Hermansen's profile photo
12 comments
 
if you just want to set a single pixel at a time, OSC might be the way to go, you can type in OSC messages from telnet as well. The format could be something like "/1/(number of the pixel you want to set)/(the colour )" 
Add a comment...

Peter Buelow

Show off your work!  - 
 
Sorry, meant to show this before, but got the window lights finally doing exactly what I want. It's subtle, but I think it's looks good against all the more glaring high intensity blinking off the shelf lights. Hope the video can show this though. Note that there are 4 windows, not just the two showing.


Thanks to Mark Kriegsman (who I can't seem to link now) for pointers that helped me get here.
2
Benji Park's profile photo
 
I love having the more subtle light show that isn't an epileptic episode waiting to happen.
Add a comment...
 
How does one use += to gradually brighten a pixel? I see a lot of functions to gradually dim a pixel, but I want to take a pixel, make it brighter, then make it dim to black, one operation at a time. Ideally, I'd use +=/-=/%=, but I don't know exactly how to use those to make something brighter. Any help is appreciated.
2
Mark Kriegsman's profile photoPeter Buelow's profile photo
14 comments
 
Great explanation, thanks. That explanation makes it for me. I've got some code worked up which seems not complicated enough, but should work, and I hope to try it out later tonight. The help has been outstanding.
Add a comment...

Peter Buelow

Discussion  - 
 
I have a question about wire distance. I want to create my own front walkway lighting. I figure I can use either the neopixel stick or the neopixel jewel in a custom housing to line my walk way. Figure between 15 and 20 total housings. But they will have about 4 ft of wire between them. Is that a problem? I want to drive all of these from a single Micro in a small weatherproof enclosure. Can I do this spread so far apart, or will I need to make some compromises?
1
Robert Atkins's profile photoPeter Buelow's profile photoSteve French's profile photo
10 comments
 
Like Robert said its 20mA per LED, which for full worst-case white is R+G+B = 20+20+20 = 60mA = 0.06A per pixel.  It adds up fast, so always be aware.  If you start to use more and more pixels, then perhaps your wire gauge needs to go up or else distribute your power supplies.
Add a comment...
People
Have him in circles
83 people
Jessica Jedlicka's profile photo
Josh Warren's profile photo
SUNAN CCTV's profile photo
Philip Lee's profile photo
Walt Miner's profile photo
Ryan Brock's profile photo
Ivan Andrei's profile photo
Sarah Kutza's profile photo
Jerry “Benz” Chukwuemeka's profile photo
Education
  • Ball State University
Links
Work
Occupation
Software Manager
Employment
  • Life Fitness, Inc.
    Engineering Manager, 2014 - present
    I am the embedded SW manager for Life Fitness workout products.
Basic Information
Gender
Male