Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 15:00
    ben-xo commented #1167
  • 14:59
    ben-xo commented #1228
  • 14:36
    ben-xo commented #1228
  • 14:36
    ben-xo commented #1228
  • 14:35
    ben-xo commented #1228
  • 11:43
    ben-xo edited #1263
  • 11:43
    ben-xo edited #1263
  • 11:42
    ben-xo opened #1263
  • Jul 23 22:16
    sblantipodi commented #1237
  • Jul 23 19:40
    marmilicious commented #1262
  • Jul 23 18:24
    d333gs commented #1262
  • Jul 23 18:01
    d333gs opened #1262
  • Jul 23 16:41
    5chmidti edited #1093
  • Jul 23 16:41
    5chmidti commented #1093
  • Jul 23 16:40
    5chmidti synchronize #1093
  • Jul 23 16:39
    5chmidti synchronize #1093
  • Jul 23 16:36
    5chmidti synchronize #1093
  • Jul 23 15:57
    sblantipodi commented #1237
  • Jul 23 15:56
    sblantipodi commented #1237
  • Jul 23 09:53
    imwhocodes commented #1259
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).
Tyler Thrailkill
@snowe2010
looking again, I think that even with the delay it's not working... I'll look closer and see if I can find a bug, but I will probably still post on the sub. thanks again.
Tyler Thrailkill
@snowe2010
@marmilicious the problem was that I was writing outside of the array. thank you for the help the other day
Marc Miller
@marmilicious
@snowe2010 Cool, glad you sorted it out :)
Drew André
@drewandre
howdy everyone. I have a question about multiple controllers. I have a setup where I have 8-way parallel esp32 output using the RMT controller, but am I able to add a separate CRGB object for a single status led without breaking the parallel output of the main 8 strips? the status LED is not the same chipset as the main LED strips (not that it matters since RMT can drive multiple chipsets). I've read the docs for multiple controllers, but I just want to make sure I understand correctly that parallel output is only for one single CRGB object.
Marc Miller
@marmilicious
@drewandre Not sure, did you try it? Ask on the reddit group and tag samguyer as he should know. If you have a few extra pins you could use a basic non-addressable RGB LED for your status LED. https://github.com/FastLED/FastLED/blob/master/examples/AnalogOutput/AnalogOutput.ino
gautamparthasarathyccna
@gautamparthasarathyccna
Hi all... I am trying to wire up a Corsair SP120 fan for RGB. I have an Arduino Uno R3 with the latest Hoodloader2 bootloader installed; however I have no idea how to do the wiring for RGB
Richard
@richardxyx_twitter

Hello everybody 🙂👋🏼

I am working on a pretty large light sculpture involving ~4300 SK9822 LEDs but I have a classic problem: the end of the strip flickers. It only seems to happen when the system starts to draw more power which is super weird to me since the PSUs are rated for much more than what is drawn. I posted a more detailed version on Reddit, I would be very grateful if some of you checked it out :)

https://www.reddit.com/r/FastLED/comments/liaqy9/large_number_of_sk9822_green_flickering_at_the/

