software for static...
 
Notifications
Clear all

software for static control over individual pixels

14 Posts
7 Users
0 Reactions
14.3 K Views
Posts: 14
Topic starter
(@jasonlynn)
Eminent Member
Joined: 6 years ago
[#52599]

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.


13 Replies
Posts: 14
Topic starter
(@jasonlynn)
Eminent Member
Joined: 6 years ago

ive got a new espixelstick and ucs1903 led


Reply
Posts: 14
Topic starter
(@jasonlynn)
Eminent Member
Joined: 6 years ago

What type of hardware and software does everlights use.


Reply
Posts: 8517
(@angus40)
Illustrious Member
Joined: 15 years ago

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 .


/*
  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();
    }
  }
}

Reply
Posts: 119
(@packetbob)
Estimable Member
Joined: 17 years ago

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


Reply
Page 1 / 3
Share: