Arduino NeoPixel LED Tutorial for Beginners

  Рет қаралды 79,913

So Much Science

So Much Science

Күн бұрын

Пікірлер
@chrisgallagher85
@chrisgallagher85 2 жыл бұрын
I'm an artist. You're like the first person that has explained this code stuff that I can actually wrap my brain around. Bravo good sir. That's a true gift.
@SoMuchScience
@SoMuchScience 2 жыл бұрын
Thank you! You honor me 😀
@tomblachford9568
@tomblachford9568 5 жыл бұрын
i dont know how this doesn't have more views, super informative and clear!
@SoMuchScience
@SoMuchScience 5 жыл бұрын
Well thank you! Please share!
@michaelglenn4014
@michaelglenn4014 4 жыл бұрын
This dude taught me more about coding and what things mean than anybody, thanks alot.
@TimonLukas
@TimonLukas 4 жыл бұрын
I know it‘s a one year old video but you just saved me!!! Thanks a lot! Greetings from Germany 🙂
@SoMuchScience
@SoMuchScience 4 жыл бұрын
Woohoo, I'll take it! Was there anything in particular that this guide helped with that was not covered well in other places?
@TimonLukas
@TimonLukas 4 жыл бұрын
@@SoMuchScience it was just well delivered.. a very good tutorial which coverd all my questions
@SCUBAguypnw
@SCUBAguypnw 4 жыл бұрын
Over a year later and I just learned a lot from this video. I very much appreciate you taking the time to create it. I received an Arduino for an early Christmas present and after looking at what they can do I realized it was the perfect solution for a project I had been thinking about for a long time. This video checked off two items on a somewhat long list of things I need to learn. Thanks again!
@lwo7736
@lwo7736 Жыл бұрын
Really useful video, I had no idea it was this simple. I would have loved to see how the colours look but its still pretty cool!
@cstickman69
@cstickman69 3 жыл бұрын
Did you or are you going to make a video with the for loop? I wanted to see or learn how to rotate the colors. Thanks and awesome video!!
@SoMuchScience
@SoMuchScience 3 жыл бұрын
Thank you and I will make a note of this suggestion! It's been a couple of years but I still hope to be making more videos soon...!
@arthurspapa
@arthurspapa 3 жыл бұрын
Dude! Awesome tutorial and I’ve gotta echo tom, this video should have way more views. Your voice is super soothing too lol
@ElectroPrints
@ElectroPrints Ай бұрын
How do you get just 1 single pixel to flash through all those colors
@eross21
@eross21 Жыл бұрын
so there are all these libraries running in the background. neopixel, fastLed etc? how do I see what effects or functions are available for a particular library? to me it’s like trying to choose a book from a real library, without knowing what kind of books are even available in the library any help would be awesome
@imho2278
@imho2278 3 жыл бұрын
Your vid rescued me at Science Lab tonight!❤
@SoMuchScience
@SoMuchScience 3 жыл бұрын
What did you make??
@spaceartshow9202
@spaceartshow9202 3 жыл бұрын
What did you make?
@SterlingKisses
@SterlingKisses 4 жыл бұрын
Absolutely AMAZING video! Best beginner tutorial I've found.
@siddharthachatterjee9959
@siddharthachatterjee9959 3 жыл бұрын
Hey, did you show the finally lit up LEDs?
@SoMuchScience
@SoMuchScience 3 жыл бұрын
I should have it at the end but I made a mistake, it is visible at the beginning of the video though
@leesahcage3297
@leesahcage3297 4 жыл бұрын
excellent video, well explained, one of the best I have found on this subject. Please make some videos showing how to power the LED with external power source.
@SoMuchScience
@SoMuchScience 4 жыл бұрын
This is the best and most doable suggestion I've had yet. This is now at the top of my list for when I can sit down and make another video. I'm almost done with grad school so stay tuned! And thank you, thank you :-D
@romel58
@romel58 4 жыл бұрын
I have never come across your videos before. Hope there are more. Well done! Very well thought out and presented in a simple and easy to understand way.
@jeromealbigot1909
@jeromealbigot1909 Жыл бұрын
Bonjour combien de pixel maximal peut contrôler un arduino r3 ....merci
@lanaboyd4776
@lanaboyd4776 3 жыл бұрын
I bought an adafruit feather 32u4 and non-adafruit neopixels. will I still be able to programme the leds using the feather?
@SoMuchScience
@SoMuchScience 3 жыл бұрын
If the the LEDs have 2812 or 2811 chips in them then it should all still work the way it does in the video.
@lanaboyd4776
@lanaboyd4776 3 жыл бұрын
thank you!
@desmondclyde6835
@desmondclyde6835 Жыл бұрын
Im at a roadblock with my neopixel jewel, i dont know if i have the wires connected wrong or if its the board. Im using arduino nano and arduino web editor but these are my questions: 1. I am not sure if my arduino nano came with the adafruit library included, when i put in the code it seems as if the arduino doesnt get that its a neopixel, how would i install the adafruit neopixel into the arduino with web editor? 2. Which ports are supposed to connected on the neopixel? ground, 5v power and input right?
@SoMuchScience
@SoMuchScience Жыл бұрын
1) The Arduino device doesn't really "know" anything, it just runs whatever "program" is uploaded from the editor. So, the editor has to know to include the library when it compiles. For the web editor it looks like you select "Libraries" on the left-hand side, search "Adafruit Neopixel," click "Include," and then it will add the import statement to your code.
@Subagyo-Tepil
@Subagyo-Tepil 2 жыл бұрын
Hi "So Much Science", thanks for clear explanation about led and arduino, but I've a question on how to construct led in a matrix and how is the code .
@jerrypeacock930
@jerrypeacock930 3 жыл бұрын
How should I modify the code for the WRGB Neopixels like the SK6812?
@SoMuchScience
@SoMuchScience 3 жыл бұрын
I'm not actually sure. Information about this on the internet is surprisingly spotty and nothing stood out as "the answer" to me. If the answer isn't on Line 28 at github.com/adafruit/Adafruit_NeoPixel/blob/master/examples/RGBWstrandtest/RGBWstrandtest.ino or if it's not recognized by the FastLED library, then I don't know what to do next. Ideally, you would just declare a different kind of LED strip strip (like the one on line 28 in the linked example) and then add a fourth parameter when you set the color. Fill us in if you find out!
@clangendijk
@clangendijk 4 жыл бұрын
Hi there, if started a new project and desided to make a custom code, a few hours back I watched your tutarial and it was really helpfull. but if got a question cose i got a problem, see, im making a big sign that says Moxxi's. consist out of 254 leds inside a defuse tube. if connected it on one strip and want the letters M, o, x, x, and s. to be constand 1 colour and i want to animate the heart (the dot on the i is a heart) to be animeted. my question is (cose my code is getting really big). is there a way to say led 1/57 be red cose thats all the leds in the letter M. for example: pixels.setPixelColor(0-57, pixels.Color(255,255,0)); instread of every pixel given his own line.. i couldnt find any codes on the internet or any other tutorial as helpfull as yours. hope you could help me out. thanks!
@SoMuchScience
@SoMuchScience 4 жыл бұрын
Sure. You can't do it in one line but you can do it in about three by using a FOR loop. Try something like this (I didn't run it on an Arduino to check but I think it will work as-is): for (int i = 0; i < 57; i++) { pixels.setPixelColor(i, pixels.Color(255,255,0)); }
@clangendijk
@clangendijk 4 жыл бұрын
Thank you so much, if got it working good and as I wanted! Then my sign is done and on Instagram I'll do you a msg if you want. Thanks again!
@SoMuchScience
@SoMuchScience 4 жыл бұрын
​@@clangendijk Cool! Want to post a link to the project right here? Or sending me a message would be good too.
@paolomartini150
@paolomartini150 4 жыл бұрын
Thank you for going through it. I have neo pixels with an additional color white. Haven't received those yet but will need to program that fourth white color. Also I will need to assign the intensity for each color to an outside control like a knob.
@makeitathome1327
@makeitathome1327 Жыл бұрын
Nice video! I'm actually trying to build an arduino project that can control an individually addreseble led strip that has 24 leds using an ir remote. I've got the code and components ready, but I'm worried about the current being an issue. Do you know how much power would approximately be needed, and if so, what gauge/ AWG wire would I need to handle that much current. Also, do you know how to connect a separate power supply to the circuit because I don't think the arduino can handle plugging a power supply into the Power Jack connector.
@TateIsaacs
@TateIsaacs 6 ай бұрын
Love the video, just another note, you should make sure the cable to your board can transmit data, I can't tell you how much time I have wasted trying to trouble shoot problems with my board only to realize it was a problem with my cable.
@smash461986
@smash461986 3 жыл бұрын
Confused to when you say external power. Surely it can only be powered externally as it is not self powered. Also the USB supplies power to all 180 of my LEDs. Why do you say only 8 will power?
@SoMuchScience
@SoMuchScience 3 жыл бұрын
I mean powering the LEDs directly with a power supply instead of only using the power and ground from the microcontroller. Still make sure it is 5V and that there is a common ground with the microcontroller. An Arduino Uno only supplies about 0.5 A *through* it so to connect a strip of LEDs that use more then you have to supply the power “externally”. If you connect more than 8 LEDs they will still function (to some limit, I’m curious what that is) but with a decreased current so they will not be as bright. 70 mA per LED (at full white, less for colors) and a total of 500 mA through the Arduino really is only about 7 at full brightness but that seemed like a silly number for the tutorial.
@cristobaldiaz3875
@cristobaldiaz3875 4 жыл бұрын
how can you do to connect 3 neopixel in 4 corner traffic light system, i tried and i can only with 1
@cristobaldiaz3875
@cristobaldiaz3875 4 жыл бұрын
I can only light one
@SoMuchScience
@SoMuchScience 4 жыл бұрын
I don't quite understand your question but it might be answered below. Look for the comment from "gentleman113Tulsa" 6 days ago and the responses.
@preinfinity
@preinfinity 3 жыл бұрын
Why do you need an external power supply? I have 256 LEDs hooked up to my arduino and have no issue operating all of them at once. Though, i keep them at max 100,100,100 instead of 255,255,255. Is that the reason why I havent had any issues?
@SoMuchScience
@SoMuchScience 3 жыл бұрын
Yes, keeping it at lower values will help. I have also run ~200 LEDs with no external supply but the maximum brightness is decreased significantly. Also, only the LEDs that are on will use much current so that is one way you could have a lot of LEDs but not lose brightness necessarily. I can guarantee you that the maximum brightness decreases as you add LEDs but in most lighting conditions it is hard to see much of a difference when the LEDs are so bright. As a test, try a script that light up one more LED at full brightness every second and you'll start to see the brightness decrease at some point.
@layalibijoux
@layalibijoux 4 жыл бұрын
Thank you man for ur precious infos, i just need one more explaination about the hex notation, does it work if i changed "pixels.setPixelColor(0,pixels.Color(150,0,0));" with "pixels.setPixelColor(4,0xffffff )" ?
@SoMuchScience
@SoMuchScience 4 жыл бұрын
You are very welcome! I'm not sitting here trying it on an Arduino but the code you wrote does look correct to me. If you're curious how the RGB converts to Hex then you can use any of the many converters on the Internet (e.g., www.rgbtohex.net/ seems good); the appearance doesn't convert perfectly from a screen to the LEDs but the calculation is the same and it's a good approximation to get you started.
@jakejuntilla1752
@jakejuntilla1752 4 жыл бұрын
is it always necessary to use the adafruit library? I tried using basic digitalWrite and it does not light up my strip.
@SoMuchScience
@SoMuchScience 4 жыл бұрын
You need to use at least some library for the LEDs because it is actually sending a very high frequency signal that contains color information, kind of like dial-up internet. One alternative library that I like better than Adafruit's (but that is a little harder to get started with) is FastLED.
@jakejuntilla1752
@jakejuntilla1752 4 жыл бұрын
@@SoMuchScience Thank you!
@DJAlmostEverything
@DJAlmostEverything 4 жыл бұрын
Great video! I'm getting back into 3D printing after not having a personal machine for a couple years, and am planning on using it as a complement with the arduino to make some interesting projects. This was really a comprehensive guide to the LEDs, and I appreciate your explanation! (great video and audio compared to many btw)
@SoMuchScience
@SoMuchScience 4 жыл бұрын
Thank you and sounds good! I just got out of grad school so I'm thinking of getting my own 3D printer once I get a job; I had been printing on campus when anything came up. What Arduino+3D projects have you been considering?
@clunapizarrog48
@clunapizarrog48 4 жыл бұрын
This works with WS2811 led strip?
@SoMuchScience
@SoMuchScience 4 жыл бұрын
I've never tried it but it appears that it does. Try replacing `NEO_KHZ800` with `NEO_KHZ400` based on what I see on line 14 here learn.adafruit.com/adafruit-neopixel-uberguide/arduino-library-use.
@LaserFoxProductions
@LaserFoxProductions 5 жыл бұрын
Hello. I'm using the RGBW neopixels and I've been learning to code for them for a couple weeks now, finding examples online and then just messing with the code to try to learn why each bit does what it does. I would love if you made a video such as this one explaining how and where to use "if" "else" and "for" commands to make the leds do more advanced things like chases, bouncing, or like a rainbow that shifts hue in a loop. Again, great video. I'd love to see more!
@pcmobiletechnicalsolutions8504
@pcmobiletechnicalsolutions8504 4 жыл бұрын
hello sir i need your help
@dilansishta3561
@dilansishta3561 3 жыл бұрын
Hello and thank you so much for making this video. I have a question, the neopixel I ordered, has another ground wire extending alongside the data output cable, both of which are connected together to a JST Pin. Can I wire the ground from the JST pin to any of the three grounds on the arduino alongside the separate ground wire? Thank you for your time!
@SoMuchScience
@SoMuchScience 3 жыл бұрын
Thank you for watching! You can use any ground wire to connect to any ground pin, they are all the same.
@dilansishta3561
@dilansishta3561 3 жыл бұрын
@@SoMuchScience thanks again! You're a godsend
@jurgenvandriessche170
@jurgenvandriessche170 3 жыл бұрын
Just starting out with arduino and LED's. Had a lot on this video. Thanks for that!
@hermannhoffmann6044
@hermannhoffmann6044 4 жыл бұрын
Hi Hermann from Germany here. I’m trying to code a sun and moon light animation for my African hedgehog terrarium with these led’s. Some how I can’t figure out how I can switch the four variables to the value I want, send to the Arduino Bord by my pc. I am searching and searching, but I can’t find a tutorial for changing these four variables. For example if I insert a Variable in the led number Variable, Arduino says ‘variable’ was not declared in this scope.
@SoMuchScience
@SoMuchScience 4 жыл бұрын
Could be hard to figure out without example code but what you mention at the end sounds like you need to initialize a variable before using or modifying it. This error is most often caused by either not initializing the variable at all or initializing it with the wrong scope. More details at www.arduino.cc/en/Reference/VariableDeclaration or contact me through my website if you want to dig into the code more (somuchscience.com/ redirects to bryancostanza.com).
@gentleman113Tulsa
@gentleman113Tulsa 4 жыл бұрын
Hello, thanks for this informative and basic LED Neopixel tutorial. I have a question for you, maybe you can point me to the info I need? I am not programmer but I do have some skills in building electronics and soldering. I am also into midi music and have been looking for a simple method to take midi data input via 5 pin midi, and assign it to a strip of LEDs so that I can put the LED strip on the top of a keyboard and play midi files from sequencer software that will show someone how to play the music. The Arduino should be capable of doing this. I have run across several systems on KZbin using Raspberry pi, but it seems I have not found a simple midi input to LED out type solution. If you know of any scripts written to do this I would appreciate the info. Thanks
@SoMuchScience
@SoMuchScience 4 жыл бұрын
I have almost no experience with MIDI but some people that come to mind are www.jifferharriman.com and www.colorado.edu/atlas/wayne-seltzer. Or if you find one script that does the MIDI side with the Arduino device that you want then I may be able to guide you with completing the LED side. Please write to me through my website (somuchscience.com/ redirects to bryancostanza.com) if you want to continue looking into this.
@PantherJagger
@PantherJagger 4 жыл бұрын
I have a 12V LED Strip, how do you wire that?
@BryanCostanza
@BryanCostanza 4 жыл бұрын
Basically, you'll need to get a 5V-12V logic level shifter (CORRECTION: the LEDs in question actually still use 5V logic so no logic level shifter is needed) for the signal coming from the Arduino and then power the LED strip with its own 12V power supply, making sure to connect ground (establish a common ground) between the LED power and the Arduino power. you will also use both your 5V and 12V power to set the reference voltage levels on the logic level shifter. It looks like someone (in the comments at the following link) has used a SparkFun item to do this: www.sparkfun.com/products/12009. I also found a few EzSBC shifters that explicitly give 5V-12V as an example but I've ever heard of this brand: www.ezsbc.com/index.php/products/ls1.html and www.ezsbc.com/index.php/products/ls2.html.
@PantherJagger
@PantherJagger 4 жыл бұрын
@@BryanCostanza Thank you for info, I did see some people plugging the 12V direct into the Mega (but I can not find the wiring diagram) And also others using the 12V to power the strips and a 9V battery for the Mega. Will either of those work?
@SoMuchScience
@SoMuchScience 4 жыл бұрын
@@PantherJagger (Oops, looks like I was logged in as myself instead of So Much Science). I just looked at the tech specs for the Mega (store.arduino.cc/usa/mega-2560-r3) and it can take a 12V power input but if it is similar to the Uno R3 with power then you'll need to make sure you give it that power on the barrel connector and not directly into the 5V pin. I also saw some comments (arduino.stackexchange.com/questions/28761/controlling-a-digital-12v-addressable-rgb-led-strip-with-arduino) that even 12V addressable LEDs use a 5V logic signal, so you would not need to use a logic level shifter at all in that case. Worst-case, if you try without a logic level shifter and it doesn't work then you will not have damaged anything. It seems like both options you found (Combo 9V/12V or just 12V) would both work. In short, you should (1) be able to use the 12V supply for everything if you supply power to the Mega with a barrel connector, also connect the same power supply directly to the LEDs, and then simply connect the signal to the Mega, or (2) power the LEDs with the power supply, the Mega with a 9V battery, the signal directly from the Mega, and make sure that you connect Ground between the LEDs and Mega. It now turns out we just wrote out what Leesah was asking about a couple of weeks ago in another comment and that I might be able to do a video for this weekend.
@PantherJagger
@PantherJagger 4 жыл бұрын
@@SoMuchScience Please do a video, I have the new ws2815 12V and you are awesome!! Thank you
@bongyii1280
@bongyii1280 8 ай бұрын
Hi , can you please do next video how to connect NeoPxell LED to Pixhawk drone flight controller module, please. Can't wait for that. Thanks
@TheHughjennings
@TheHughjennings 4 жыл бұрын
Yup, that was great, please make more! I'd like to get more info on basic commands, some common pitfalls, and maybe see some cool sketches for LED Pixel strip reverse engineered..
@SoMuchScience
@SoMuchScience 4 жыл бұрын
I like these suggestions and they are really high on my list of possible videos. I'm currently pretty occupied looking for a job since I finished grad school last month.
@vinod_damunupola
@vinod_damunupola 4 жыл бұрын
Can you do a video on how to use temperaure sensor values to change color of neopixel
@SoMuchScience
@SoMuchScience 4 жыл бұрын
That sounds like an interesting project. Can you explain more about what you would like it to do with the LEDs based on the temperature reading?
@vinod_damunupola
@vinod_damunupola 4 жыл бұрын
@@SoMuchScience change the color and/or speed of the pixel strip
@NunchakuFlowTutorials
@NunchakuFlowTutorials 4 жыл бұрын
were is the code below
@SoMuchScience
@SoMuchScience 4 жыл бұрын
Second-to-last link in the video description
@NunchakuFlowTutorials
@NunchakuFlowTutorials 4 жыл бұрын
@@SoMuchScience thank you so much bro can you do more videos about Arduino
@gavsmith1980
@gavsmith1980 4 жыл бұрын
Totally new to all this, but I saw elsewhere that if you’re using an Arduino to drive the data for a strip with lots of individually assignable LEDs, anything less than the Arduino Mega can suffer from lack of memory for certain functions, for example, driving 1m 144 LEDs as a VU meter, does anyone know if this is still accurate?
@SoMuchScience
@SoMuchScience 4 жыл бұрын
I've never come up against the limit but it looks like ~600 is a common limit. This seems explained nicely at www.eerkmans.nl/powering-lots-of-leds-from-arduino/ with a good chart showing memory and pixel limits. You might be able to hack your way past that limit a little bit hackaday.com/2014/05/19/driving-1000-neopixels-with-1k-of-arduino-ram/. The NeoPixel Uberguide touches on this at the end of their article and references a place you might find more information learn.adafruit.com/adafruit-neopixel-uberguide/arduino-library-use.
@libbybreaux7990
@libbybreaux7990 4 жыл бұрын
I'm trying to connect 3 different strips of neopixel LEDs 4 long and have them all blink at the same time.. I'm having issues doing this. Any suggestions?
@SoMuchScience
@SoMuchScience 4 жыл бұрын
Hello! I'm just getting back to typing after shoulder surgery. If you want them to show the exact same thing then you can connect them to all of the same pins. Since the Arduino only has a place for one wire per pin then you can accomplish this most easily by connecting them all through a breadboard like this: www.sparkfun.com/products/12002. Let me know if your question is other than what I've addressed here or if these leads to other questions.
@TheMidnightcup
@TheMidnightcup 3 жыл бұрын
Thanks a ton! Very helpful
@em30142
@em30142 4 жыл бұрын
I'm trying to do this with a Arduino Mega (clone). It ain't workinn. :[ If there's something about megas or clones I should be doing differently let me know
@em30142
@em30142 4 жыл бұрын
I had the power input and data wires plugged into the wrong holes on the neopixel. (fixed)
@krishnilchetty3675
@krishnilchetty3675 4 жыл бұрын
Hi man I'm using esp32 with Bluetooth and wifi I want to control the lights with bluethooth how can I do this
@SoMuchScience
@SoMuchScience 4 жыл бұрын
I would need more details to give you specific suggestions
@ryanmarshall8925
@ryanmarshall8925 4 жыл бұрын
your video has been the most helpful and thorough so far is there any way you can do another one on how to do it with an external power supply as well
@SoMuchScience
@SoMuchScience 4 жыл бұрын
I'm very happy to hear that! An external power supply video is at the TOP of the list for which video to do next.
@chrisgallagher85
@chrisgallagher85 2 жыл бұрын
thanks for sharing - very helpful
@luisvieyra
@luisvieyra 4 жыл бұрын
Thnks for explain me about this!, ASAP I'll get the material for this project, can't wait to ur next video!, note: please next video show the final project working! :), sorry the project working was at the begining of the video.
@mariuspetcu7482
@mariuspetcu7482 4 жыл бұрын
I don't know how to say other than an Onest THANK YOU - I am not an English spoken but was the Most Complex and yeat Easy to understand explanation I've watched during the last 6 months since I am trying to learn Arduino programming and specially addressable RGB LED's ... for that, I Thank You again ... Please keep us informed about this subject and not only ... I have also as a hobby 3D printing and I am interested if is possible to make a small program for an RGB LED ring ( I want them mounted on Extruder carriage - X ax ) like so: when the nozzle is starting to warm up the light to start - that ROYGBIV spectre but backwords VIBGYOR and finally Hot nozzle Full Red - " 255 " and when the printer is starting Printing to become White !!!... THANK YOU ... Best of Luck / Be Safe / Stay Safe
@SoMuchScience
@SoMuchScience 4 жыл бұрын
This made me so happy! Thank you for writing and for your kind words. I'm not too sure about your printer indicator project. One idea that could be fun with sensors is just to use an Arduino with a temperature sensor and LEDs connected near the nozzle but this might be hard because of the limited space. Otherwise, I think you would need to be sending the status from your computer either directly to the LEDs or to an Arduino-like device through a USB Serial connection. This might be done with a Processing sketch on your computer that can send Serial data through USB but you would still need to figure out how to read the status on your computer and then Serial communication can be really tough. Or another idea is to somehow measure voltage across (or current to) the heating element on the printer but then you. have the risk of damaging your printer if you're not sure about how to modify things.
@mariuspetcu7482
@mariuspetcu7482 2 жыл бұрын
@@SoMuchScience I know is been 2 years since you answer me and I Apologize for that🙏 , but the life is not very Gentle with us so I hope You understand 😉... I Thank You again 🤝for the complete & complex answer ... I will look into to see what I can do ... Best of Luck 🤞👍
@SoMuchScience
@SoMuchScience 2 жыл бұрын
@@mariuspetcu7482 Happily, and no problem, great to hear from you again. I thought I'd have made dozens more videos by now buuut time and life happens to all (most? 😉) of us.
@krishnilchetty3675
@krishnilchetty3675 4 жыл бұрын
Do you have codes for more designs and effects it will be really helpfully doing a project which Is due soon thanks in advance
@SoMuchScience
@SoMuchScience 4 жыл бұрын
I'm busy with a project too so I can't make more examples right now but consider that the example code sort of has two "frames" and you can copy/paste them to make more frames and then you can program each LED for each frame to make it animated or whatever you'd like even if you don't learn more programming concepts.
@lumatrace
@lumatrace 3 жыл бұрын
Thank you so much for this! Super helpful!
@stephanfourie4878
@stephanfourie4878 4 жыл бұрын
Thanks, You are a hero to the republic.
@alexjanzen
@alexjanzen 3 жыл бұрын
it helped me. Thanks
@gihansithara625
@gihansithara625 4 жыл бұрын
maximum how many LED can connect in arduino uno r3 ?
@SoMuchScience
@SoMuchScience 4 жыл бұрын
Hi Gihan, check out the reply to gavsmith1980 in a comment thread below about four weeks ago
@gihansithara625
@gihansithara625 4 жыл бұрын
So Much Science Thanks
@asulliv1954
@asulliv1954 4 жыл бұрын
Very well explained next time run code so I can see how it’s supposed to work,Thank You!
@mikevinci9265
@mikevinci9265 4 жыл бұрын
I didn't occur to you to show a demonstration of the final product. We want to see what the code looks like on the strip when executed.
@SoMuchScience
@SoMuchScience 4 жыл бұрын
I think I left it out because the footage looked bad (the LEDs are so bright compared to the surrounding) but there is still a short clip of it at the very beginning of the video
@SoMuchScience
@SoMuchScience 4 жыл бұрын
I also spent 25 hours producing this video for no payment or class credit so, while I do welcome comments and criticism, getting some appreciation would be nice instead of just pointing out what is wrong with it.
@autoworldgentech3304
@autoworldgentech3304 4 жыл бұрын
Aweaome simple language to understand your vdo.tks i would like to know How do i wipe the addressable led strip off the code and make it a regular led strip as in so that i can ise it for regular purposes. Tks
@SoMuchScience
@SoMuchScience 4 жыл бұрын
I think the answer to your question is that the LED strip does not have any memory so there is nothing you need to do with it. To clear the Arduino you would need to upload a blank sketch to clear its memory.
@autoworldgentech3304
@autoworldgentech3304 4 жыл бұрын
@@SoMuchScience tks for ur reply then i guess i messed up my led strip. Keep up the good work.👍
@SoMuchScience
@SoMuchScience 4 жыл бұрын
@@autoworldgentech3304 Happy to help! One other thing to consider is that the LEDs might remember the last color they displayed and will retain that until some other color signal comes to them. Maybe try loading something really simple onto the Arduino that you know works and see if that changes the LED strip colors from where they are stuck now. I know the LEDs will stay the same color with no signal as long as they have power.
@autoworldgentech3304
@autoworldgentech3304 4 жыл бұрын
@@SoMuchScience yeah i thought so but in haste i cut a few leds to wipe data but it does not work ill try loading new data. Tks
@autoworldgentech3304
@autoworldgentech3304 4 жыл бұрын
@@SoMuchScience hi there jus wanted to know if i want to hook up 12v led strip for my car tail lights , brake lights and turn lights do i need to add a resistor in + wire and what resistor for turn light led signal ill need . Tks
@CaptainClivo
@CaptainClivo 4 жыл бұрын
Excellent Tutorial for us Arduino/Coding newbies. You mentioned there might be some follow up vids on programming. Any further tutorials in the pipeline ?
@SoMuchScience
@SoMuchScience 4 жыл бұрын
Thanks so much! I am always thinking about how I can make more videos but I've also been busy finishing up grad school and trying to figure out how to pay my bills. I made a couple videos on generative algorithms a few months ago on this channel but they are not nearly as popular as this one, probably for several reasons. I'm always curious though: is there anything you're looking for or have in mind already? I love hearing ideas and getting a sense for what people are trying to figure out how to do.
@CaptainClivo
@CaptainClivo 4 жыл бұрын
@@SoMuchScience Hi Bryan, Several idea's for you to explore. I recently took delivery of a string of RGB addressable LED's. I know there are free software packages out there to control these in quite a sophisticated way but that doesn't help any of us learn coding. How about a tutorial to develop skills in controlling these LED strings, then add a rotary encoder ( £3 delivered from Bangood) to vary the brightness. Maybe add to the mix a cheap 4x4 matrix keypad to select from a list of pre programmed settings. I would like to experiment with several strips of 12 in various parts of my room and easily be able to turn individual strips on and off without having to alter the code in the Arduino IDE. So much easier tap a few keys on a pad which are also very cheap to buy.
@miguelsantiago4598
@miguelsantiago4598 3 жыл бұрын
WOWWW, amazing video
@EspenShampoo25
@EspenShampoo25 4 жыл бұрын
268 subscribers? Thats a disgrace! I have been watching dozens of videos on this subject and no one comes even close to this one!
@SoMuchScience
@SoMuchScience 4 жыл бұрын
Thank you! I think that since I'm not posting regularly then I'm almost invisible to the algorithms.
@EspenShampoo25
@EspenShampoo25 4 жыл бұрын
@@SoMuchScience that might be the case. I thought this video was great. I am currently working on making some sound reactive led lamps so i would love more videos like this. But i understand if you dont think its worth the effort of making them.
@SoMuchScience
@SoMuchScience 4 жыл бұрын
@@EspenShampoo25 That's awesome and I've been wanting to do a project like that for a like time but more like a music visualizer. Feel free to email me through my website (bryancostanza.com) with questions, anytime. I also know someone else in my area that has done a reactive lamp and other light/sound projects (www.jifferharriman.com/projects#/listening-lamp); I'm sure he would be happy to talk about his work too. I wouldn't say it's "not worth" making the videos, it's just not something I can fit in right now. I am extremely happy (thrilled? pumped?) that so many people have learned from this video and I do want to empower people to take on creative technology projects, I just also have work to rescue myself right now.
@HyperionBadger
@HyperionBadger 3 жыл бұрын
"We'll cover the External Power Supply, another time" That's what every video says when they get to that point. And that's the part I need to know more about lol.
@SoMuchScience
@SoMuchScience 3 жыл бұрын
This topic is #1 on my list to make next but I just don't have the time. Sorry! If I could find some sponsorship that would change things.
@HyperionBadger
@HyperionBadger 3 жыл бұрын
@@SoMuchScience you're good lol
@red_ford23
@red_ford23 3 жыл бұрын
Good video. I'm working on an art piece faux-microsatelite - sort of an electronic disco ball that plays StevieWonder 8-bit midi files. Got that same sparkfun red board you showed and I have adafruits neopixel ring. I'm gonna make it sort of retro - sputnik like- maybe a mini telsat. This serves as an educational jumping off point for Ray Kurzweil and his OCR breakthroughs popularized by Stevie Wonder- encouraging more adaptive technology thought exploration and progress. Thank you. SpaceArtShow
@spaceartshow9202
@spaceartshow9202 3 жыл бұрын
I call it Wondersat13 - it plays "higher_ground_8bit.midi" and "superstitious_8bit.midi" and then a databurst/ SSTV noise - a hamradio style card pic with Stevie and the WonderSat13 call. Then back to the music and lights. I want to do Hellschriber for analytical info like altitude speed and satellite location, but Im just being funny and over-complicated. 😊.
@daryldyehouse6404
@daryldyehouse6404 4 жыл бұрын
This was a great video and thank you for posting it, but I will say that I have a 144 WS2811B LEDs running without problems, no extra Power supply, only the 5 VDC out Pin, this is on a genuine Arduino Uno powered by my computer and nothing else. Please feel free to reach out to me for any questions.
@BryanCostanza
@BryanCostanza 4 жыл бұрын
The limit is ~8 at 100% bright white but you can do many, many more at lower levels
@fatherloz2800
@fatherloz2800 4 жыл бұрын
Thank you !
@vinod_damunupola
@vinod_damunupola 4 жыл бұрын
I written code after watching your video..I'm not a newbie to programming.. but for arduino... #include int LEDPIN=4; int NUMPIXELS=10; Adafruit_NeoPixel pixels=Adafruit_NeoPixel(NUMPIXELS,LEDPIN,NEO_GRB+NEO_KHZ800);//GRB //Adjustable timings int delay_fadein=7; int delay_fadeout=7; int move_delay=0; //End adjustable timings int r=0;int g=0;int b=0; void setup() { // put your setup code here, to run once: pixels.begin(); } void loop() { //Move effect int b=0; while(b
@vinod_damunupola
@vinod_damunupola 4 жыл бұрын
but the r,g,b 0,0,0 valued pixels show blue color instead of turning them off (black).. and when all pixels get red, they show pinky color instead of red.. can you please help me with tihs ??
@SoMuchScience
@SoMuchScience 4 жыл бұрын
Happy to help. Which sections of your code are showing these wrong colors?
@vinod_damunupola
@vinod_damunupola 4 жыл бұрын
@@SoMuchScience Hi, thank you. I fixed it myself.. declared a, b, i, x, y variables at the beginning of the code....
@vinod_damunupola
@vinod_damunupola 4 жыл бұрын
Here is the final one.. it looks awesome.. #include int LEDPIN=4; int NUMPIXELS=10; Adafruit_NeoPixel pixels=Adafruit_NeoPixel(NUMPIXELS,LEDPIN,NEO_GRB+NEO_KHZ800);//GRB //Adjustable timings int delay_fadein=10; int delay_fadeout=10; int move_down_delay=0; int move_up_delay=0; int max_brightness=255; int color_difference=1; int freeze_time=500; //End adjustable timings int r=255;int g=0;int b=0; int l=0;int c=0; void setup() { // put your setup code here, to run once: pixels.begin(); } void loop() { //Move effect l=0; while(l
@DynoRC
@DynoRC 3 жыл бұрын
If "in depth" was a video :)
@Gorilla_Jones
@Gorilla_Jones Жыл бұрын
This is for beginners? 😢 I’m totally lost.
@lordofbacon1455
@lordofbacon1455 4 жыл бұрын
If I had 405 LEDs, then I would go from 0 to 403 cuz 404 doesnt exist
@SoMuchScience
@SoMuchScience 4 жыл бұрын
You would go 0-404 because 405 would not be a valid index. So you would have LEDs 1-405 with indices of 0-404.
@lordofbacon1455
@lordofbacon1455 4 жыл бұрын
So Much Science it wasn't mean serius
@jeffreycashen6416
@jeffreycashen6416 Жыл бұрын
oh my goodness, i am bored right now, i have watched 6 minutes..............i thought it was supposed to be about "Arduino NeoPixel LED Tutorial", not about the hardware side of it. Just a short note about what is needed to do it would have been fine......................... Sorry but, wowsers. And yes, i am straight up.
RGB LEDs with Arduino - Standard & NeoPixel
43:35
DroneBot Workshop
Рет қаралды 130 М.
FastLED Basics Episode 1 - Getting started
17:59
Scott Marley
Рет қаралды 290 М.
Jaidarman TOP / Жоғары лига-2023 / Жекпе-жек 1-ТУР / 1-топ
1:30:54
The Lost World: Living Room Edition
0:46
Daniel LaBelle
Рет қаралды 27 МЛН
Непосредственно Каха: сумка
0:53
К-Media
Рет қаралды 12 МЛН
Playing With Neopixels!
18:44
Simple Electronics
Рет қаралды 28 М.
HOW TO USE WS2812B NEOPIXELS WITH FASTLED ON ARDUINO
24:32
Gadget Reboot
Рет қаралды 184 М.
How to use Excel to Animate LEDs!  Arduino + WS2812 LEDs
17:01
Kevin Darrah
Рет қаралды 113 М.
Generative Art Landscapes Tutorial (Perlin Noise + Recursive Functions)
1:14:20
How to control LED Strips with Arduino - Cosplay Tutorial
12:42
KamuiCosplay
Рет қаралды 630 М.
Can This Cheap Battery Power Up EcoFlow Delta 2 Max? - OKMO
6:12
BIP HOUSE  .бип хаус 🥰🏡  #shorts
0:13
bip_house
Рет қаралды 1,2 МЛН
КАК ЖИВЕТ КВАНТУМ? РУМ ТУР КВАНТУМА!!!
13:51
shocking end 🥴🤯 LeoNata family #shorts TikTok
0:54
LeoNata Family
Рет қаралды 41 МЛН