First of all, my apologies if I am asking this question in the wrong place.
I have a vertical strip of, for example, 100 LEDs.
Now I would like to create an hourglass effect, where the top 50 LEDs slowly decrease in number and the bottom 50 slowly increase in number.
Ideally, I would like it to have the same effect as an hourglass.
I have tried everything, but I can’t get it to work.
Can someone help me out?
Thanks a lot in advance.
The closest i tested is a progress bar with wled , If you have 100 leds active and want to light one pixel at a time in an easy way use IX=~ with Percent effect , would look good on strips but I have none so it works also on a matrix .
Demo video is too big to upload in discourse , so link on discord
Thank you for your response.
I have tried various things with IX=~ with Percent effect, but I am not getting the desired effect.
The effect I aim for is to symbolize the falling sand in an hourglass.
So, in a strip of 100 LEDs, the first segment from 0-50 LEDs is the upper part of the hourglass, and the second segment from 51-100 is the lower part.
When starting, all LEDs in the first segment should be on, then LED 1 should turn off and with a kind of drip effect in the second segment, LED 100 should turn on (and stay on).
Then the effect repeats: LED 2 off - drip effect in the second segment to then turn on LED 99 (and stay on together with LED 100).
Is it possible to make this with some kind of Map or API?
I don’t have much experience with Map or API, but I am persistent so any tips are welcome.
I really hope there are experienced users who can help me solve this challenge.
The idea is that you would use the example I listed to explore and do the effect on your own , so that is just a way for you to fish . But sure wait for experienced users to hand that to you
I appreciated the example you provided and understood that it was meant to be a challenge for me to further explore how I could achieve the intended effect.
I tried everything within my power and researched extensively, but unfortunately, I couldn’t make any progress.
That’s why I’m asking for additional help. Not because I expect a ready-made answer, but because I genuinely couldn’t continue despite my efforts.
I find it regrettable and unnecessary that you chose to end your response with a sour and sarcastic remark. It’s completely uncalled for and does not encourage further requests for help.
I am not really "experienced " as you implied but i do explore on my own so that is the open source way to explore , i did not see any details from your post to actually indicate you have tried . And please cool down and do not be sensitive or try to also watch your word carefully if you do not like such reply
If you only need this in a single projekt why diont you just usa a ARDUINO
Preferd a UNO Board for safty reason
hook up the Stripe to 5V on the Board MAX200LED’s
GND to GND
and PIN 4 via a 1k Resistor to Stripe DATA IN ;
use this CODE
#include <Adafruit_NeoPixel.h>
#ifdef __AVR__
#include <avr/power.h>
#endif
// Which pin on the Arduino is connected to the NeoPixels?
#define PIN 4
// How many NeoPixels are attached to the Arduino?
#define NUMPIXELS 30
Adafruit_NeoPixel pixels(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800);
//counters
int up = 0;
int down = NUMPIXELS;
//color
uint32_t black = pixels.Color(0, 0,0);
static uint32_t green = pixels.Color(0, 255,0);
//timing
long previousMillis; // will store last time pixel was updated
unsigned long currentMillis;
const long interval = 1000; // Länge der Pause in ms
void setup() {
pixels.begin(); // INITIALIZE NeoPixel pixels object (REQUIRED)
pixels.setBrightness(25);
pixels.clear();
for(int i=NUMPIXELS/2 ;i<NUMPIXELS+1;i++){
pixels.setPixelColor(i,green);
}
pixels.show();
}
void loop()
{
currentMillis = millis();
//wait Blink
if (currentMillis - previousMillis >= interval) {
previousMillis = currentMillis; // Zeitpunkt der letzten Schaltung wird festgehalten
if (up > NUMPIXELS/2){up=0;
pixels.clear();
}
if (down< NUMPIXELS/2){down=NUMPIXELS;
for(int i=NUMPIXELS/2 ;i<NUMPIXELS;i++){
pixels.setPixelColor(i,green);
}
}
pixels.setPixelColor(up,green);
pixels.setPixelColor(down,black);
up++;
down--;
pixels.show();
}
}
and it does what you wnat with some timing
and all extrras you like to do @ALDIY@George-Verboven
I do runs some ardunio projects from time to time but not for something as simple as that as you would be missing the other things in wled but I guess if one is not willing to explore
THIS puts on the LED 15-30 UPPER SIDE
then i use jq and a For command to get the Effect
led=1;for x in {0..14..1}; do r=$(jq -cn --arg led "$led" '($led|tonumber) as $led | {on:true,bri:25,seg:{i:[0,$led,[0,255,0],30-$led,[0,0,0]]}}'); curl -X POST "http://192.168.2.100/json/state" -d $r -H "Content-Type: application/json";echo "nummer $led"; sleep 1;((led++)); done
this is quite a chalenche but it does weork also in the homeNET