Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 05:49
    94Soarer opened #1311
  • 00:49
    ssilverman edited #1310
  • 00:49
    ssilverman opened #1310
  • Oct 18 00:50
    alixti commented #1260
  • Oct 18 00:47
    alixti commented #1260
  • Oct 18 00:44
    alixti commented #1260
  • Oct 18 00:44
    alixti commented #1260
  • Oct 18 00:43
    alixti commented #1260
  • Oct 18 00:43
    alixti commented #1260
  • Oct 18 00:43
    alixti commented #1260
  • Oct 18 00:40
    alixti commented #1260
  • Oct 18 00:39
    alixti commented #1260
  • Oct 17 02:14
    ssilverman commented #1309
  • Oct 17 02:13
    ssilverman converted_to_draft #1309
  • Oct 16 09:44
    ssilverman opened #1309
  • Oct 15 11:31
    alorbach commented #1300
  • Oct 15 11:30
    alorbach opened #1308
  • Oct 15 05:12
    94Soarer commented #1302
  • Oct 15 05:11
    94Soarer commented #1302
  • Oct 14 05:20
    MyLive edited #1307
Marc Miller
@marmilicious
@popey456963 That's a good question for the FastLED Reddit group. When you ask you should also mention how many pixels / meter you want, but because 30 vs 60 would make a big difference for example. Providing a sketch or description of the layout might be useful.
Caleb Meyer
@calebmeyer

Hey all, I'm trying to run the example Fire2012WithPalette via VS Code and Platformio IDE. I installed the FastLED library (I can see all the files in libdeps), but I'm getting a literal ton of compilation errors when trying to run it: https://gist.github.com/calebmeyer/0492d7e5d4ca88519e21c34c4c53e478

This is using an arduino nano atmega 328 and an Adafruit Neopixel 12 LED ring. I'm able to verify both work with the NeoPixel library.

Caleb Meyer
@calebmeyer

Looks like my gcc was out of date. Found a thread saying to add

platform_packages =
  ; use GCC AVR 7.3.0+
  toolchain-atmelavr@>=1.70300.0

to my platformio.ini

Jose M. Escrich
@Escrich
Hi to all, I have a question referring number of leds, in this current moment I have two kind of led strips connected to an Arduino Nano and working without problem, my problem arises when I connect a wheel of 24 leds, then I define as #define NUM_LEDS 24, but at same time I need to connect a led strip with 60 leds, my question is, could I maintain the 24 leds definition, and at same time divide, (not physically, without cut anything), in some way the 60 leds strip in several 24 leds groups?
Marc Miller
@marmilicious
Jose M. Escrich
@Escrich
@marmilicious Thanks a lot for your help, I'm just reading your answer now, I'll try tomorrow, thanks again for your help and your time
Harris Weeks
@hweeks
hello, im looking for a bit of help debugging and learning more about how people develop more complex projects
does anyone have advice fir where's the best
place to do that
Marc Miller
@marmilicious
@hweeks have you visited the reddit group? https://www.reddit.com/r/FastLED/ Share a link to your code on pastebin.com that you're having trouble with and I'm sure someone will try to help out.
Davide Perini
@sblantipodi
guys
is there someone using Fastled successfully on ESP32?
same code that runs well on ESP8266 doesn't work well on ESP32
all the strips seems to be working fine but the first led is always OFF or on of some strange colors, it seems that the first led doesn't get the appropriate commands all the times.
any idea on how to solve the problem?
DenverClarke
@DenverClarke
Have you looked at the notes in the FastLED github documentation?
Davide Perini
@sblantipodi
no what notes exactly?
@DenverClarke I read the wiki but I haven't found anything about Fastled and ESP32 issues
DenverClarke
@DenverClarke
Oh, it seems the notes are for the ESP8266. I know there's a good deal of development on the ESP32 from Reddit. You might want to search there for some examples.
I haven't worked with FastLED on my ESP32 yet, otherwise I'd share something my my own.
radgroza
@radgroza
Hi guys, I was digging through FastLED documentation on ways to control 5 bits of brightness of the APA102 leds and while I see some setBrightness calls there is no mention that it actually uses these 5 independent bits of the APA102 leds rather than doing some math on RGB before pushing the 3 bytes to the led. Can someone of you confirm that there is a way to access these 5 bits of brightness control on APA102 leds with FastLED library? Thanks.
Marc Miller
@marmilicious

@radgroza Here you go.

define FASTLED_USE_GLOBAL_BRIGHTNESS 1 // or 2

Use this toggle to enable global brightness in controllers that support is (ADA102 and SK9822). It changes how color scaling works and uses global brightness before scaling down color values. This enables more accurate color control on low brightness settings.
Value 1 means faster bit operations but only uses 6 extra brightness levels (powers of 2).
Value 2 means slightly slower math operations but it uses all 31 brightness levels.

radgroza
@radgroza
@marmilicious Thanks a lot. So, there is no global "forced" brightness to bypass the internal logic of FastLed library? I would rather look for a way to set the brightness independently and then just send out RGB data "as is" to LED controllers without scaling being involved. I presume there is no such way? Please correct me if I am wrong.
connor.profile_name()
@pressy4pie_twitter
Hey guys i'm trying to use FastLED on an arduino nano, with a set of https://www.amazon.com/dp/B01AU6UG70/ref=twister_B01AU6UG2U?_encoding=UTF8&psc=1 these leds.
when i plug 5v into them, they all flash red for a moment, then turn off, but i cant control them. I think they are toast, but i'm not sure how to debug further. I know they worked last year, but i haven't been able to bring them back to life this year
Marc Miller
@marmilicious
@pressy4pie_twitter Is it the same code as last year? Have you tried with one of the basic FastLED examples? Same power supply? Have you confirmed the voltage from the power supply?
Using the correct pin for data? Have a common ground wire between controller and pixels? Have you tried connecting to the second pixel (maybe first pixel is damaged)? Connecting data to the correct (input) end?
@pressy4pie_twitter Post on the reddit group with all the relevant info you can think of, including a link to your code on pastebin.com if you'd like more people to help out.
connor.profile_name()
@pressy4pie_twitter
Sorry; it turned out i was using the wrong "side" of the chain of LEDs. As soon as i switched to the other side, it started working. Thanks for the the help
Perry Naseck
@DaAwesomeP

