Hello guys,
short: My LED strip doesn't work anymore, but it did before and I dont know where the problem is.
Now some details:
Components I use:
-NodeMCU (ESP8266) https://amzn.to/3rzPeRO
-5m 300 Leds adressable WS2812B Strip https://amzn.to/39nUPnV
-5v 12A Power Supply https://amzn.to/3waqYZX
The Problem:
I use this strip for a few weeks now and, most of the time, it worked.
2 times one LED had a malfunction, so i cut it out and soldered the strip back together.
But 2 days ago the strip wouldn't light up anymore and i have no idea what happened.
I measured the voltage in the strip andchanged every possible component, such as Microcontroller, Data cable and strip.
I had a small piece of strip left, since i cut it off from the long one. I connected it to the controller and supply, unfartunately I messed up the poles (connected GND to 5v and 5v to GND), so I am still not sure if both strips are broken, or is the malfunction somewhere else?
I also wrote the smallest possible piece of code, to exclude any malfunction there (I usually have a bunch of Blynk, Amazon echo and Fourier Transformation stuff in there)
Here is the easy code:
#include <Arduino.h>
#include <ESP8266WiFi.h>
#include "FastLED.h"
#define NUM_LEDS 25
#define DATA_PIN 5
CRGB leds[NUM_LEDS];
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
FastLED.addLeds<WS2812B, DATA_PIN>(leds, NUM_LEDS);
}
void loop() {
// put your main code here, to run repeatedly:
fill_solid(leds, NUM_LEDS, CRGB(255, 0, 120));
FastLED.show();
Serial.println("On.");
delay(1000);
fill_solid(leds, NUM_LEDS, CRGB(0, 0, 0));
FastLED.show();
Serial.println("Off.");
delay(1000);
}
Do you have any ideas what tests I could do to find the problem or where it might be?
I would be very thankful if you can help me, because I don't know what to do anymore despite of buying a new strip.
Looking forward to your answer,
Leo M.
PS: Sorry for any grammar mistakes, i'm not a native speaker.
