Raspberry Pi Wireless NeoPixel server for RGB LEDs

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

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

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

    This is so wonderful! Thank you for sharing!

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

    I'm able to load your web interface, but keep getting "AttributeError: 'PixelConfig' object has no attribute 'striptype' " on the terminal with no lights. I am able to get rpi_ws281x to light the strip, but not yours. Any help?

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

      My apologies - it looks like I didn't add the updated config file to github.
      I've fixed it now. If you installed through git then you can issue a "git pull" which should fix it, alternatively add the following line to either defaults.cfg or your custom pixelserver.cfg file:
      striptype=GRB
      Thanks for pointing that out.

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

      @@PenguinTutor Thanks for such a quick fix! Up and running now. Thanks for doing this! I'm not smart enough and was hoping someone would eventually make a slick interface to use with rpi.

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

    I would like to do something similar only using the RPI pico w, do you think it is possible?

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

      I'm sure it is. The Pico w uses a different wireless chip so it may need some code changes. It's something I'm planning to look at in future.

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

    Just wanted to follow up with you! I’ve got the server working, and they output the bits as RGB (which makes the most sense), but for whatever reason my strips take BGR instead. I don’t see a config option for this, is there some point in which the color bits are converted into a list that I could call “reversed” on them? Or would I be better off switching the R and G value when defining the “colors” list? Thanks!

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

      I think I figured it out, but if you have a better idea I’d love to hear it! Just called “reversed” on the tuple before it is returned in your “hex_to_rgb()” function

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

      @@grantpeterson2524 That's one way to do it. The C code on which WS281x library is based does support different color ordering. It's not documented in the Python code, but I think I can see how it could be implemented.
      I'll take a look at adding it as a configuration option.

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

      I've added a new config option if you'd like to give it a try. You'll need to update to the latest version from github. Either a "git pull" if you cloned, or download the defaults.cfg, pixelconfig.py and pixelseq.py files.
      Then in pixelserver.cfg add the entry:
      striptype=WS2811_STRIP_BGR
      Note it doesn't matter if you've got 2812 instead of 2811 still use 2811 (I may add that as a separate option, but it will just point to the same value) it's the 3 letters at the end that give the ordering.
      [This is undocumented at the moment - I may change this in future so apologies in advance if it breaks in a future version, but I will provide an alternative]

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

      I've now made further improvements. Update to the latest version and then in pixelserver.cfg add striptype=BGR and that should fix your problem.

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

      @@PenguinTutor Wow, you sir are awesome! That was quick! Thanks so much!

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

    Hello, your project is very incredible. I have the first version and I am about to try this last one and see its changes. I wanted to know if it is possible to add the intensity of the leds to the web (ledmaxbrightness)

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

      Yes, it is available in the settings on the latest version.
      I plan to release a new version in the near future which will add optional authentication.

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

    Hi, I have built one following the video & its great, but how can i add other sequences to it ? have you found how to do it ?

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

      It is explained in 14:39 in the video, but you will need a fairly good understanding of Python to do so.
      I was planning to add some sequences by now, but my outdoor lights stopped working, which after much troubleshooting I found was due to a faulty power supply cable. I just got it working again yesterday after replacing the cable.
      I'll hopefully get some time to add some more sequences in future.
      Do you have a particular sequence in mind? If you can describe it then I can look at adding it when I get around to some updates.

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

      @@PenguinTutor Thanks for replying, I am new to these neopixels and was confused how you add them, Currently trying to figure out adding a new button and how a sequence is done. Will let you know. Thanks for the great video.