Driving 410 RGB LEDs (WS2812b) with ESP32 & ESP8266

Поделиться
HTML-код
  • Опубликовано: 8 сен 2024
  • INFO:
    Want to drive 400+ LEDs with ESP32 or ESP8266? Use 3.3V logic to drive 5V LEDs.
    More on: wp.me/p7qFRY-247
    SUPPORT ME:
    www.notenoughte...
    / notenoughtech
    www.paypal.me/...
    This video has been made thanks to:
    Elle S, Marc W, RT, Natasha,
    Social media:
    / notenoughtech
    plus.google.co...
    / notenoughtech
    BUSINESS ENQUIRIES:
    www.notenoughte...
    MUSIC:
    "Retro Future Clean", "Your Call", "Fearless First" & "Funk Game Loop", Kevin MacLeod (incompetech.com)
    Licensed under Creative Commons: By Attribution 3.0
    creativecommons...

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

  • @alexbik
    @alexbik 5 лет назад +16

    In my experience, WS2812b's work just fine if you drive the logic with 3.3V. You have to power them with 5V, but data works just fine at 3.3V. Your solution might ofcourse still be usefull in other applications.

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

      Can confirm. Mine work just fine driving with 3.3v on the data pin

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

      Tried a few times, works about 50% of the time with me. Often the signal is just barely registered and the strip starts to flicker. Just use 74HTC125D inbetween and save yourself some future headaches.

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

      Well that might work, but it is always advisable to somehow buffer your MCU GPIO. Last week my Ras Pi got fried due to direct connection with WS2811

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

      Oh no! What happened?

  • @f0rc3U
    @f0rc3U 6 лет назад +2

    Thank you so much! I had a similar problem and were using an ESP to communicate with an Arduino in the end. Just ordered the SN74HCT245N - hopefully I can ditch the Arduino now :)

    • @notenoughtech
      @notenoughtech  6 лет назад +1

      Excellent. I really hope this information will be easier to find now. I spend about 3 days in total trying to figure out what was wrong! until someone posted a reply to my older post.

  • @nonzero4984
    @nonzero4984 6 лет назад +1

    Ima use this setup for sure!

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

    oh my god!. i luv u guy. tried to run my one led embedded into dstike watch with adafruit lib - no luck. tried your code using fastled lib - AND IT WORKED! aaaaaaaaaaaa thanks. gos save u

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

      I'm glad you got it working. Enjoy the bright times

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

    Thanks for the video Matt.

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

    I see you are using a beefy bench supply, but for deploying this in the field, it is important to know how you wired it up. Obviously, the signal conditioning between elements allows that long of a string to stay stable, but if I calculated correctly, each element (pixel) has a max of 60ma (20ma x 3), so the whole string at full white (RGB 255, 255, 255) would be just short of 25 amps. So what gauge wire did you use to feed power to that massive string? And is it possible to run multiple strings off the ESP32? And what ESP32 module are you using?
    Also, I ran a 160 LED string without level translation by just supply the first element with 3.3v levels, and because the supplied string was drawing off of 5v, the first element conditioned the signal to 5v and the rest of the string worked fine.
    Thanks for the video! It was very helpful!

    • @notenoughtech
      @notenoughtech  5 лет назад +1

      The power supply was 30A (150W) - the LED has been connected from 2 power rails essentially splitting the current in more less half. To avoid the insulation melting, I feed the panel from both sides, per line. I have not used a specific wire was this was more of a prototype that never run more than 1h, but I could feel the heat given out by the LEDs :)
      You can run 8 strands of an ESP32 as you will need PWM for each to drive the LEDs. I needed a fast LLC to step up the voltage to the required 5V - this is the ESP32 I have been using:
      www.banggood.com/custlink/DmvmvN8QpO

  • @ProtoG42
    @ProtoG42 6 лет назад +2

    Good job!

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

    what kind of chip should I use for 12v addressable led strips?

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

      radnukespeoplesminds normally 12v is only for supply. Data line and clock line (if present) work with 5v

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

    Hi, I'm searching for something like this. I have 50 meters of adorable led strips.
    How to control all of them simultaneously?

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

      It depends on a desired effect strands could be an answer. You can also use logic level shifters (pick fast one) to increase the signals voltage (if leds can take it) and account for the voltage drop over that distance

  • @venomxus
    @venomxus 5 лет назад +1

    Glad I found this. Guess I gotta buy the IC now; can I power the IC from my esp32 or do I need to power it from the +5v/-5v on my power supply?

    • @notenoughtech
      @notenoughtech  5 лет назад +1

      You should be able to power it from the esp. but refer to the current requirement in the IC spec sheet

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

      @@notenoughtech I went to one of the maker studios at my university and one student working informed me I could level shift the signal with the use of a transistor and resistors.
      I might try that so I won't have to wait a few weeks for the piece to arrive. :)

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

      Yes it's possible. Use 2300 SMD equivalent

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

    Which library did you use in the code?

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

    Has anyone figured out the max you can control off 1 esp32. Obviously with external powering the led

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

      The max number will depend on many factors.
      Desired speed/latency of the strand
      Density of the strip
      Number of GPIO pins to handle strands

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

    never had a problem running them without logic level converters and driving them directly from the esp's gpio

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

      You might run into the issues depending on both model of RGB and ESP and the number of LEDs driven. Here is an example of me driving the same LED type without the LLC with an ESP8266-01
      notenoughtech.com/home-automation/esp/marvelous-notifications/

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

      @@notenoughtechJust put 5v on the power of the led, and take the signal line from the ESP to the led. I will work without any problem.

  • @MaxMustermann-zc1jf
    @MaxMustermann-zc1jf 5 лет назад

    Hey, thanks for the nice video. Can you tell how much power it is drawing? Is that the amount of amps below the voltage on your power supply?

    • @notenoughtech
      @notenoughtech  5 лет назад +1

      I have nothing to test the current draw but at max you have 440 LEDs at 50mA each I have a 150W supply with 2x5v rails it was doing ok without collapsed voltage

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

    I have a similar setup. I can print scrolling words on my 8x32 lcd screen but I get random flashing leds. Do you have any ideas on what might be causing this?

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

      If flickering... The supply isn't strong enough or you get too much voltage drop across the LEDs. Check each section for that

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

    i had a strange problem..i did a for loop to blink all the led strips..everything was fine but the last led didnt turn off..Finally i tried a logic converter but it didnt work..finally i had to do a FastLED.show() one more time after loop..generally everything worked fine without logical converter..

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

      That's unusual. With LLCs you have to make sure they are fast enough. I had some at first that didn't work at all due to response time ...

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

      @@notenoughtech I don't know my LLC response time, but it's from the cheap ones.. but my ledstrip with more than 80 LEDs runs fine with my esp32 without LLC. I provide them with external 5v power although..

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

    Is there any mosfet that can switch fast enough instead of using the SN74HCT245N?

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

      You could try but I don't think you'd get stable effects

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

    hiii
    I plan to set up 2000+ leds but im a little lost. I want to make custom light scenes w Arduino and call them back them from a phone app is that what ESP does? or does the apps come w predefined scenes you cant change,, and if you can change them hoe do you change them? do you program only thru the app or do you code in Arduino and it sends to the app??,... im new to this world and coding plz helpp

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

      *how** not hoe💀

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

      You can stream data over WiFi to the esp and make it display what's received. It will strongly depend on how the esp is programmed to handle it

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

    Can you run everything from the same power supply? In your video you're powering the ESP32 via USB. Can you power it with the same 5V from ur bench power supply ? so in the end you have only 1 power supply to power it all?

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

      Yes. Especially that you should use the common GND for led strip and esp

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

      @@notenoughtech cool thanks!

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

    hey dude
    I thought you had to inject 5V after every 50 LEDs?? how did you get around that??

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

      Each side has a loop making the whole panel essentially an array of parallel strands in terms of the supply

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

      @@notenoughtech oh wow.. man that saved me a lot of little PSUs lol, thank you!

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

      No problem! Enjoy

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

    SIR HOW TO MAKE ANIMATION FILE IN THIS DISPLAY?

    • @notenoughtech
      @notenoughtech  5 лет назад +1

      There are a couple of programs on the internet to compose an animation or flash effect. Glediator being one of them

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

    How Any name is includein this led

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

      I'm sorry I'm not sure what do you mean

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

    HTC or HCT?

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

      Oh context please ;) it's been ages since I posted it

  • @Siorinex
    @Siorinex 6 лет назад

    FastLed in esp32 start, draw some pixels and "CPU halted!"

    • @notenoughtech
      @notenoughtech  6 лет назад

      Have you used my code? What's your setup how many LEDs how connected etc? Where the power to LEDs coming from? It could be underpowered ESP.

    • @Siorinex
      @Siorinex 6 лет назад

      NotEnoughTECH you code and other code for fastled.
      Esp32 in usb - in other project all norm.
      16*16 matrix - separete power from 3*AA battery.

    • @notenoughtech
      @notenoughtech  6 лет назад

      I'm still away in China for a see days so I can't take a look at my set up. 3 batteries may not be enough for the matrix but it should not halt the cpu.
      Try this to get more info;
      www.iotsharing.com/2017/12/how-to-debugging-errors-using-arduino-esp-exception-decoder.html?m=1