Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Dec 08 16:18
    uberjay commented #1324
  • Dec 08 16:18
    uberjay reopened #1324
  • Dec 08 16:18
    uberjay commented #1324
  • Dec 08 16:18
    uberjay closed #1324
  • Dec 08 14:11
    maruel commented #1324
  • Dec 08 05:59
    piersh-aetheros commented #982
  • Dec 08 05:59
    piersh-aetheros commented #982
  • Dec 08 05:04
    zackees commented #1324
  • Dec 08 02:05
    maruel commented #1324
  • Dec 08 02:01
    maruel synchronize #1324
  • Dec 08 01:40
    zackees commented #1324
  • Dec 08 01:25
    zackees commented #1324
  • Dec 07 19:53
    maruel edited #1324
  • Dec 07 19:47
    zackees commented #1324
  • Dec 07 14:59
    maruel opened #1324
  • Dec 05 22:55
    StefanRvO commented #1165
  • Dec 05 22:34
    StefanRvO commented #1165
  • Dec 05 03:15
    wvijay commented on ccd2c7b
  • Dec 04 22:14
    DmytroKorniienko commented on ccd2c7b
  • Dec 04 14:58
    MythicalForce commented #1279
Martin Falatic
@MartyMacGyver
Teensy 4.x was WIP so I'm trying to understand how he set it all up, and make it work more like other controllers (at least from the user's perspective... Right now it's a bit of a special snowflake and that's why some things don't work quite right with it.
Gamma115
@Bl4ck_Viking_twitter
Hi guys I'm a student currently in 2nd Semester of Programming. My friend ask me to help with her arduino project in which its utilize LED. She bought a non RGB LED strip (she said). Can FastLED be used for it?
Sorry I just can't seem to find a quick answer by googling or reading since its pretty new for me and making a reddit thread is kinda too much for simple question like this.
Thanks
Marc Miller
@marmilicious
Non RGB, as in a single color? Or RGB, but non-addressable led strip? If it's only one color there isn't really much of a reason to use FastLED, although you still could. If it's a non-addressable RGB strip, yes, you can still use FastLED.
Martin Falatic
@MartyMacGyver
I must say it never occurred to me to do this. But what's an example of a non-addressable RGB strip that would actually be driven in this context (more than helping with certain data structures and conversions)?
Gamma115
@Bl4ck_Viking_twitter
@marmilicious I'm sorry for not being specific. It is just a single white LED but in form of a strip.
Gamma115
@Bl4ck_Viking_twitter
She took a photo of the LED. Here it is https://imgur.com/TtNzmWN
Gamma115
@Bl4ck_Viking_twitter
nevermind she bought this one instead https://imgur.com/a/2ajZUKj
Marc Miller
@marmilicious
@MartyMacGyver You could always think of a single color LED (whatever color) as just one of the r,g,b channels and still use FastLED to drive it. Could still design (basically brightness) patterns using palettes or use the wave functions to fluctuate the LED, timing to pulse it, etc. Don't know if using FastLED would make much sense if one had never used the library before, but if one is already familiar then it's pretty straight forward. In most cases probably overkill though!
Marc Miller
@marmilicious
@Bl4ck_Viking_twitter Well there you go! Welcome to the world of RGB. ;) Here's another basic example for analog RGB LED control. https://github.com/marmilicious/FastLED_examples/blob/master/AnalogBasicSetup.ino
You should not power your LED strip through your micro-controller unless you are only using a few pixels because it will draw more current then the controller's pins can safely provide. Power the strip with an external power supply. Search for "analog LED strip wiring" to find many guides. Wiring will look something like this (using the correct voltage for your strip of course):
https://learn.adafruit.com/assets/47917
https://learn.sparkfun.com/tutorials/non-addressable-rgb-led-strip-hookup-guide/all
If you run into questions, please post on the Reddit group and provide all necessary info about your setup. If sharing code post the code on pastebin or gist and share a link to the code.
Gamma115
@Bl4ck_Viking_twitter
@marmilicious ah ok! thank you this will be very helpful
and i will post it on reddit if there is more question since I will know which question to ask Thanks again!
Adhocrates
@IspdChaos_twitter
Having trouble with fastled on an Adafruit Trinket, all of the leds in my pixel string are set to full white (RGB) and don't blink when running the blink example.
adafruit_neopixel lib does work.
num
er NUM_LEDS does determine how many pixels are illuminated, so there's that
Adhocrates
@IspdChaos_twitter
I'm wondering if it's a timing thing. Maybe I can adjust the data rate? don't seem to be able to on 3-wire pixels
Marc Miller
@marmilicious
@IspdChaos_twitter Please create a post on the FastLED Reddit group, hopefully some other Trinket uses can help. Mention what type of pixels you are using, and make sure you are using the latest version of the FastLED library.
https://www.reddit.com/r/FastLED/
XN4k33Db
@XN4k33Db
Good. I am using the leds addressed with fastled and on the led display I put a message with scrool, but when in the loop the fastled runs "atract" sequence ... my display is blocking the scrolling of the text. can you give me a way to solve this?
Alexander Craggs
@popey456963
Hey, I wish to buy a 30M LED strip and control it with FastLED.
I'm a little worried about bandwidth, any advice on models / what I can do?
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.