Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Sep 18 16:50
    5chmidti edited #1297
  • Sep 18 15:18
    5chmidti opened #1297
  • Sep 18 11:26
    5chmidti commented #1093
  • Sep 18 10:41
    5chmidti commented #1283
  • Sep 18 10:24
    5chmidti synchronize #1283
  • Sep 18 01:17
    jasoncoon closed #1183
  • Sep 18 01:17
    jasoncoon commented #1183
  • Sep 15 09:29
    AlbertoAlosS commented #1295
  • Sep 12 17:05
    marcelinDelcour opened #1296
  • Sep 11 15:00
    marmilicious commented #1295
  • Sep 10 23:52
    zinefer commented #1241
  • Sep 10 22:58
    zinefer commented #1241
  • Sep 10 22:56
    zinefer commented #1241
  • Sep 08 11:52
    AlbertoAlosS opened #1295
  • Sep 08 07:59
    5chmidti commented #1283
  • Sep 08 07:55
    5chmidti commented #1283
  • Sep 08 07:45
    dmadison commented #1283
  • Sep 08 07:32
    5chmidti commented #1283
  • Sep 08 07:28
    dmadison opened #1294
  • Sep 08 00:45
    dmadison commented #1283
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?
Mark Kriegsman
@kriegsman

Ah sorry yes. If they’re giving you 0..100 then this should convert them to 0..255

scaledval = ( inputval * 653) / 256;

This conversion is the same as * 2.55, but uses only integer multiplication and binary bit shifts — its significantly faster than using floating point numbers, especially on lower-end microcontrollers. It’s mostly just a habit for me for this kind of high-volume conversion: it’s computed for every pixel for every frame, and thus worth streamlining.

As always, though, benchmark your own code and use whatever is fastest for your setup.
Please do join us over on /r/FastLED, too!
https://www.reddit.com/r/FastLED/
Mohit Joher
@johermohit
hi team i am kinda new to programming and Arduino in general, i was mesmerized by Leds and fast led examples and i ordered like 3000 wd2811 pixel bullets and after seeing the video but now i am struggling with the controls
i have tried almost all and wled project supports max upto 1200 leds max but not more then that.
i have read about teensy controlling multiple with parallel port but that too 1000 only but with sncy pin they do multiple leds.
then i came across esp32 i2s fast led update but not happening as its loosing packets over wifi
then i found someone did it with esp32 and parallel port but i dont know where to start. so i am asking here about how shoud i proceed
in the struugle i to get it working i have ordered 3 esp8266 and 1 esp32 and a raspberrry pi 3
I have the following arrangements
3000 leds (ws2811 5v) on a panel arranged in snake configuration and power injection every 50 leds with 80 amp 5v power supply
Mohit Joher
@johermohit
forgot to mention i have a ts8000 with sdcard that can do animations on pixel led but from sdcard only not from network , thats why i need control so we can make animations over e1.31 or artnet and use it to control from laptop or desktop
Mark Kriegsman
@kriegsman
Hi Mohit- sounds like a big and cool project. I recommend asking about it over on the main FastLED discussion board at
https://www.reddit.com/r/FastLED/
There are many many more people there, and lots of them have expertise with projects like this. Good luck with it and I can’t wait to see it, both work-in-progress and the finished project!
Mohit Joher
@johermohit
thanks for replying @kriegsman i will ask it on reddit
and soon i will release the video and maybe write an instructable blog on it
batKat
@batKat
comrades, I am trying to download FastLED.h for use with a Arduino project, and am finding it difficult please help