Hi,
This is my first project, and post on this forum.
I started an infinity LED cube project, using an Arduino to control a WS2812B LED strip.
I ordered the Arduino Nano RP2040 in case I want to expand my project later and make it controllable via BLE, or even the network, but for now I am just looking at getting the LEDs to light up, which I have been...completely failing at
I tried following a few different learning sources and tutorials, including this one, which was very clear and simple, with no luck.
I then found out that the 5V pin on the RP2040 was not available unless you soldered both VUSB pins, which I did, without any positive impact.
Here is a diagram of my wiring:
And here is the code I am uploading using the Arduino IDE:
#include <FastLED.h>
FASTLED_USING_NAMESPACE
#define DATA_PIN 6
#define LED_TYPE WS2812B
#define COLOR_ORDER GRB
#define NUM_LEDS 144
CRGB leds[NUM_LEDS];
#define BRIGHTNESS 96
#define FRAMES_PER_SECOND 120
#define VOLTS 5
#define MAX_AMPS 500
void setup() {
delay(3000); // 3 second delay for recovery
// tell FastLED about the LED strip configuration
FastLED.addLeds<LED_TYPE, DATA_PIN, COLOR_ORDER>(leds, NUM_LEDS).setCorrection(TypicalLEDStrip);
//FastLED.addLeds<LED_TYPE,DATA_PIN,CLK_PIN,COLOR_ORDER>(leds, NUM_LEDS).setCorrection(TypicalLEDStrip);
FastLED.setMaxPowerInVoltsAndMilliamps(VOLTS, MAX_AMPS);
// set master brightness control
FastLED.setBrightness(BRIGHTNESS);
FastLED.clear();
FastLED.show();
}
void loop() {
leds[0] = CRGB(255, 0, 0);
FastLED.show();
delay(100);
}
For now, I am only trying to get 1 LED to light up, so I assumed it would be fine powering it through the Arduino USB, but I cannot get it to work.
A list of the things I have tried:
- Using the VIN pin instead of the 5V pin -> no change
- Using/Not using a breadboard for my connections -> no change
- Measuring the voltage out of the Arduino -> I get 5V
- Powering the LED strip using an external power source (Positive and GND wires connected to the +/- of the 5V-10A power adapter respectively) -> no change
- Trying with a different LED strip -> no change
- Using a different Data Pin -> no change
I am a bit at a loss here, hoping somebody who has experienced the same issue, or simply with more knowledge, can help me
Thank you!