Laur Joost
@Jostikas
Hi everyone!
The power management functions basically assume 5V: If you use a lower voltage value in set_max_power_in_volts_and_milliamps it basically just calculates a lower power value and dims more, instead of allowing higher brightness on account of having less voltage drop in the constant current drivers.
I could work on a quick fix, but first wanted to check if anybody even cares? For my own usage I'd have no problem just doing the math and feeding a 5V equivalent power value to the function(also, I've yet to actually NEED to use lower voltage, just was wondering how the power limiting was implemented)
Would it only make sense if actual chipset dependency was included? With something like WS2815 (weird series shunting 12V chip) it would be kind of nice.
Thijs Cadier
@thijsc
Hi All. I'm trying to determine if writing a Rust wrapper around FastLED is feasible. Rust has Arduino support nowadays and can wrap C libs nicely, so it should in principle be possible. First thing I'm running into is that I'm not sure how to compile the library outside of the Arduino IDE. Is there some supported way to build a static lib out of this?
Robert Atkins
@ratkins
I have had the similar thought that it should be possible (though maybe FastLED’s template chicanery makes things difficult) and I’d love to see where you get up to. Please post to the subreddit if you get it working!
williampno
@williampno
Hi all - novice here looking to use Arduino with LED strip for a digital piano, wanting to get the best gear. I've gathered that I need an addressable RGB LED strip (that is a 4-wire chipset) that is compatible with Arduino and that I need to pay attention to the spacing relative to the keys (there are 88 keys and a keyboard measures slightly over 48 inches). Any recommendations on what to buy? Many thanks, I hope everyone is having a good Monday.
Marc Miller
@marmilicious
Hello @williampno The 4 wire strips (like APA102 or LPD8806) that have a data and clock line are faster, but you might not necessarily need a 4 wire chip. WS2812B strips can still do a lot. Are you wanting to have the leds react to audio (like a lineout signal from the piano) or by MIDI? Some common pixels/meter are 32, 60, 144, but you can also find 48, 90-something, 120, 128. There are also pixel strings (more like Christmas "bullet" lights) that could be spaced at a specific distance but are a bit bulky. Post your question to the reddit group with as much detail about your project that you know and you'll probably get some more answers there. https://www.reddit.com/r/FastLED
Diego Godoy
@DiegoHemsworth_twitter
hi, i'm trying to control an LPD6803 led strip.
It is difficult to make it work, it is an old chip, can someone help me?
On the github page it says it has support
Marc Miller
@marmilicious
There could be half a dozen different things wrong so pretty hard to guess without you originating more info. Best if you could post your question to the reddit group. Inside all the info about your setup. Share a link to your test code as needed.
Andreas Hopf
@systembolaget
When running FastLED on the Master (Adafruit Metro Mini) and sending data via I2C to a Slave (same board), the data (single byte values) arrives at the Slave very choppy. Are FastLED and I2C incompatible?
DenverClarke
@DenverClarke
I've got a few programs that run multiple I2C sensors without any issues with FastLED. Can you test with other I2C devices out other communication protocols on a basic program to isolate the problem?
Andreas Hopf
@systembolaget
I also have Arduino Unos and Metros, but it's the same issue. Metro Mini to Metro Mini, Metro to Metro, Arduino Uno to Arduino Uno - I2C on its own works well. FastLED on its own works well. As soon as the Master (with FastLED) has to do I2C to a Slave, data arrives on the Slave in choppy intermittent fashion.
DenverClarke
@DenverClarke
If you make a minimum functional version of your code I can review it.
Andreas Hopf
@systembolaget
Much appreciated. I will do that, make a Master/Slave gist and link it here.
Andreas Hopf
@systembolaget
@DenverClarke Problem solved. Someone on Stackexchange shared their FastLED fork that does away with the interrupt problems. Works perfectly now. See https://stackoverflow.com/questions/51269801/arduino-ignoring-serial-interrupts-when-using-fastled#comment100734987_51273107
Davide Perini
@sblantipodi
Hi all, arduino esp8266 core v3.0.0 seems to have broken fastled badly. Is there someone working on it?
Will fastled survive the core v3.0.0 ? 😁
DenverClarke
@DenverClarke
@systembolaget Awesome. I'll have to bookmark it in case I run across the issue.
Andreas Hopf
@systembolaget
@DenverClarke Better clone it to your GitHub repos before it disappears...
Marc Miller
@marmilicious
@sblantipodi There's an issue open about this on github.
Braeden
@braedenf
Can anyone help me with this issue. I am using the WS2812B RGB Leds with a Teensy micro controller, and with the fast led library all the leds display white continuously. I am able to write other colours and they show but add with the white. I don't have any of these issues with the neopixel library, so I can't think of why it would be my hardware setup.
Braeden
@braedenf
Nvm issue solved. There is a parallel output issue with Teensy 4.0.