LED Strip not Working

I have a WS2812B long LED strip and am having trouble getting it to turn on.

I attached a picture of my connections. I connected an external 5V power supply to both the arduino and the strip, I attached the ground of the power supply to the Arduino and the strip, I attached a capacitor between the ground and the 5V source, and I added a resistor between the LED strip and the arduino.

The code I am using is this:

#include <FastLED.h>

#define LED_PIN     7
#define NUM_LEDS    20

CRGB leds[NUM_LEDS];

void setup() {
  FastLED.addLeds<WS2812B, LED_PIN, GRB>(leds, NUM_LEDS);
  

}

void loop() {

  leds[0] = CRGB(0,255,0);
  FastLED.show();
  delay(500);
  leds[1] = CRGB(0,0,255);
  FastLED.show();
  delay(500);
  leds[2] = CRGB(255,0,0);
  FastLED.show();
  delay(500);
  leds[3] = CRGB(255,0,0);
  FastLED.show();
  delay(500);

}

After it is done compiling/uploading, I get this message:

"Sketch uses 3612 bytes (11%) of program storage space. Maximum is 32256 bytes.
Global variables use 157 bytes (7%) of dynamic memory, leaving 1891 bytes for local variables. Maximum is 2048 bytes."

And nothing happens.
The reason I re-soldered the LED strip wires to the second LED is because I read somewhere that it's possible that if you don't have the capacitor/resistor you can damage the first LED so that no signal will flow through to the rest of the strip. I think this likely happened because I used a 5V plug-in to the arduino (not the current external power source) and the first LED did turn on, but stopped working after about 10 minutes and I did not have the proper resistor nor capacitor.

This is my first time using Arduino, and I'm not sure what I'm doing wrong.
Any help will be appreciated. Thanks!


It is hard to tell by looking at your picture, but do you have 5V and ground connections reversed where you soldered then to the strip?

They are connected in the right way.

Are you certain? It does not look like that to me from your picture. Measure the voltage with your multimeter. Black probe to the ground of and red probe to the 5V pad on the strip.