ESP32 powered WS2812B LED Matrix [Part 1]

Поделиться
HTML-код
  • Опубликовано: 8 сен 2024

Комментарии • 100

  • @fanofsongs
    @fanofsongs 4 года назад +12

    This is the clearest and simplest explanation of the LED matrix idea that I've seen, and with a very pretty result! Thank you Scott

  • @frenchspikeybob
    @frenchspikeybob 4 года назад +4

    Amazing! I have made the 10x10 matrix following Great Scott's video as a beginner project. It was long and tedious, but I did learn tons. I have had a few problems with the matrix since then (mostly because of my poor soldering job and figured that I could make a bigger (16 x 16) matrix without all the individual led soldering.
    Amazing to find your video and project. That will surely help me when I get stuck! Thanks a lot!

    • @ScottMarley
      @ScottMarley  4 года назад +1

      No worries, glad you've found it useful! Don't forget to check out the next two videos in the series for adding some games to it once you have it built.

    • @frenchspikeybob
      @frenchspikeybob 4 года назад

      @@ScottMarley I have! Thanks so much for sharing your work with us. I really enjoyed the quality and clarity of your explanations. Thanks as well for making your files accessible on github. The code/software aspect of the project looks a lot more advanced to what I am comfortable with but it will be a great learning opportunity hopefully!

  • @bobdavis321
    @bobdavis321 Год назад +1

    I have been making LED signs for years. I will try the 3d printed spacers to see if my signs look better. I have also just discovered frosted glass spray paint for a diffuser!

  • @Moonbrony
    @Moonbrony 3 года назад +1

    Just discovered your channel and wanted to say thanks. Your WS2812 VU meter is the perfect thing I was looking for to put on the back of my monitor.

  • @TheGrrson
    @TheGrrson 9 месяцев назад

    Just discovered this video. A few years ago I spent months building a 30 x 60 WS2812 matrix using the biggest Arduino at the time b/c of the memory. I'd love to convert it to ESP32 using this method.

  • @juliocosta5818
    @juliocosta5818 9 месяцев назад

    Thank you for your clear, logical, well-presented videos, I find them extremely interesting and helpful!

  • @ClaytonDarwin
    @ClaytonDarwin 5 лет назад +2

    Scott, this is great. I'm definitely going to do something similar next time around.

  • @ericoudammerveld424
    @ericoudammerveld424 3 года назад +1

    This one also looks fantastic!

  • @aquelejosemelo
    @aquelejosemelo 3 года назад +2

    I build my matrix based on your. Thanks!

  • @m.adiguzel
    @m.adiguzel Год назад

    Pretty neat result, thanks for sharing it with us. But I don't understand how it can be a 25x25 cm box. I have 60led/m in my led strip. So it's like 27 cm for 16 leds. At first I thought my lane was different. Maybe your led is 96led/m. So it fits in 25cm. But when I watched it again and looked at the led gaps I assumed our strips were almost identical. The 28.6cm separator file you shared in the second video confirms this.
    the problem starts here😂 There is no 30x30 deep box on the internet.

  • @koz
    @koz 5 лет назад +2

    Nicely done! I've been building a few matrices like this recently. Thanks for the tip about the hobbycraft frames! ;)

  • @wouterblom6328
    @wouterblom6328 3 года назад +3

    Thank you Scott Marley for producing all these wonderful videos. They are super helpful and inspiring. I just devoured all your FastLED tutorials and ordered all the components to make this matrix. I had one question though: what type of cardboard did you use for the grid, what is the thickness of the cardboard?

    • @ScottMarley
      @ScottMarley  3 года назад

      In this video I'm using 3mm black foamboard, which worked ok, but I did get a bit of light leaking through as the cuts were not perfectly straight. Later, I re-made the grid from 3mm plywood laser cut at the local hackspace. This worked much better as it was cut much more accurately.

    • @wouterblom6328
      @wouterblom6328 3 года назад +1

      @@ScottMarley Thanks for the reply! A friend of me also has his own lasercutter, so I will visit him to make the the grid. I will get 3 mm plywood than (and maybe also 3 mm cardboard and see how that result works out).

  • @manukalias
    @manukalias 3 года назад

    Beautiful and beautifully made 😍😍😍😍

  • @3DSurfacing
    @3DSurfacing 4 года назад +1

    Great video. Thank you.

  • @Richie_
    @Richie_ 2 года назад +1

    When using the Arduino Nano or Uno via usb I always have, #define MAX_AMPS 500 //value in milliamps and #define VOLTS 5. FastLED.setMaxPowerInVoltsAndMilliamps(VOLTS, MAX_AMPS); in the set-up. Safety.

  • @yuvigerstein
    @yuvigerstein 2 года назад

    Awesome tutorial! Thanks

  • @thatpspguy
    @thatpspguy 3 месяца назад

    do you have a tutorial about fast led and how to upload it to the esp32? I'm kinda new and self taught.

  • @manoharmanu1460
    @manoharmanu1460 4 года назад +1

    Nicely done Scott, however I do find the audio quite low.

    • @ScottMarley
      @ScottMarley  4 года назад +1

      You are correct, I didn't really know what I was doing when I made this video! Hopefully my more recent ones are better.

  • @liminalnetworks7691
    @liminalnetworks7691 2 года назад +1

    Great vid! What are the actual dimensions with the frame? And how many meters of WS2812 did you use?

  • @mouseminer2978
    @mouseminer2978 2 года назад

    Hi Scott, which part of the code handle the wiring direction? I kept the arrows pointing in the same direction for all leds. Thanks

  • @Sinalsa
    @Sinalsa 2 года назад

    60 led per meter have 1.7cm between each led.. that 27.2 only for the visible part of the frame.. which you said is 25X25... am i missing something?

  • @jayexplains6010
    @jayexplains6010 2 года назад

    Awesome

  • @TekWit
    @TekWit 5 лет назад

    nice job !!

  • @fred7flinstone
    @fred7flinstone Год назад

    Love this. Is there a 'pattern' for the grid components you made? Wondering if they could be 3d printed.

    • @ScottMarley
      @ScottMarley  Год назад +1

      There is an illustrator file for the grid in the GitHub linked from part 2 of this video. The pattern will change though depending on the size of the frame.

    • @fred7flinstone
      @fred7flinstone Год назад

      @@ScottMarley thanks for that. I’ll check it out.

  • @andymonks7126
    @andymonks7126 4 года назад +1

    I have what I'm sure is a dumb question. I have some ws2812b at 60 per metre. Which gives of course a distance of 16.7mm from the start of one led to the start of the next (1000mm / 60 = 16.67mm between each led). However, using the same frame, there is no way you can get 16 in as 16 * 16.7mm is 26.7cm and therefore larger than the 25cm frame. Do you have a link to the specific led strip you bought? In the mean time I'm going to make one which is 13x13. Thanks

    • @ScottMarley
      @ScottMarley  4 года назад

      Not a dumb question at all! 250mm x 250mm is the size of the cutout inside the white card mount. I had to use a craft knife to cut this card a few mm from all inside edges to make the hole 267mm wide. The LED strips I used are standard, and like yours have a spacing of 16.6mm. Let me know if this explanation makes sense!

    • @andymonks7126
      @andymonks7126 4 года назад

      Scott Marley I clearly bought the wrong frame. The inside of my frame is 250mm x 250mm but the mount is only 200x200. Oh well. I wonder if yours is the 300x300 version

    • @ScottMarley
      @ScottMarley  4 года назад

      @@andymonks7126 ah crap, you're right, it was the 30x30. Sorry for making you buy the wrong frame! I'll edit the description now, and thanks for letting me know!

    • @andymonks7126
      @andymonks7126 4 года назад

      Scott Marley no problems. Just means I have a 13x13 practice one. You might want to update the link to the correct size. Just waiting for my copper tape to arrive now to wire the power and ground up. Anyway great couple of videos. Thanks

  • @froschbroetchen
    @froschbroetchen 4 года назад

    Thank you very much for your video. Where did you have the cardboard strips lasered and what did it cost? I wouldn't know what kind of company could do that.

    • @ScottMarley
      @ScottMarley  4 года назад +1

      I lasered the wood at a local hackspace, only had to pay for the plywood which was about £3. It would cost a lot more if you had a company do it for you.

  • @anandhakrishnant6788
    @anandhakrishnant6788 Год назад

    Can you share the laser cut files pleaseeeee!

  • @djkadakamc1889
    @djkadakamc1889 2 года назад

    Hi bro. Thanks a lot for the tutorial. I leave you some questions.
    it works with artnet protocol too? Can you please tell me specs of power supply? (Volt/amp)
    In order to power up the lolin v3 that i have, can i use the same power supply of the ledstripe using Vin pins?
    Thanks

    • @b0v_
      @b0v_ Год назад

      5v 15a

  • @50shadesofskittles9
    @50shadesofskittles9 3 года назад

    5:18 Do I recognize a cord chewed by a kitty? :D

    • @ScottMarley
      @ScottMarley  3 года назад

      Haha, very well spotted! Wasn't even my cat!

  • @stalker72
    @stalker72 5 лет назад

    Дешево и красиво! Классно!!!

  • @KelpoChips
    @KelpoChips 4 года назад

    This looks amazing, which glass do you use?

    • @ScottMarley
      @ScottMarley  4 года назад +1

      It's just the glass that comes with the frame. Underneath the glass is some A3 paper to act as a diffuser

  • @JhimmyDev
    @JhimmyDev 3 года назад

    Hello, did you use a logic level converter for the data pin of the esp32?

    • @ScottMarley
      @ScottMarley  3 года назад

      No, it ran fine without one. In fact I've never had to use one in all of my ESP projects. Some people do though, no idea why it works for some and not others!

    • @neutron7
      @neutron7 2 года назад

      According to a note on the PJRC serial ws2812 driver github, only WS2812 made in 2014 did not work with 3V.

  • @crcomments8509
    @crcomments8509 4 года назад

    Do the LEDS work OK, powered by 5V with a 3.3V data signal?

    • @ScottMarley
      @ScottMarley  4 года назад

      Yes, they seem to be happy with a 3.3v data signal. I've never needed to use level shifters or anything.

  • @antosiric3671
    @antosiric3671 5 лет назад

    Nice video! Thanks!
    I'm trying to control small ws2812b matrix (8x8) using ESP32 but pixels doesn't show correctly... Also tried with level shifters but same results...
    Do you have any advice?

    • @ScottMarley
      @ScottMarley  5 лет назад

      I'm afraid I have no idea what it could be without knowing a lot more about the problem. Although in theory the lights need a 5V signal, I've never had a problem using the 3V3 output from the ESP32 to drive them without level shifters.

    • @anbraten
      @anbraten 5 лет назад

      I think it's a timing problem. Have you tried to use a different GPIO pin.

    • @BeamDeam
      @BeamDeam 3 года назад

      I know it is a bit late, but have you connected the ground from the led strip to the esp32?

  • @witastwosz360
    @witastwosz360 4 года назад +1

    The project is awesome :) Now I'm planing to similar on my own.
    How do you power supply your matrix? 16x16 LEDs need pretty much Amps to work on a full brightness. Do you have a 15 A external power supply or just making sure that your matrix brightness is lowered to some level?

    • @ScottMarley
      @ScottMarley  4 года назад +3

      Hi, please show it off when you have completed it! Have a look at my next video here: ruclips.net/video/cqmWfE1DSyM/видео.html and the one afterwards here: ruclips.net/video/apmOSQmeKJA/видео.html for more information, but in my latest code I use the FastLED command FastLED.setMaxPowerInVoltsAndMilliamps(5,1000); Change the '1000' to however many mA you would like to limit it to. While I'm writing code for it, I set it to 1000, then it runs happily from the USB port on my laptop. When I want to show it off somewhere, I connect it to a standard USB power bank and change it to 2000mA which is more than bright enough unless you're in daylight. I've had it run for over 10 hours on a 20,000mAh pack as it's not drawing 2A most of the time anyway. PS, there's no need to run WB2812B LEDs at full brightness anyway usually. 200 looks almost as bright as 255 and drawns way less current.

    • @witastwosz360
      @witastwosz360 4 года назад

      @@ScottMarley well, somehow I've missed these videos ;) thank you for links
      what is the brightness that you set for this video?

    • @ScottMarley
      @ScottMarley  4 года назад +1

      @@witastwosz360 in this video the whole thing is running from the usb port on my laptop, so definitely less than 200. It was a while back so I can't tell you exactly. Most likely to be around 100 ish.

    • @witastwosz360
      @witastwosz360 4 года назад +1

      @@ScottMarley OK thanks, all I need is to wait for my led strips to arrive from aliexpress (4 weeks to go lol)

  • @czhang225
    @czhang225 Год назад

    How much power supply did you use? 100W @ 5Vdc ?

    • @ScottMarley
      @ScottMarley  Год назад

      I limit the current to 2A and use a usb power bank , the type of thing you can charge your phone with. 100W is massive overkill, I'm pulling 10w max.

  • @Naminave
    @Naminave 3 года назад

    Can you share the square design of the Carton?

    • @ScottMarley
      @ScottMarley  3 года назад

      Not sure what you need? The outer frame was just a picture frame I bought from Hobbycraft in the UK.

    • @ShahZahid
      @ShahZahid 3 года назад

      @@ScottMarley can ya share the files for the laser cutter, so that i can get a service to the cardboard matrix for me.
      NVM i found those on github, thanks

  • @sagarmgandhi
    @sagarmgandhi 3 года назад

    I am not well versed on this, but a question -ESP32 doesn't need any sort of resistors/capacitors while connecting to led ?

    • @ScottMarley
      @ScottMarley  3 года назад

      You can use them if you like, and they are recommended, but I've never had an issue not using them.

    • @sagarmgandhi
      @sagarmgandhi 3 года назад

      @@ScottMarley And when it comes to ESP can we provide power to Led via the microcontroller like we can in Arduino Nano/Uno ? I mean esp is 3.3v and nano/uno are 5v so just a thought

    • @ScottMarley
      @ScottMarley  3 года назад

      @@sagarmgandhi if you only have a few LEDs, you can power them from the 5V pin on the ESP. Any more than that and you will want a proper power supply. The data pin to the LEDs from the ESP is at 3.3V rather than 5V. If you want to do it 100% correctly you should use a level shifter to change the 3.3V signal to 5V, but I've found the data works fine at 3.3V.

    • @sagarmgandhi
      @sagarmgandhi 3 года назад

      @@ScottMarley Thank You for taking time to explain. I am still watching videos on ESP and Nano tp understand things before i dive into making it. There is so much that can be done and its so cool, but i am more interested in the spectrum analyzer you made using ESP and FFT library

  • @penhughes632
    @penhughes632 3 года назад

    Hi what size Copper strip you using in this project please ?

    • @ScottMarley
      @ScottMarley  3 года назад

      Not entirely sure, but probably 4mm or so

  • @timgiaychuyenadidasreal4800
    @timgiaychuyenadidasreal4800 2 года назад

    do you need wifi connection for esp32 after running the game?

  • @wowiee
    @wowiee 3 года назад

    Hey Scott! I'm planning to make something like this based on your video and my question is there any power issues? And how do you power the leds?

    • @ScottMarley
      @ScottMarley  3 года назад

      I haven't had any issues, I powered it from a standard USB battery pack. It runs for about 8-10 hours on my 20,000mah pack depending on their brightness you use.

    • @wowiee
      @wowiee 3 года назад

      @@ScottMarley do you know how many amps they use thanks?

    • @ScottMarley
      @ScottMarley  3 года назад

      @@wowiee I use FastLED to limit the power draw to 2A, still seems plenty bright enough at that current and gives decent battery life.

    • @wowiee
      @wowiee 2 года назад +2

      @@ScottMarley thanks for answering my questions earned my sub

    • @wowiee
      @wowiee 2 года назад

      @@ScottMarley Hi again scott, my esp32 just arrived and I'm wondering if you are just using a usb to power esp32 and the power comes from the esp32 for the leds

  • @MARKOSILLYPIG
    @MARKOSILLYPIG Год назад

    Scott Marley could this be made sound reactive ? cheers marko

  • @sub-arts128
    @sub-arts128 3 года назад

    what material do you use for the 2nd grid?

    • @ScottMarley
      @ScottMarley  3 года назад +1

      3mm laser cut plywood

    • @sub-arts128
      @sub-arts128 3 года назад

      @@ScottMarley thx sir. i wanna build a 16x20 matrix. i m not sure, if the memory of arduino uno is enough. can you tell, how much memory your tetris with all external libraries take, splitted in program code and variables? i asume the 2k sram of the uno could be hardly enough, but i dont know, what extra memory the libraries take.

  • @user-wy9wp2yu2x
    @user-wy9wp2yu2x 3 года назад

    How can I make circular effects? Mandala drawing?

    • @ScottMarley
      @ScottMarley  3 года назад

      That's not trivial (and impossible to answer in a RUclips comment), but it's all just mathematics at the end of the day! Look up how to draw circles using trigonometry or use a different library that does that for you. github.com/AaronLiddiment/LEDMatrix would be one option. Or go with Adafruit's gfx library instead of FastLED.

    • @user-wy9wp2yu2x
      @user-wy9wp2yu2x 3 года назад

      ​@@ScottMarley Yes, I understand all this perfectly, and so I thought, why not draw a rainbow coming out of the center of the circle?

    • @ScottMarley
      @ScottMarley  3 года назад

      @@user-wy9wp2yu2x sure, go for it!

    • @user-wy9wp2yu2x
      @user-wy9wp2yu2x 3 года назад

      @@ScottMarley Look at this video ruclips.net/video/R6fDstoRnXA/видео.html

    • @ScottMarley
      @ScottMarley  3 года назад

      @@user-wy9wp2yu2x that looks very cool, it's using Jinx software running on a laptop though. It would be a fair bit of work to port that over to run on a microcontroller such as the ESP32.

  • @jonas89he
    @jonas89he 4 года назад +1

    Could you tell how high your wodden grid is? (which results in the space between the Leds and the paper)

    • @ScottMarley
      @ScottMarley  4 года назад +3

      16mm. I've just put the illustrator file I used for laser cutting on GitHub if that helps. You would need 34 of them in total to make the grid.

    • @jefffrilot9667
      @jefffrilot9667 4 года назад

      @@ScottMarley Great work. Do you have a link to the illustrator file?

    • @ScottMarley
      @ScottMarley  4 года назад +1

      @@jefffrilot9667 hi, it's on GitHub linked in the description of this followup video ruclips.net/video/cqmWfE1DSyM/видео.html

    • @ScottMarley
      @ScottMarley  4 года назад

      Also have a look at the follow up to the follow-up! ruclips.net/video/apmOSQmeKJA/видео.html