• Noobnarski@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      1 day ago

      There is no single ground, as long as 12V is connected and one of the colours is connected to ground, that colour will light up.

  • grue@lemmy.world
    link
    fedilink
    English
    arrow-up
    23
    ·
    2 days ago

    WS2812B (and similar) are the superior type of LED strip: not only are the LEDs individually addressable instead of the whole strip being limited to a single color, you get the D instead of the greed.

      • Elchi@feddit.org
        link
        fedilink
        arrow-up
        4
        ·
        2 days ago

        For general safety you should not touch exposed load bearing connections without proper protection. In your case it should be no problem, even if you turn it on and touch the D there should be no physical response. The resistance caused by your body is to strong and WS2812B is at max 5v.

  • needanke@feddit.org
    link
    fedilink
    arrow-up
    23
    arrow-down
    1
    ·
    2 days ago

    Do you mind shorting out Greed? Would be greatly apperciated by the rest of the world.

      • Treczoks@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        2 days ago

        That is another way. Having a shift register allows you to have quite a lot of strips connected to your chip, for the “cost” of three pins in total, more or less regardless of how many different strips you want to drive.

        If you only want to drive one strip, though, a suitable transistor/MOSFET is a better choice, as you can adapt the schematics to your power requirements.

        • glimse@lemmy.world
          link
          fedilink
          arrow-up
          3
          ·
          2 days ago

          And make sure you connect the mosfet the right way so it doesn’t “kinda” work and make you think your code is bad. Not that anyone has ever done that ever.

            • glimse@lemmy.world
              link
              fedilink
              arrow-up
              1
              ·
              2 days ago

              Thankfully it was during my “let’s see if my code works so far” phase as I learned LESs so I only had a dozen connected. I spent a looonnnggg time trying to figure out why my button was turning the LEDs on full brightness instead of fading on. No idea if I fried it, once I figured it out I replaced it with one of the other 50 I ordered (and haven’t touched since)