Hello! Looking into parallel output for NeoPixels. I see the wiki page here: https://github.com/FastLED/FastLED/wiki/Parallel-Output

So there are two methods: the "Parallel output" method and the OctoWS2811 method. It sounds like the parallel method is an improvement over the OctoWS2811 method, but I can't quite tell from the wording. I have a Teensy 3.2. I can use any set of pins, and I am driving 3 lines of 50 LEDs each. Which method should I use?

Marc Miller
@marmilicious
@DaAwesomeP I'd say start out with the Teensy stuff.
Perry Naseck
@DaAwesomeP
as in OctoWS2811?
both are for teensy (though the parallel method supports even more)
Marc Miller
@marmilicious
@DaAwesomeP apologies, I meant skip using OctoWS2811.
vasan25
@vasan25
hi guys, i developed RGB Screen Recorder, a free software to drive neopixels using fastled from sdcard. You can design any custom pixel layout and screen record motion effect into txt or binary format. Embed the rgb effects in your program or load from sdcard to drive the neopixels using Arduino and FastLed offline.
Download for FREE and watch on youtube for program features and demos. Hope you all enjoy using it.
homepage:
https://www.rgbscreenrecorder.com
Program overview:
https://m.youtube.com/watch?v=_A3-kxO_6KI
Drive ws2811 custom pixel layout using Arduino Nano, Fastled and sdcard:
https://m.youtube.com/watch?v=sSXufwXOUPo
Drive ws2812b strip using matrix layout, Arduino Uno, Fastled and sdcard:
https://m.youtube.com/watch?v=c_8gYvnOjkE
Marc Miller
@marmilicious
@vasan25 Great work. Please share it on the FastLED reddit group as I'm sure others would be interested to see this. https://www.reddit.com/r/FastLED
vasan25
@vasan25
@marmilicious Thanks. All links and details have been shared in FastLed reddit group.
Steve Yager
@SteveYager_twitter
I've been looking for a guide on how to set up multiple strings of WS2812B. Can anyone point me to resources on tutorials for complete setup like wiring, buying components, wiring power, and bonus points for tutorials on programming an LED light show to music or any timed soundtrack
Marc Miller
@marmilicious

@SteveYager_twitter I'll point you to this wiki which has a collection of some of the stuff you're asking about.
https://www.reddit.com/r/FastLED/wiki/index/user_examples

After that please feel free to post questions to the FastLED Reddit group and we'll try to help.
https://www.reddit.com/r/FastLED

You might find this sketch useful too for creating a timed animation:
https://gist.github.com/kriegsman/a916be18d32ec675fea8

Matthew Walden
@mwalden2004
I'm using a WS2811 bullet strip, I'm having a weird issue where the entire strand is bringing uncontrollably, but I am seeing what I'm telling the strip to do.. Just with a whole lot of noise -- per say.
Marc Miller
@marmilicious
Make sure you have a common ground connection between the LEDs and your microcontroller.
Matthew Walden
@mwalden2004
I don't think I can do that though
I am using a wall plug specifically a 12v 3 amp plug, and then that goes straight into the LEDs. From there I am just using data from the board.
@marmilicious I don't have any type of bread board or way to connect it without literally just plugging straight into data from the wire.
Matthew Walden
@mwalden2004
actually, just found some wire and mixed the grounds... it worked!!! thank you so much.
Marc Miller
@marmilicious
@mwalden2004 yes, a common ground is a requirement even when the LEDs use a different voltage from the controller. Glad you have it sorted, and happy holidays! :]
Hendrik Röder
@Isotop7
Hey guys, I'm trying to connect an esp8266-connected analog led strip with FastLED and ESPAysncWebServer to HomeKit. I read the docs of FastLED and understood that HSV colors are described in a range of 0-255 as opposed to the standard arc design. This seems to be fine but I did not find any info on how to convert the standard values. When homebridge sends a color update via homekit like (280,90,80) is there any function to convert this to the FastLED boundaries?
Maybe I missed an info but it seems that FastLED just expects colors to be delivered in these custom boundaries
Mark Kriegsman
@kriegsman

Hue is the only element that needs to be scaled. Try
fastledhue = (inputhue * 182) / 256;

That should scale hue appropriately into the range 0..255

Also make sure to explicitly use the “spectrum” conversion functions that FastLED provides, not the “rainbow” ones which are the default. External HSV sources will almost certainly assume “spectrum” distribution of hues, so make sure to use
CRGB rgb = hsv2rgb_spectrum( hsv)

Lastly, these questions are best asked and answered over on the /r/FastLED subreddit. We don’t use Gitter too much these days. Good luck with your project!

(And a warning: I didn’t text the code I just typed here, so I may be off a little bit)
Heh that should read “I didn’t TEST the code”... speaking of typos!
Hendrik Röder
@Isotop7
Thank you for your response! For sat and val I would only multiply them with 2.55?