Looking for help, NeoPixel on Nano33IOT not lighting up past

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
fathomcaster
 
Posts: 1
Joined: Thu Nov 04, 2021 9:02 pm

Looking for help, NeoPixel on Nano33IOT not lighting up past

Post by fathomcaster »

Stop me if you've heard this one before... my project was working perfectly and it just stopped working!

The kit:
Arduino Nano 33 IOT
27 Warm White individual Adafruit NeoPixels
27 LED Breakout PCB's

The project:
A customer made Telecaster with embedded LED's that did a variety of things.

Link to what it looked like working:
https://www.instagram.com/p/CFe_0fgncgW/

No link to how it went sideways, but it stopped walking through the LED's in the right order, things just went wonky on it. I thought I may had drilled through one of the wires, but all the lights light up individually. Code for the full project is here: https://github.com/lanapalooza/fathomcaster

So, in order to not eat an elephant in a single bite, I've simplified things.

Since I can't take the lights out of the guitar, I reproduced the setup on my bench, but even more simple.

Using the same Nano 33 IOT, I soldered up some more NeoPixels, wrote the simplest of sketch files and I'm getting similar behaviour. That is I can't light up Pixel's 8 and 9 in my string on the bench... I've taken the pixels from the 8 and 9 spot and moved them to the 6 and 7 spot and they work fine, I don't have a capacitor in place, but I do have a 470Ohm resistor on the data line, whether it is there or no the behaviour is the same. I'm running the latest Libraries on the Nano 33 IOT.

This is what my code looks like:

Code: Select all

#include <Adafruit_NeoPixel.h>
#include <SPI.h>

// Which pin on the Arduino is connected to the NeoPixels?
#define LED_PIN 6 // On Trinket or Gemma, suggest changing this to 1

// How many NeoPixels are attached to the Arduino?
#define N_PIXELS 10 // Popular NeoPixel ring size

Adafruit_NeoPixel strip = Adafruit_NeoPixel(N_PIXELS, LED_PIN, NEO_GRB + NEO_KHZ800);

void setup() {
  // These lines are specifically to support the Adafruit Trinket 5V 16 MHz.
  // Any other board, you can remove this part (but no harm leaving it):
  strip.begin();
  strip.clear(); // Set all pixel colors to 'off'
  strip.show();
}

void loop() {

 for (int i = 0; i <= 10; i++) {
      strip.setPixelColor(i, 10, 10, 10);
      strip.show();
      delay(200);
      Serial.println(i);
    }
  for (int i = 10; i >= 0; i--) {
    strip.setPixelColor(i, 0, 0, 0);
    strip.show();
    delay(200);
    Serial.println(i);
  }
}
This is what it looks like on my bench:
IMG_3621.jpg
IMG_3621.jpg (289.08 KiB) Viewed 344 times
Would love to hear any thoughts... when I make this code even more simple and call strip.seetPixelColor(7,255,255,255) nothing lights up, but if I call 0-6 they all light up fine.

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”