




▲ 1 r/led
Issues with getting 5V strip to respond to code from Arduino Nano (NeoPixel)
I'm new to LEDs and have been trying to create a matrix that I can see through for cosplay. The idea is to use strips to create rows of lights, then control them with code from an Arduino Nano. Despite trying several different programs for testing, I haven't been able to get the LED strip to respond to my code, though I have gotten LEDs to light up via manipulating the power wires.
I've provided photos of my setup as well as my attempt at a diagram in case the photos were hard to follow.
Parts:
- 5V 120 LED strip: https://www.ledlightinghut.com/ws2812c-2020-digital-rgb-led-strip.html
- Arduino Nano: https://www.amazon.com/dp/B0C947BHK5?lv=shuf&social_share=cm_sw_r_cp_ud_dp_Z17E8X52XFJZQ348P8H4&channelId=751&ref_=cm_sw_r_cp_ud_dp_Z17E8X52XFJZQ348P8H4&plpRedirect=mhFallback&th=1
- Logic level converter: https://www.amazon.com/dp/B0FFMLDYNY?lv=shuf&social_share=cm_sw_r_cp_ud_dp_KGY61XDVCECEZQPCDTT3&channelId=751&ref_=cm_sw_r_cp_ud_dp_KGY61XDVCECEZQPCDTT3&plpRedirect=mhFallback
- 5V Battery: amazon.com/dp/B09QCXR8D4?lv=shuf&social_share=cm_sw_r_cp_ud_dp_1KJM44A58B6R277ZZSN5&channelId=751&ref_=cm_sw_r_cp_ud_dp_1KJM44A58B6R277ZZSN5&plpRedirect=mhFallback
- Capacitor: 50V, 470 μF
- Wire connectors: https://www.amazon.com/dp/B0BYCSYTB3?ref=ppx_yo2ov_dt_b_fed_asin_title
- USB power cable: https://www.amazon.com/dp/B0GBGV9C4G?ref=ppx_yo2ov_dt_b_fed_asin_title
The code I'm using should cause the first light to turn red, but I've also tried the example code provided by Adafruit.
#include <Adafruit_NeoPixel.h>
#define LED_PIN D2
#define LED_COUNT 120
Adafruit_NeoPixel strip(LED_COUNT, LED_PIN, NEO_GRB + NEO_KHZ800);
void setup() {
strip.begin();
strip.clear();
strip.setPixelColor(50, 255, 0, 0);
strip.show();
}
void loop() {
}
Is there anything I could do to resolve the issue?
u/TKranger — 4 days ago