Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: software for static control over individual pixels

  1. #1
    Join Date
    May 2020
    Posts
    14
    Post Thanks / Like

    Default software for static control over individual pixels

    I have a string of 100 rgb led addressable lights. is there a simple software that I can use to push a button make light #1 on and blue, then push button for pixel 15 and make it red, then push a button and make pixel light #46 green. i don't want any other lights on and don't want any animation.

  2. #2
    Join Date
    Oct 2014
    Location
    Sauk City, WI USA
    Posts
    1,377
    Post Thanks / Like

    Default Re: software for static control over individual pixels

    This sounds like a perfect use for an Arduino style controller. It is not pre-written to do this but the requirement is trivial and could be easily accomplished. FastLed to control the pixels and one or three push buttons to select to turn on the pixel. What version of rgb led addressable lights are you using?

  3. #3
    Join Date
    May 2020
    Posts
    14
    Post Thanks / Like

    Default Re: software for static control over individual pixels

    ive got a new espixelstick and ucs1903 led

  4. #4
    Join Date
    May 2020
    Posts
    14
    Post Thanks / Like

    Default Re: software for static control over individual pixels

    What type of hardware and software does everlights use.

  5. #5
    Join Date
    Dec 2011
    Posts
    6,559
    Post Thanks / Like

    Default Re: software for static control over individual pixels

    Here is some E.131 code for you to experiment with using your EspixelStick and your pixels .
    You can load this on your esp8266 with the Arduino IDE

    The artnet - app for ios/android will give you remote capability to control each Pixel's color channels discretely
    Or if you need physical hardware buttons , code could be added dependent on your esp8266 module capabilities .


    Code:
    /*
      E131_Test.ino - Simple sketch to listen for E1.31
    
      Project: E131 ESP8266 and FastLed
      Copyright (c)  Shelby Merrick
      http://www.forkineye.com
    
       This program is provided free for you to use in any way that you wish,
       subject to the laws and regulations where you are using it.  Due diligence
       is strongly suggested before using this code.  Please give credit where due.
    
       The Author makes no warranty of any kind, express or implied, with regard
       to this program or the documentation contained in this document.  The
       Author shall not be liable in any event for incidental or consequential
       damages in connection with, or arising out of, the furnishing, performance
       or use of these programs.
    
    */
    #include <ESP8266WiFi.h>
    #include <E131.h>
    #include <FastLED.h>
    
    #define UNIVERSE 1                      // First DMX Universe to listen for
    #define CHANNEL_START 1
    #define DATA_PIN 2
    #define NUM_LEDS 170
    
    CRGB newLeds[NUM_LEDS];
    
    const char ssid[] = "SSID";         // Replace with your SSID
    const char passphrase[] = "PASSWORD";   // Replace with your WPA2 passphrase
    
    // ESPAsyncE131 instance with UNIVERSE_COUNT buffer slots
    E131 e131;
    
    void setup() {
      Serial.begin(115200);
      delay(10);
    
      //FastLED.addLeds<WS2812B, DATA_PIN, GRB>(newLeds, NUM_LEDS);
      FastLED.addLeds<UCS1903, DATA_PIN, RGB>(leds, NUM_LEDS);
      //FastLED.addLeds<UCS1903B, DATA_PIN, RGB>(leds, NUM_LEDS);
      // Make sure you're in station mode
      WiFi.mode(WIFI_STA);
    
      Serial.println("");
      Serial.print(F("Connecting to "));
      Serial.print(ssid);
    
      if (passphrase != NULL)
        WiFi.begin(ssid, passphrase);
      else
        WiFi.begin(ssid);
    
      while (WiFi.status() != WL_CONNECTED) {
        delay(500);
        Serial.print(".");
      }
    
      Serial.println("");
      Serial.print(F("Connected with IP: "));
      Serial.println(WiFi.localIP());
    
      // Choose one to begin listening for E1.31 data
      //if (e131.begin(E131_UNICAST))                               // Listen via Unicast
      //if (e131.begin(E131_MULTICAST, UNIVERSE, UNIVERSE_COUNT))   // Listen via Multicast
      e131.beginMulticast(ssid, passphrase, UNIVERSE);
    
      Serial.println(F("Listening for data..."));
    
    }
    void loop() {
      if (e131.parsePacket()) {
        if (e131.universe == 1) {
          for (int i = 0; i < NUM_LEDS; i++) {
            int j = i * 3 + (CHANNEL_START - 1);
            newLeds[i] = (i, (CRGB(e131.data[j], e131.data[j + 1], e131.data[j + 2])));
          }
          FastLED.show();
        }
      }
    }

  6. #6
    Join Date
    Oct 2009
    Location
    Vancouver BC
    Posts
    22
    Post Thanks / Like

    Default Re: software for static control over individual pixels

    You can also load WLED (https://github.com/Aircoookie/WLED) onto your ESPixelStick (or any of the variants) and it allows you to have preset patterns....

  7. #7
    Join Date
    Dec 2011
    Posts
    6,559
    Post Thanks / Like

    Default Re: software for static control over individual pixels

    Quote Originally Posted by packetbob View Post
    You can also load WLED (https://github.com/Aircoookie/WLED) onto your ESPixelStick (or any of the variants) and it allows you to have preset patterns....
    Are you sure ?

    WLED

    Compatible LED Strips
    Type Voltage Comments
    WS2812B 5v
    WS2813 5v
    SK6812 5v RGBW
    APA102 5v C/D
    WS2801 5v C/D
    LPD8806 5v C/D
    TM1814 12v RGBW
    WS2811 12v 3-LED segments
    WS2815 12v
    GS8208 12v

  8. #8
    Join Date
    Oct 2009
    Location
    Vancouver BC
    Posts
    22
    Post Thanks / Like

    Default Re: software for static control over individual pixels

    Ah.. Missed the ucs1903 part... This doesn't appear to be supported by WLED....

  9. #9
    Join Date
    Dec 2012
    Location
    Newtown CT
    Posts
    4,414
    Post Thanks / Like

    Default Re: software for static control over individual pixels

    I looked at the timing for the UCS1903 part a while back and it looked compatible with WS2811


    2020 Full sized show reworked for the new location. Only adding (famous last words) 13 RBLs that I finally got converted to using pixels
    2019 - Just moved into a new home (yet another change of plans). Will be dim but not dark. Too much to do at the new place to leave time for a show. Dim show (3000 pixels) had regular visits most nights.
    https://www.youtube.com/channel/UCyX...ttrsZNARkUce0Q

  10. #10
    Join Date
    Dec 2012
    Location
    Framingham, MA
    Posts
    513
    Post Thanks / Like

    Default Re: software for static control over individual pixels

    A bit complicated, but you COULD setup FPP on a Pi or similar to do this. Basically, if FPP can control the string, then you could create "Pixel Overlay Models" in FPP for each pixel (or group of pixels) which would allow controlling each individually. If you then configure mqtt to point at an mqtt broker and install the fpp-HomeAssistant plugin, fpp can then publish each model as a Home Assistant RGB light entity. You can then use any of the various ways of working with Home Assistant to turn on/off each "model" or set the color or whatever.
    Dan Kulp

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •