I can't rate this little series high enough. Superb set of videos, thank you so much. What I really love is that you can watch them, take screenies, copy some code, and then just play them and listen...it has sunk in that way, brilliant job Scott.
@tape102104 жыл бұрын
Best FastLED tutorials on youtube!
@ScottMarley4 жыл бұрын
Thanks dude, I appreciate you taking the time to comment.
@duoduo90583 жыл бұрын
Hey, I'm an architecture student from China designing a temporary architectural/art installation for my graduation project. I just want to let you know that your tutorials are probably helping many people from different backgrounds! Thanks a lot!
@amarissimus293 жыл бұрын
This deserves some repetition - by far the best FastLED series. By FAR. Honestly, if you watch this whole series and can't understand the library, you never will. Fantastic stuff. Thanks.
@dylanmartin36054 жыл бұрын
Love this series! New to arduino and by far the best tutorials I have found on KZbin thank you for your work and keep it up!
@marcomanfroi3 жыл бұрын
Thank you for making those tutorials, you are helping me a lot to learn FastLED. Best tutorials online so far
@jahwerx3 жыл бұрын
Textbook KZbin video. PURE content. NO filler. Anxiously awaiting more. In the meantime, I'm going to use these models to create an ESP webserver which will drive multiple patterns with user input. This will reduce my coding time by at least 50%, as I am not a coder either ;)
@ScottMarley3 жыл бұрын
If you want to see how to make a websockets interface for control, have a look at my VU meter build here kzbin.info/www/bejne/b4Gom6l8oMmjf6c
@PJ_Bottoms2 жыл бұрын
Your videos are only 14 minutes long, but following along and playing with the code i spend over 2 hours on each video....Thank you so much for making this series i love it to death and will have to go back a few times to truly understand everything you have taught here.
@ScottMarley2 жыл бұрын
Wow, that's real a commitment to learning this stuff! Thank you for your kind words, I hope you have fun making things :)
@Karl_Levine3 жыл бұрын
Great job Scott. Just great. Bonus greatness points for talking classes here and what they bring in this context.
@rorywquin3 жыл бұрын
Good stuff mate. No timewasting and BS just facts. Love it.
@christopherlyons76132 жыл бұрын
Hi Scott. Great set of tutorials! Thanks. Have you done anything more with FastLED since you put these out? Any chance of getting a few more detail tutorials showing more advanced ways of using FastLED? Think lots of people would appreciate that. Would love to see some of this running on a faster & less memory constrained micro like the ESP32 or Pi Pico. Would also like to see ideas on how to use audio input and some of the FastLED patterning & class concepts to produce interesting light shows. I'm currently playing around with this using an ESP32 and I2S audio input. Thanks.
@Richie_3 жыл бұрын
These tutorials have helped me do exactly what I've needed to do. The button changing the patterns is great. I've been able to do my own show-reel sketch with gradients, rainbows and beatsin8 patterns.
@julesmeredith20423 жыл бұрын
Excellent tutorial thank you. I have managed to get my head around using classes and using blends, but (there is always a but!!) cannot fathom how to combine the two. Any chance of a "Beyond the Basics" series please.
@jstro-hobbytech3 жыл бұрын
Your use of classes is very clever
@scottstevens75694 жыл бұрын
Once again, Very interesting and well presented. Looking into these less documented or exampled functions is a super thing and providing much needed material. Definitely have to try some of these, especially the crossfading as it reminds me of gradient changes that I hadn't considered other methods of applying. Opening my 20year old can of C is sometimes fun, but the smart tricks are long decayed; luckily the bulk of the actual coding is straightforward. Thanks!
@ScottMarley4 жыл бұрын
Well as I mentioned in the video, I'm no expert on this stuff really! Glad you're finding it useful anyway!
@Marc_Miller4 жыл бұрын
Nice episode Scott. Thank you!
@ariherzig69264 жыл бұрын
Do you have a patreon or paypal or some other way that I can support you? These tutorials are truly the best that I've ever found for FastLED.
@ScottMarley4 жыл бұрын
Hi Ari, it's very kind of you to even think about it! I don't have a patreon as I'm honestly a bit frightened of doing it. I have set up a page here though where you can make a donation but only if you really need to! www.buymeacoffee.com/scottmarley
@B1GJano3 жыл бұрын
great video and series! Doing my first project with your tutorials! Quick question, I'm having trouble keeping the fastLed library and the pattern files working because im having issues with the file location indexing. I have everything including the fastLed library folder in the same location as the codes i want to pattern. Any advice as to how you got it working and in all one location? I even went to file- preferences to change the folder location but still no luck!
@ScottMarley3 жыл бұрын
If you're using the Arduino IDE, use the library manager to install FastLED library. Then you don't put it in the folder with your sketch.
@B1GJano3 жыл бұрын
ok ill give that a try. Thank you for the quick response!
@karim14854 жыл бұрын
This, and I dont want to come over as a sycophant... This is the best tutorial series I have ever seen for Arduino. Arduino doesn't come intuitively to me, so this is pure gold! May I ask whether future series will include - multiple strips? - adding features like -- a sunrise as alarm, ideally using an rtc -- simulating a fire --a microphone or aux input for any musical effects, ideally with an overlay on the current seting, say adding light on with music feature. Thank you very much, looking forward to the upcoming videos. Subbed!
@ScottMarley4 жыл бұрын
That's very kind of you to say so :) multiple strips seems to be a much bigger thing than I had thought, so that might we'll come up in future videos. Regarding sound, I don't have a tutorial as such, but it you watch part 1 kzbin.info/www/bejne/oJnchqSua86hras and part 2 kzbin.info/www/bejne/hJnGaoCshK1jfdU this should give you an idea. Or if you want to go more complicated, see my vu meter matrix kzbin.info/www/bejne/g5jLY4qYobRolcU which is more of a tutorial. Or screw all that and just install Andrew Tuline's sound reactive WLED fork github.com/atuline/WLED
@karim14854 жыл бұрын
@@ScottMarley I Have been inspired to look out for a FastLED Reddit, and there actually is one (including this awesome project www.reddit.com/r/FastLED/comments/jqtsc3/fastled_esp32_realtime_audio_magic/?context=3). Also, this kzbin.info/www/bejne/g5LRm2aLiKl-mKc is fantastic! My dream would be to include these three into one.
@karim14854 жыл бұрын
@@ScottMarley Keep doing what you do, because you do it perfectly - looking forward to the upcoming series!
@misaelsantos76904 жыл бұрын
This video would have been very useful to me a few days ago, I made a gift for my girlfriend with this concept, and i did not know how to program, i use the code of the mask you created , thanks for everything greetings from Mexico
@ScottMarley4 жыл бұрын
Ah well, next time you make something you'll have more idea what your doing! You'll have to make a version 2 :)
@georgkettele6911 Жыл бұрын
Could I send the pattern to the Arduino/ESP via Wifi. I need to control 16 groups of 4 Stripes each (2 meter) via an external control. Each group will use the same pattern. Where to start? Sending an Array with a pattern via Serial?
@No_Plastic2 жыл бұрын
Hi Scott, thank you so much for FastLED tutorials, incredibly helpful. I'm in the middle of a little project where (based on your tutorials) managed to make the LED strip work. However the project needs two buttons, one button when pressed the LEDs will need to start flashing for few seconds then stop on its own. Second button when pressed will need the LEDs to start flashing the same way like the first button press, but only stop once the button is pressed again. Is there a way to make th is happen? I'm quite stuck at the moment and lot of head scratching :) Thanks a lot again
@hungryman543214 жыл бұрын
Thanks so much for this awesome series, and please keep it going
@Sarvesh11107 ай бұрын
Sir I am using the same consept for making my car tail light.. I want to control both side lights with o single Arduino nano. I successfully executed one program but now I am confused how to control left side without affecting the right side strip please help
@PonderousRage3 жыл бұрын
so im having issues. i know i should learn this more but i just need this for once project. i understand most of it but im tring to add additional fast led examples. such as fire or pacfica. all the examples ive found are complete .ino, not .h library. and i cant even copy the code to a new class because the code is actually different. is there annywhere i can find these examples as .h classes?
@Smucklz Жыл бұрын
is there a reason why sometimes my button press works, and other times it does nothing?
@AntonLock2 жыл бұрын
Wow...these are fantastic thankyou. How would you go about starting with one pattern then moving into a palette blend that keeps looping (but the first pattern only occurs once)??? Cheers
@ScottMarley2 жыл бұрын
I'd probably use switch/case statements. Have the initial pattern as case 0, once this pattern is finished (using millis() or another way of keeping track) set it to case 1 to run the rest of the pattern forever.
@AntonLock2 жыл бұрын
@@ScottMarley thanks I’m gonna try that way!!! Would never have gotten this project going if it wasn’t for your tuts 🙏
@AntonLock2 жыл бұрын
hi Scott, still can't get it going and I've been at it for a while... do you offer any kind of private lessons? I'm happy to pay you for your time, cheers Anton
@ScottMarley2 жыл бұрын
@@AntonLock Hi Anton, I'm afraid I'm too busy to offer lessons or to write code for other people. Apologies.
@AntonLock2 жыл бұрын
@@ScottMarley do you by any chance have any tutorials on how to use Switch Case statements in conjunction with millis? I can't find anything out there
@carmatic3 жыл бұрын
12:40 the visuals are being called from a while loop, which checks for isRunning == true, but the statement 'isRunning' will keep returning true because its still in the while loop for executing the visuals, and it never gets the chance to even return to the main loop, much less execute void nextPattern() which contains the code for setting isRunning = false
@ScottMarley3 жыл бұрын
And yet if you try the code, it works ;) the reason it works is due to the use of the oneButton library. Inside each pattern, we call btn.tick() which checks if the button has been pressed. It is has, nextPattern is called, setting isRunning to false. I hope that helps to explain it.
@carmatic3 жыл бұрын
@@ScottMarley ah, yes, I have missed that important detail I have been trying to get FastLED to work on the ESP32, and I was trying to use it's built in touch capacitive pins in lieu of buttons, that's why I have overlooked all the references to buttons in your code
@cjr59722 жыл бұрын
I have attempted to add a fourth piece of code and encountering an odd problem. i’ve changed the three to a four in the button counter. And I have also added a simple fill solid code to set all the LEDs to a certain color. when I had this new fourth animation i can no longer cycle through all of the four options. It will lock up into the fourth and will stop me from cycling back through the other animations. Any help with this would be greatly appreciated thanks in advance.
@Knittenware3 жыл бұрын
How could a multi-position rotary switch (not rotary encoder) be used instead of a button to change patterns?
@ScottMarley3 жыл бұрын
Wire the switch common to ground, and each contact to a digital pin on the Arduino. Declare each pin as INPUT_PULLUP. In your loop, something like if(digitalRead(pin1) == LOW) { runPattern1(); } if(digitalRead(pin2) == LOW) { runPattern2(); } and so on.
@atdiscos98003 жыл бұрын
Hi Scott, Great video!, i have just started playing all things Arduino and pixel LED, i'm an electronic engineer and have good experience of pixel LED'S, so what i have a couple of questions you may be able to help with, i want to combine the multiple patterns section but to be able to pick this from a single DMX channel received by the Arduino via an RS485 receiver IC. I have seen some videos on how DMX can be received to make digital pins go high when channels are active which is great. But what i would really like is a way to assign this received data level to a pattern. i.e. 0-10% pattern 1, 10-20% to pattern 2, 20-30% pattern 3 and so on do you have any idea if i could run the dmx receive code at the same time to make this possible on one Arduino? this would then allow me to pick the pre-stored pattern in the Arduino from my lighting desk without the lighting desk having to run loads of channels to create the same effect, and if possible i would still like to have the facility to also have a button to change the running pattern as well ( i.e. Arduino goes into stand alone mode when no DMX signal is detected) anyway i'm going to work trying out more of your examples for fun and practice. Many thanks for all your help.
@anindyamitra50914 жыл бұрын
Thanks a lot for releasing this just before diwali, you saved me man!👍🏻👍🏻
@ScottMarley4 жыл бұрын
Can't have the festival of light without FastLED!
@anindyamitra50914 жыл бұрын
@@ScottMarley, exactly, I'll always recommend FastLED over Adafruit Neopixel, the built-in utilities are just awesome! BTW, I have used a 100nF capacitor in parallel with the switch to solve the debounce problem and used attachInterrupt() to produce an interrupt whenever a falling edge is detected from the switch and to increment the mode counter variable.
@ScottMarley4 жыл бұрын
@@anindyamitra5091 yeah, interrupts are a good way if doing buttons, I didn't include it in this video to keep things straightforward for now. I like the idea of using a capacitor as a hardware denounce though, good tip!
@rainbowdash22282 жыл бұрын
Hello. I want to combine sketches "crossfadebutton" from episode 5 and sketches "paletteBlending" from episode 3. I need to use sets from palettes in templates and switch between these sets. I don't know much about the subject and I didn't manage to do it. Every time there are new mistakes. If you have free time and desire, could you help with this? I apologize if something is not very clear, my English is not very good
@ScottMarley2 жыл бұрын
Hi, I'm sorry that I don't have time to do this for you. I hope you manage to get something working.
@rainbowdash22282 жыл бұрын
@@ScottMarley I understand, it's okay. Thanks for your reply and have a nice day
@livijusk.75223 жыл бұрын
Hi I hope you read this. One problem that occurred to me was that the led strip is slow to respond to the press of the button. Any idea why?
@ScottMarley3 жыл бұрын
I don't know, it's instant when I run it. Obviously the cross-fade one will be slower as it has to fade from one to the other, but the others should happen straight away. Check your wiring etc but I don't know how that could cause a problem.
@livijusk.75223 жыл бұрын
@@ScottMarley could it be that the long strip(i run 120leds) could be the problem?
@ScottMarley3 жыл бұрын
@@livijusk.7522 No, 120 LEDs isn't a long strip by any means. I really don't know why it wouldn't work for you.
@livijusk.75223 жыл бұрын
@@ScottMarley ye weird. i ran on a another piece of code and the button worked fine but i was using 2 leds
@andrewcarnell6013 жыл бұрын
If using an ESP8622 you need to make a small alteration to the classes examples. When calling the functions they need 'yield()' adding into the while statements to stop an automatic soft reset. while(isRunning) { rainbowBeat.runPattern(); yield(); }
@ScottMarley3 жыл бұрын
Good to know! I've never actually used an 8622 as the esp32 is about the same price and seems to have more features. Is there any reason why you might choose it instead of the 32?
@andrewcarnell6013 жыл бұрын
@@ScottMarley Hi I've used them as they have built-in WiFi which makes MQTT easy. I've got multiple boards dotted all over a building all linked to a RaspberryPi with a NodeRed Control Panel.
@ScottMarley3 жыл бұрын
@@andrewcarnell601 sure, but the ESP32 has WiFi and also Bluetooth, has a much faster CPU, is dual core etc. I'm not saying using an 8622 is wrong in anyway, just wondering if it did something different to the ESP32 that I don't know about :) looks like they're pretty much interchangeable for most projects.
@andrewcarnell6013 жыл бұрын
@@ScottMarley Yes I think so, I just had them available so used them.
@PosTMorteM4 жыл бұрын
Thanks a lot for these tutorials, been very helpful! (enjoy those coffees). Not a fan on commenting, but the effort you've thrown into these videos is amazing and worth my effort on commenting lol. Still on chapter 5, but ideas and questions are arising as I follow through. I hope I can tackle all my coding problems and ideas with this precious info :)
@ScottMarley4 жыл бұрын
Thank you so much. It's really heartening to see that people are finding them useful. I'm afraid you'll have to wait for ep6 though, I have made it yet!
@PosTMorteM4 жыл бұрын
@@ScottMarley still trying to work out some features regarding momentary pushbuttons on my code, the OneButton does not work for more than "OneButton" lol. Know any other library that reads long presses and double-clicks for more than one button? :) Looking forward for that Ep.6 ;) thanks!
@ScottMarley4 жыл бұрын
@@PosTMorteM one button works fine for multiple buttons, and I've used it before for 5 I think? There is an example of two buttons in the onebutton GitHub repository.
@PosTMorteM4 жыл бұрын
@@ScottMarley that is correct, there is. I don't know why it gave me an error when compiling, though. Will have to try again, thanks again for the help! :)
@jamespalea38563 жыл бұрын
Great series I know nothing about coding but am trying to learn. I have installed your class button code and it works but I tried to add different button commands to call specific patterns but it just freezes and then resets to moving dot. Is there any advice?
@donaldmartin19883 жыл бұрын
It's the dummy again. I went through your series. Wonderful. Now I'm going back through, with a NodeMCU rather than an Uno, and the colors are really strange. No blues. I tried the temperature and that kind of thing. But nothing works. Suggestion?
@ScottMarley3 жыл бұрын
The nodemcu is a 3.3V device, can I check that you're powering the LEDs with 5V? No blues sounds like the strip isn't getting enough voltage. Use a multimeter to confirm.
@donaldmartin19883 жыл бұрын
@@ScottMarley Well, it's 4am. I woke up thinking about this. I separated the 3.3v from the 5v supply. And did not have it connected after downloading. Problem solved. Thanks again for your support.
@gregocean3 жыл бұрын
Hi! How to add "pin" and include function on all connected led stripes on code?
@BooBar25213 жыл бұрын
So good explained 🔥
@ScottMarley3 жыл бұрын
Glad you think so!
@mrhomely4 жыл бұрын
I was thinking of doing something like this but with a knob switch so when it turns on it goes to whatever pattern the switch is set too so if there is a favorite it will turn on to that vs having to hit the button a few times
@ScottMarley4 жыл бұрын
Good idea! I guess you would wire each contact on the switch to a digital input on the micro, check which one is active and run that? Or alternatively, wire each contact through a different value resistor to an single analog input and read the voltage to determine which pattern to show. Lots of options!
@ace.johnny4 жыл бұрын
@@ScottMarley Or just store the currently selected pattern to EEPROM, and recall it from there on boot.
@ScottMarley4 жыл бұрын
@@ace.johnny yeah, that's what I normally do. I like the idea of a big mechanical switch though to select stuff :)
@mrhomely4 жыл бұрын
You guy's are awesome! The fast led community is so helpful! Everywhere I turn there are so many people willing to help and teach. I'm going to have this stuff down in no time
@StampyNoddle3 жыл бұрын
It seems like the code will make the pattern restart to the first pattern, after pressing the button the chosen pattern will stay for about 10 min before restarting and going back to the first pattern, is there a way to avoid this?
@ScottMarley3 жыл бұрын
Interesting, that's either a bug in the code or a weird hardware issue where the Arduino is resetting for some reason. I've never seen this happen myself, but haven't been looking for it. Which code specifically causes the issue?
@StampyNoddle3 жыл бұрын
@@ScottMarley it’s the one with the button, I had sent you a email
@ScottMarley3 жыл бұрын
@@StampyNoddle I don't have an email from you. Can you be more specific, there are two files in that GitHub that use a button, which one is it?
@sunrisewithsmile28203 жыл бұрын
Greate video! I am studying a lot from you I really like the pacific set you make, and I am trying just to change the colors of the pallets and for some reason, it's not working, maybe you have an idea why it's happened? thank you very much for all the information you are Great!
@PonderousRage3 жыл бұрын
You touched on fire2012.h, pacifica.h, and pride2015.h. these are all examples straight from fastled however the examples are .ino. can you upload .h files somewhere? You explained what certain lines do but you didn't explain what I need to change to get to that point. First time I tried it said check Timer was not declared. Don't feel like modifying code on every single example for one project..
@ScottMarley3 жыл бұрын
I'm afraid you will have to modify the code for each example, sorry!
@PonderousRage3 жыл бұрын
@@ScottMarley no worries, got it all figured out actually! Thanks for the guide
@TalismancerM7 ай бұрын
I found I had to add a yield(); command at the end of each of the class main loops (eg Fire2012::fireLoop()) otherwise it would reset the device every few seconds.
@chaseallen43523 жыл бұрын
Your videos are amazing! I was so excited to try this out on a project I’ve had on the back burner. Unfortunately I only have Arduino Nano Every’s and FastLED isn’t compatible. Any thoughts on getting it to work on the nano every, I really need the form factor
@ScottMarley3 жыл бұрын
Isn't the nano every the same size as the nano? Just buy a nano clone (they're like £3 on eBay!) and go with that. You won't be able to make the every work with FastLED until the developers add support, it's a non-trivial task.
@chaseallen43523 жыл бұрын
That’s true, I already have all these PCBs made with the pinouts matching the every’s and like 6 every’s though. Do you know anything about Adafruit NeoPixel in stead of fast led? That’s what I was using but I don’t know much about the interrupt features like how you have shown with fast led, that’s what was really drawing me into the fast led, especially with changing patterns with a button
@ScottMarley3 жыл бұрын
@@chaseallen4352 Interupts have nothing to do with FastLED, and will work with whichever LED library you choose. The neopixel library is very simple compared to FastLED, but much more limited (no wave / blur / noise / timing functions / palettes / blending etc). There are however additional libraries you can use on top of the neopixel library to fill some of the gaps. I'm not an expert in the adafruit stuff though. It totally depends on what your trying to achieve. The every has exactly the same pinout as the nano, so if you did have to fall back to using a nano, you could still use the same PCBs.
@chaseallen43523 жыл бұрын
@@ScottMarley thanks for the quick reply and the info!
@alheeley3 жыл бұрын
brilliant! answered so many of my issues :) Having trouble adapting one gradient palette code to include a switch, to step through between 4 or 5 different palettes. It doesnt seem to like defining multiple gradient palettes?
@ScottMarley3 жыл бұрын
You can have as many gradient palettes as you like - providing they have different names of course. If you want to link me to your code (put it on pastebin and link it here) I'm happy to have a look for you.
@alheeley3 жыл бұрын
@@ScottMarley Thanks I have figured it out now, am using the palette knife tool to download more gradients. Am now testing use of rotary encoder - push to change gradient, turn to change overall brightness.
@alheeley3 жыл бұрын
@@ScottMarley I have some basic code here for using a rotary encoder to change brightness of a single gradient, but the nesting is wrong as it doesnt cycle thru the gradient unless the rotary is active turning up/down the brightness? pastebin.com/utZE0Zw9
@alheeley3 жыл бұрын
once i can getthis sorted, I can move on to using the rotary push-butotn to cycle through the different gradients
@ScottMarley3 жыл бұрын
Have a look at the loop code I've posted here pastebin.com/U7K6jgWD I don't have a rotary encoder to hand so I can't test it, but should be the right idea. I've just moved the display stuff out of the encoder loop and tidied up things a bit. It helps if you keep you indentation consistent, that way it's easier to see what's going on inside each loop. If this doesn't work, or you need further help, let me know. Thanks.
@highjack27783 жыл бұрын
can this be used with virtual button made in Blynk app, or just with the physical button connected to digital pin ?
@ScottMarley3 жыл бұрын
You could definitely do that, but I've never used Blynk so I can't tell you how!
@xecense3 жыл бұрын
So if what about if you wanted to use patterns and a pallete?
@ScottMarley3 жыл бұрын
Just combine them together!
@xecense3 жыл бұрын
@@ScottMarley Hmm I'm up for the challenge I just don't know where to start, better watch it again! thanks man glad your channel is growing :D
@goatelope75394 жыл бұрын
How would I incorporate the palettes in lieu of the moving dots, and rainbow functions?
@ScottMarley4 жыл бұрын
Hi, I'm afraid that's a bit complicated to answer in a KZbin comment! See if you can do it yourself. Look at how the movingdots and rainbow functions were made into classes, once you understand that, then try to do the same thing with the palettes example.
@ScottMarley4 жыл бұрын
I'd love to just write it for you but I'm mega busy at the moment, I'm sorry!
@goatelope75394 жыл бұрын
@@ScottMarley no worries, I'm just trying to figure what would sit in the function/class va what needs to stay above the loop. Thank you. Your videos are wicked helpful
@goatelope75394 жыл бұрын
@@ScottMarley thank you for your tutorials. After some digging, watching your videos a few more times on the laptop where I can read the code, and some of the fastled examples I figured out how to get it working Thank you
@ScottMarley4 жыл бұрын
@@goatelope7539 Good job!
@environmentalmonitoring81854 жыл бұрын
Like Dylan i am new to Arduino. your presentation and the measure of your voice makes it easy to follow. Here is my question . i want to use multiple strips with different pattern sequences. would i use seperate controllers for each strip or is there another way?
@ScottMarley4 жыл бұрын
Do you want different patterns on different strips or for them all to play the same patterns at the same time?
@environmentalmonitoring81854 жыл бұрын
@@ScottMarley Hi Yes different patterns on different strips
@ScottMarley4 жыл бұрын
@@environmentalmonitoring8185 there are a bunch of ways to do this with multiple strips on one controller. Here are a few examples github.com/FastLED/FastLED/wiki/Multiple-Controller-Examples you do need to think about what micro to use though. Using something like a nano or uno, you'll run out of memory quickly unless they are short strips. If your patterns are complicated, you might also not have enough CPU power to do what you want. If you upgrade to a teensy, esp8266 or ESP32 you'll ok.
@environmentalmonitoring81854 жыл бұрын
@@ScottMarley THanks for the advice, really helpfull. Also other than doing projects, how would you go about learning this code for microcontrollers and what language is it?
@ScottMarley4 жыл бұрын
@@environmentalmonitoring8185 are you referring to the teensy / esp micros? They're completely Arduino compatible so you still use the Arduino IDE and the code is identical. They're just much, much faster with loads more ram and storage.
@iriedan1234 жыл бұрын
Thanks for all the videos!.... I have been looking for something like this. Your delivery method has been the only one that I understand. And since I am pretty new to Arduino and LED strips! I watched today all basic episodes!!... I am working on a project using the PIR sensor and the SW2812B strip, if possible, could you please point me in the right direction regarding resources for this senses?... GREAT WORK! Looking forwards to more tutorials!
@ScottMarley4 жыл бұрын
There are loads of tutorials on using a PIR sensor with an Arduino like this one from adafruit learn.adafruit.com/pir-passive-infrared-proximity-motion-sensor/using-a-pir-w-arduino I would get your patterns working first without the PIR sensor (using a timer, button or whatever) then integrate the sensor later.
@iriedan1234 жыл бұрын
@@ScottMarley I will try that, thanks.
@matiasgoinheix3662 жыл бұрын
Are you planning on making FastLED matrix tutorials? This series was amazing
@ScottMarley2 жыл бұрын
I guess I could do, it's been a while though!
@matiasgoinheix3662 жыл бұрын
@@ScottMarley I'm sure a lot of people will watch it, I'm making a wall display for my shop and without your tutorials I couldn't do it, so thank you
@Artbyrodwatson4 жыл бұрын
Could you direct me in the right direction for a marquee sketch? I'm new to the Arduino and leds. I'm looking to build a home theater marquee sign.
@ScottMarley4 жыл бұрын
Heya, not completely sure what you're after. Is this just lights in the shape of words? Or using a matrix so text can scroll across it? Or something else?
@goatelope75394 жыл бұрын
Amazing tutorials. I keep getting an error trying to run the button sketch that moving.h isn't in the directory but I see it in my files under fastledtbasic. Does it need to go into a different folder, or have I forgotten something simple about where to house my .h files?
@ScottMarley4 жыл бұрын
Is this when running classesButton.ino? And what is the exact (full) error message that you get? There is no file called moving.h so I'm not sure what's going on there. There is one called 'MovingDot.h' though. If you've edited the code (at all) you will also need to post a link to ALL of your code. I'm happy to help, but try to be as specific as you can and include every bit of detail that you can. Cheers.
@goatelope75394 жыл бұрын
@@ScottMarley it's th movingdots.h. Sorry was multitasking and replying to your video. I have the file but I'm not sure if it's in the wrong directory.
@ScottMarley4 жыл бұрын
@@goatelope7539 hey dude, please see my previous message. Code. Exact error message. Otherwise I can't help.
@goatelope75394 жыл бұрын
@@ScottMarley Im sorry, I was replying from my phone and realized I wasn't able to post the exact error. I'll send tonight when I get back on the laptop. Thank you.
@goatelope75394 жыл бұрын
Found the issue, just had to keep digging till I found the right file folder to put the .h files into
@JWL983 жыл бұрын
hey great tutorial, is it possible to add more buttons with there own pattern?
@ScottMarley3 жыл бұрын
Of course, which bit are you finding difficult?
@carterover183 жыл бұрын
amazing tutorial, easy to follow along
@willstokvis9454 жыл бұрын
These tutorials are incredible! Can you do a tutorial on how to use a sound sensor in conjunction with LEDs? I would love to see how to program LEDs to react to music.
@ScottMarley4 жыл бұрын
I don't have a tutorial as such, but it you watch part 1 kzbin.info/www/bejne/oJnchqSua86hras and part 2 kzbin.info/www/bejne/hJnGaoCshK1jfdU this should give you an idea. Or if you want to go more complicated, see my vu meter matrix kzbin.info/www/bejne/g5jLY4qYobRolcU which is more of a tutorial. Or screw all that and just install Andrew Tuline's sound reactive WLED fork github.com/atuline/WLED
@vjlucasarruda3 жыл бұрын
Thank you for those great tutorials
@dvohwinkel4 жыл бұрын
IMHO and only my humble opinion.. The classes part felt a little out of place.. but it probably is good to get people thinking about it and the benefits it can bring. Love the series and look forward to seeing more. Please don't take my comment as negative. I really like your use of diagrams and real breadboards..
@ScottMarley4 жыл бұрын
Don't worry, I know what you mean. The classes stuff is more complex than anything else in this series, so I think that's why it doesn't feel like it fits. I was wondering if I should include it or not, and I decided to do so mainly in case people find code like this online and wonder what on earth it's doing.
@jacktsonis4 жыл бұрын
@@ScottMarley I am super glad you included classes. Done well enough to be useful as I go through it a few times playing with my own code while trying to work this out (relative newbie). Big functionality extension!
@faraway921103 жыл бұрын
@@ScottMarley The videos are AMAZING but I didn't quit understand this video (I'm relatively new to Arduino programing) would love some help :P
@leonarda19733 жыл бұрын
I was wondering how to create a routine of different patterns with different periods of time, something like EVERY_N_SECONDS( 5 and 7 and 10). Maybe creating an array like timer[]= {5, 7, 10} and including it into EVERY_N_SECONDS(timer[]). Any tip would be appreciated!!!
@ScottMarley3 жыл бұрын
Look at the EVERY_N_SECONDS function here, the one with timingObj as a parameter. That might get you started github.com/marmilicious/FastLED_examples/blob/master/every_n_timer_variable.ino
@jondanks2000 Жыл бұрын
Fantastic vid, many thanks.
@AjdinHaYa4 жыл бұрын
Really nice tutorial thank you very much
@jonatanseifert4 жыл бұрын
Is there a page where all Fast Led commands are listed?
@ScottMarley4 жыл бұрын
You can find everything here fastled.io/docs/3.1/modules.html It's not great documentation, but if you know the name of the function you want, you can use the search box. Start by having a look through each section until youget an idea. There are hundreds of functions!
@limit-less8313 жыл бұрын
Scott you are a star !!! Thanks to you I have mange to built nice lamp for my little girl, i have make combination with plenty of patterns in separate .h file. I am struggling with one thing thought maybe you could help me or direct me, I am changing patterns with button and let say on case 30 I want all the patters to change after some time. Any chance you could help me with h file ? can i do case inside a case ? or maybe there is simpler method ? thanks a million in advance.
@anshuljamesofficial68532 жыл бұрын
Can anyone help me with the code and want to run twinklefox and pride2015 in a single sketch one after another.
@anshuljamesofficial68532 жыл бұрын
@scott marley
@baili86546 ай бұрын
Very thanks!
@leonarda19733 жыл бұрын
Cool tutorial!!! Well done!!!
@coffinsnail69303 жыл бұрын
These are so awesome can you make one about alerts on twitch triggering patterns for the lights This way my subs have one pattern and my follows have a diffrent one.
@arvidbauters4 жыл бұрын
Brilliant stuff!!!
@matthiash.4544 жыл бұрын
But now I think it's great what you can do everything like that
@ScottMarley4 жыл бұрын
Thank you for all your comments!
@rompipelotas4 жыл бұрын
thank's a lot !!! very very good tutorial !!! Biggest..............
@ScottMarley4 жыл бұрын
You're welcome!
@farlangriffiths98264 жыл бұрын
Like the content scott good stuff
@ScottMarley4 жыл бұрын
Thank you. Next one will be on its way hopefully within a week. We'll see how work goes.
@dannysprogis84463 жыл бұрын
Brilliant!
@MOVIMIENTOARTYCO4 жыл бұрын
Hello! Amazing tutorials, (i love the mask), I'm trying to do a pattern-changing routine at different times( not every 5 seconds). any ideas? thanks. And I love the mask and the irregular matrix!!!!!!
@ScottMarley4 жыл бұрын
It depends on exactly what you want to do. It's hard to go through all the code in a comment! You can't use EVERY_N_MILLISECONDS for a variable time, but you can use the normal if(millis() > previousTime + interval) { do stuff }. Of you can be more specific about what you're after I can write up some code or something for you
@MOVIMIENTOARTYCO4 жыл бұрын
@@ScottMarley Hi! I want to make a routine for my juggling clubs (just a 30 leds strip), full static colors and gradients and some patterns with movemet, like fire and rainbow, etc. if(millis() > previousTime + interval) { do stuff }, can work! i´ll try, thanks!!!
@naomimariah88793 жыл бұрын
scott U LEGEND
@ScottMarley3 жыл бұрын
Thank you, that's very kind! Go make some awesome stuff :)
@javasyndicate7133 жыл бұрын
Sir, more focus on coding text when explaining, hard to see small text on my phone :) Nice explained, anw, Thank You
@ScottMarley3 жыл бұрын
Thanks for your comment. It's always a compromise between showing enough of the code at once, and enough detail. All the code is available on GitHub if you want to see it more clearly.
@andakar1212 жыл бұрын
I'm so happy and grateful to have found your tutorials! I think creating classes for patterns will help me a lot. I didn't follow however, how you go from Fire2012.ino to creating it into Fire2012.h If you can point me to the part of this or other tutorial that shows that I'd be grateful. I've watched all episodes up through 5 a couple of times. Each time I watch them my understanding goes deeper. And how do you get separate tabs in the IDE for each of the included files? Thanks again for all this great info!