Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 20:33
    podaen commented #1300
  • 20:05
    podaen commented #1300
  • 19:49
    Jpipe001 commented #1300
  • 19:48
    Jpipe001 commented #1300
  • 19:42
    Jpipe001 commented #1300
  • 17:41
    podaen commented #1300
  • 15:19
    Jpipe001 commented #1300
  • 15:18
    Jpipe001 commented #1300
  • 15:08
    Jpipe001 commented #1300
  • 15:03
    Jpipe001 commented #1300
  • 14:55
    ATLTVHEAD commented #1300
  • 13:58
    Jpipe001 commented #1300
  • 13:55
    Jpipe001 commented #1300
  • 13:53
    Jpipe001 commented #1300
  • 13:52
    Jpipe001 commented #1300
  • 13:43
    Jpipe001 commented #1300
  • 13:22
    ATLTVHEAD commented #1300
  • 12:18
    Jpipe001 commented #1300
  • 12:14
    Jpipe001 commented #1300
  • 07:50
    podaen commented #1300
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
Marc Miller
@marmilicious
@batKat You need to download the entire FastLED library (which includes the FastLED.h file). Have a look at this video: https://youtu.be/m8LdmM0hC6s
Drew André
@drewandre
hi everyone. quick question that I wasn't able to find an answer to online or by looking at various led stip datasheets. if I have a 5v strip, I get that the data line should be 5v. but what about the clock line? should it also be 5v? and what about a 12v stip -- should data/clock lines be 12v signals or 5v typically? thanks!
Marc Miller
@marmilicious
@drewandre Both Data and Clock are 5V. And with a 12V strip Data and Clock... are also 5V. :)
Drew André
@drewandre
thanks!
Tyler Thrailkill
@snowe2010

So, I've been banging my head against the wall on this for 2 days. Initially I thought it was a memory issue, but after seriously debugging for hours and hours (including getting help in the arduino discord), I've come to the conclusion that it's FastLED.show() that is crashing. It could be due to interop with the free running mode, I'm not sure, I'm relatively new to this. Here's the code. I've highlighted the spot that's revealed it's just FastLED.show() that's crashing. https://github.com/snowe2010/waveform_warning_system/blob/master/waveform_warning_system.ino#L233-L238

Any help would be really really appreciated.

Oh, to go into more detail. The entire program seems to run,but as soon as it hits a FastLED.show statement it immediately jumps back to the setup function and restarts everything.
Tyler Thrailkill
@snowe2010
oh and another thing, I've tested using the ColorPalette sketch and it works across the entire led array so it's gotta be something with my code, i'm just not sure what. and I'm at a major loss. my C experience is minimal, I'm a jvm programmer :joy:
Tyler Thrailkill
@snowe2010
upon closer inspection it appears it's related to the speed at which fastled.show gets called. If I place a long delay in front of the call, then the arduino does not reset to the setup.
Marc Miller
@marmilicious
@snowe2010 There are two things that come to my mind from your initial description. Trying to write pixel data outside of the CRGB array (so if you tried to write pixel data to an led number above your last pixel, past leds[161], then that could cause wackyness in memory, including freezes and restarts. But since you said adding a delay before calling show() fixed the issue, then that doesn't seem it would be the issue if it does indeed keep running (after each pause). The second thought was if the controller is browning out and restarting from becoming starved for power. When you call show, if it suddenly turns a bunch of those 162 leds and your power supply and power distribution to all those leds isn't adequate enough it could cause a brown out, causing the controller to restart. If you'd like to have more people have a look and provide suggestions as to what might be happening, please post your question to the FastLED reddit group. Include the link to your code and also include detailed info about your setup, power supply, and wiring too.
Tyler Thrailkill
@snowe2010
@marmilicious thank you for the help. I think I will post to the sub. I have a 300w 60A psu, and I'm only running the leds at like 32 brightness so I definitely shouldn't be browning out the controller (the controller is running just off of usb power).