# Wled ws2812b - first led red

**URL:** <https://wled.discourse.group/t/wled-ws2812b-first-led-red/12878>\
**Category:** Issues\
**Created:** [October 7, 2024, 12:37pm UTC](https://wled.discourse.group/t/wled-ws2812b-first-led-red/12878 "2024-10-07T12:37:26Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![dvdauay](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/dvdauay/32/8543_2.png) [@dvdauay](https://wled.discourse.group/u/dvdauay)\
**Post date:** [October 7, 2024, 12:37pm UTC](https://wled.discourse.group/t/wled-ws2812b-first-led-red/12878/1 "2024-10-07T12:37:26Z")

</div>

Hello,

I buy a btf-lighting - WS2812B model 100 led, I cut to 9, when I plug my led strip to my ESP8266, always the first stay in Red color.  
Here my photos I take to illustrate. I search on this discourse but It seems that I can not found my issue.

 ![image](https://global.discourse-cdn.com/free1/uploads/wled/original/2X/5/5c618f3cbb8a0ac370fea7e9c974ac73f2e16c78.jpeg)

---

<div class="post-metadata">

**Author:** ![dvdauay](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/dvdauay/32/8543_2.png) [@dvdauay](https://wled.discourse.group/u/dvdauay)\
**Post date:** [October 7, 2024, 12:50pm UTC](https://wled.discourse.group/t/wled-ws2812b-first-led-red/12878/2 "2024-10-07T12:50:15Z")

</div>

the wiring configuration :  
VCC : Red =\> ESP8266 : Vin  
GND : White =\> ESP8266 Gnd  
Data : Green =\> ESP8266 D2

Number of led : 9

The wled configuration :

 ![image](https://global.discourse-cdn.com/free1/uploads/wled/original/2X/c/cca14a180a84959fe5b4c16ef0e2ae2575e1aa65.png)  
I boot and reboot the esp8266 etc. but I do not find the solution.

When I wiring the composants, always first led turn red, and no actions seems possible.

---

<div class="post-metadata">

**Author:** ![dedehai](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/dedehai/32/7265_2.png) [@dedehai](https://wled.discourse.group/u/dedehai)\
**Post date:** [October 7, 2024, 2:33pm UTC](https://wled.discourse.group/t/wled-ws2812b-first-led-red/12878/3 "2024-10-07T14:33:13Z")

</div>

D2 is not GPIO2 usually. I think its GPIO4, check the boards pinout.

---

<div class="post-metadata">

**Author:** ![dvdauay](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/dvdauay/32/8543_2.png) [@dvdauay](https://wled.discourse.group/u/dvdauay)\
**Post date:** [October 7, 2024, 2:58pm UTC](https://wled.discourse.group/t/wled-ws2812b-first-led-red/12878/4 "2024-10-07T14:58:00Z")

</div>

Hello, I change it, but always the same problem

---

<div class="post-metadata">

**Author:** ![dedehai](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/dedehai/32/7265_2.png) [@dedehai](https://wled.discourse.group/u/dedehai)\
**Post date:** [October 7, 2024, 6:21pm UTC](https://wled.discourse.group/t/wled-ws2812b-first-led-red/12878/5 "2024-10-07T18:21:14Z")

</div>

did you check the pinout of your board?

---

<div class="post-metadata">

**Author:** ![dvdauay](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/dvdauay/32/8543_2.png) [@dvdauay](https://wled.discourse.group/u/dvdauay)\
**Post date:** [October 7, 2024, 6:38pm UTC](https://wled.discourse.group/t/wled-ws2812b-first-led-red/12878/6 "2024-10-07T18:38:50Z")

</div>

![17283260364183273079652013780339](https://global.discourse-cdn.com/free1/uploads/wled/original/2X/6/62471fa95d39f7364da6883731238b7058aa2961.jpeg)  
Ok, so I set gpio 4 on my interface and put the green on D2. same issue.

---

<div class="post-metadata">

**Author:** ![Jinx](https://avatars.discourse-cdn.com/v4/letter/j/c6cbf5/32.png) [@Jinx](https://wled.discourse.group/u/Jinx)\
**Post date:** [October 7, 2024, 8:00pm UTC](https://wled.discourse.group/t/wled-ws2812b-first-led-red/12878/7 "2024-10-07T20:00:20Z")

</div>

Could be a bad LED.

---

<div class="post-metadata">

**Author:** ![jack1999](https://avatars.discourse-cdn.com/v4/letter/j/73ab20/32.png) [@jack1999](https://wled.discourse.group/u/jack1999)\
**Post date:** [October 11, 2024, 8:51am UTC](https://wled.discourse.group/t/wled-ws2812b-first-led-red/12878/8 "2024-10-11T08:51:54Z")

</div>

> [@dvdauay](#):
>
> Hello,
> 
> I buy a btf-lighting - WS2812B model 100 led, I cut to 9, when I plug my led strip to my ESP8266, always the first stay in Red color.  
> Here my photos I take to illustrate. I search on this discourse but It seems that I can not found my issue.

It sounds like you’re experiencing a common issue with WS2812B LED strips where the first LED remains lit in red. Here are a few things to check:

1. **Wiring** : Ensure that your data line is connected correctly. The data input of the LED strip should be connected to the correct GPIO pin on your ESP8266.

2. **Power Supply** : Check that your power supply is sufficient for the number of LEDs. Even if you cut it to 9, the supply should handle the current requirements.

3. **Data Signal** : Sometimes, a weak data signal can cause the first LED to behave incorrectly. Try using a resistor (around 330-470 ohms) on the data line between the ESP8266 and the LED strip.

4. **Code Configuration** : Make sure your code is properly configured to address the correct number of LEDs. If you are using libraries like [FastLED](https://www.oemstron.com/) or Adafruit NeoPixel, ensure that you have set the number of LEDs to 9 in your setup.

5. **Testing with Simple Code** : Test with a simple example code that only turns on one LED at a time to see if the issue persists.

If you check these points and the problem continues, feel free to share your wiring setup or code for more specific troubleshooting!

---

<div class="post-metadata">

**Author:** ![dvdauay](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/dvdauay/32/8543_2.png) [@dvdauay](https://wled.discourse.group/u/dvdauay)\
**Post date:** [October 11, 2024, 2:01pm UTC](https://wled.discourse.group/t/wled-ws2812b-first-led-red/12878/9 "2024-10-11T14:01:52Z")

</div>

Thanks to @Jinx and @jack1999, I delete the bad led and I plug it to the ESP8266 and it seems work.  
**But** now I have another issue only the `4 first leds` are on but the other is off, I test the Amp and the Voltage seems to be ok. (the same for the firsts and last led)

I change the value of the `LENGTH` :

 ![image](https://global.discourse-cdn.com/free1/uploads/wled/original/2X/1/17b4acb57cd095198612c9616331dcff6e6ff29a.png)

But only the first 4 are On. I don’t know why.

---

<div class="post-metadata">

**Author:** ![divsys](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@divsys](https://wled.discourse.group/u/divsys)\
**Post date:** [October 11, 2024, 2:06pm UTC](https://wled.discourse.group/t/wled-ws2812b-first-led-red/12878/10 "2024-10-11T14:06:28Z")

</div>

Take a look at your segment definition, you may have a shorter segment.

You could try making a new one from scratch.

Other than that, it’s possible you have more than one bad LED on the strip.  
How did the 1st one fail?

---

<div class="post-metadata">

**Author:** ![Jinx](https://avatars.discourse-cdn.com/v4/letter/j/c6cbf5/32.png) [@Jinx](https://wled.discourse.group/u/Jinx)\
**Post date:** [October 11, 2024, 6:04pm UTC](https://wled.discourse.group/t/wled-ws2812b-first-led-red/12878/11 "2024-10-11T18:04:49Z")

</div>

Welcome. BTW Jack is a spam bot. Ignore them and don’t click their links.

I sure wish someone would remove jack already as this is the 3rd time they have made a mess in the forums. @Aircoookie
