Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Sep 26 21:22
    podaen opened #1301
  • Sep 26 20:33
    Jpipe001 commented #1296
  • Sep 26 20:23
    Jpipe001 opened #1300
  • Sep 26 13:34
    somewhatlurker commented #1261
  • Sep 25 13:26
    peter3099 opened #1299
  • Sep 24 23:56
    JacksonAudio commented #1290
  • Sep 23 22:19
    ngyl88 edited #1292
  • Sep 23 22:13
    ngyl88 commented #1291
  • Sep 23 21:25
    ngyl88 commented #1291
  • Sep 23 21:03
    ngyl88 commented #1061
  • Sep 23 21:02
    ngyl88 commented #1061
  • Sep 23 18:10
    kriegsman commented #1290
  • Sep 23 17:59
    kriegsman commented #1288
  • Sep 23 17:57
    kriegsman commented #1061
  • Sep 23 17:56
    samguyer commented #1293
  • Sep 23 17:55
    samguyer commented #1296
  • Sep 22 15:15
    DeterminedLife edited #1298
  • Sep 22 15:14
    DeterminedLife edited #1298
  • Sep 22 15:09
    DeterminedLife opened #1298
  • Sep 22 08:01
    scaytrase commented #1264
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).
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