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

Thread: software for static control over individual pixels

Hybrid View

Previous Post Previous Post   Next Post Next Post
  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
    May 2020
    Posts
    14
    Post Thanks / Like

    Default Re: software for static control over individual pixels

    thank you Angus, I just got a second pixel stick in the mail so I'll try and figure out how to load this code next week and see if I can get something happening.

  7. #7
    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....

  8. #8
    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

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

    Default Re: software for static control over individual pixels

    Thank you for the info. Wled is loaded and works great with the ucs1903. The sequences are fun but was looking for more of a setting for accent lighitng. When the house is complete i'll have some peaks in the front roof line that i want to have a symetrical light pattern. Not just a 2 on 2 off pattern. 2 in peak and 2 on each side. So if I could just pick particular lights as I'm looking at it with my tablet, that would be ideal.

  10. #10
    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....

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
  •