Sound reactive LED room + POI fan

Hey guys, I don’t really know what to say, just excited to share.

I used HD107S 60 LED/m strips and use 2 pixelblazes that are controlled with firestorm. One controls 817 and the other 836 pixels. They are able to communicate at 4 MHz despite my proof of concept findings (maybe because they aren’t in rolls anymore?)

The fan just has a cut strip of the leds doing a really simple pattern that turns out to make a flower shape.
I have a lot of ideas for POI :slight_smile: but am waiting for a 144 led/m strip to arrive. Interestingly it is running off a single 18650 battery, no step up converter, and it is still bright and lasts about 12 hours ish. It is taped to the top of the fan blade along with the pixelblaze lol

POI flower code, unprocessed for human consumption, try to understand at your own risk. I was originally going to do POI using animation frames, but gave up in favor of simple maths.

var FRAMES = 5

var image = array(FRAMES)

var size = 1
export function sliderSize(v){
  size=v*2+1
}

for(i = 0; i < FRAMES; i++){
  image[i] = array(pixelCount)
  for(j = 0; j < pixelCount; j++){
    image[i][j] = 1
  }
}

var frame = 0
var h = 0
var s = 0
var v = 0
export function beforeRender(delta) {
  t2 = 1//-time(0.01)
  t1 = triangle(time(.0008))
  frame = (frame+1)%FRAMES
  h += delta/40
}

export function render(index) {
  h = t1 + (index*size)/pixelCount
  h2 = h
  h2 -= t2
  //s = 1
  //v = 1
  hsv(h2, 1, ( h < 1) ? 1: 0)
}
3 Likes