n00b question here. I’m only just getting into coding and have very little experience. I’m trying to create a “simple” color wheel with a line in or mic input for color changes to the beat of music or other audio. I have 450ish 5050RGB 12v LEDs in series. I’m using arduino for now but might go with a teensy.
Do these 5050RGB LEDs work with FastLED? Do I just declare RGB as the type instead of WS2811?
I’m out of time on this project and hoping for some copy and paste love, but I do have just under 2 weeks left.
I have some simple code that changes the color a few times that I grabbed from a lesson, but I would like it to rotate through the color wheel instead of hard coding a few colors.
Thanks Jason, These are the LEDs I am using and I am ditching the little WiFi controller that comes with it. I’m also having some “fun” trying to step the voltage down from 12v for the ESP8266 board. I may just have to use my Arduino since I can run it off of 12v input and split it off to the LEDs before powering the board, but no WiFi which is no biggie this time around as I just want this to be a power it and forget it type of device and don’t care just yet about manually selecting a color, etc. via WiFi.
hey man, looks like those are non-addressable LEDs, so you’ll only be able to change the colour of the whole strip at once. I’ve used an arilux lc-01 wifi controller in the past, and found it worked great. it takes care of power and colour, so all you’ll have to do is provide dc power and connect it to your wifi. at that length (450 in series) you’ll need to address resistive losses due to the thin traces. multiple connection points (ie run cables for r,g,b,+ from the controller to multiple points along the strip with sufficiently thick wires) or multiple controllers.
@Alexander_Forster Thanks for the input. I need to stick with the equipment i have available for now since money is tight and the timeline is closing fast. I have this setup from the link above, and I do realize they are non-addressable. That was kinda part of my original question if these RGB strips are compatible with FastLED or should I just use something else.
I spliced 2 strips together and cut to length. They power on just fine and rotate colors, but only the 3 colors I have programmed via direct code.
Here is the code I am playing with and it works, but I need a looping random color wheel as opposed to just 3 colors.
I grabbed some of it from a Make Use Of tutorial by Ian Buckley, but I added a bunch of definitions and made some modifications. This is a work in progress and I haven’t added the mic/line in code yet except for the pin definition.
I didn’t think the DemoReel100 code would work with a non-assignable LED strip, as previously suggested, so I haven’t tried yet. I guess I can goof with that now.
Here’s an example for simple non-addessable LEDs. See if you can get this working. If so then you can change it to cycling through the rainbow randomly.
@Gerard_Pesce To answer your question a bit more, if you have these LEDs lighting up, then yes they will also work with FastLED and technically you could even use any example sketch. The NUM_LEDS would just be 1 though, as you basically have a really long single pixel. For many sketches changing NUM_LEDS to 1 might not look very interesting, but it should work. In an example anywhere there’s a FastLED.show() that would be replaced with sending the individually r,g,b values to the output pins.