Circuit Playground Express LED strip animations help

General project help for Adafruit customers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Post Reply
User avatar
Chrispity
 
Posts: 3
Joined: Sun Jan 26, 2025 10:14 pm

Circuit Playground Express LED strip animations help

Post by Chrispity »

I'm trying to do animations using the circuit playground express I bought, and the neopixel strip I bought here: https://www.adafruit.com/product/3634#description
I'm not sure what I'm doing wrong, but the blink program that I literally copy/pasted from the LED animation page (https://learn.adafruit.com/circuitpytho ... ons/colors) is blinking other colors in addition to the default red, sometimes not all the LEDS, etc (video below).
Hoping somebody can point out if/what I'm doing wrong here.
Thanks!

Code: (i changed the pin & pixel number for my project, and also reduced the brightness to try to make it easier to see the issue on the video)

Code: Select all

import board
import neopixel
from adafruit_led_animation.animation.blink import Blink
from adafruit_led_animation.color import RED

# Update to match the pin connected to your NeoPixels
pixel_pin = board.A1
# Update to match the number of NeoPixels you have connected
pixel_num = 120

pixels = neopixel.NeoPixel(pixel_pin, pixel_num, brightness=0.01, auto_write=False)

blink = Blink(pixels, speed=0.5, color=RED)

while True:
    blink.animate()
Here's the test setup:
Image
Image
note - I didn't have a 1k capacitor as is recommended in the literature, so those green ones are three 330uF in parallel.

Results:
Image

In case those photo embeds don't work...
https://imgur.com/a/mdyuYYs

Other - I saved into my circuit playground express 'lib' folder:
folder: adafruit_led_animation
file: neopixel.mpy
from
zip: adafruit-circuitpython-bundle-9.x-mpy-20250123

User avatar
dastels
 
Posts: 17415
Joined: Tue Oct 20, 2015 3:22 pm

Re: Circuit Playground Express LED strip animations help

Post by dastels »

The images didn't post. I'd really like to see them.

Is your NeoPixels RGB order in agreement with the code.

What voltage are you powering the NeoPixels with? Where is that power coming from? Again, the images would help.

Dave

User avatar
Chrispity
 
Posts: 3
Joined: Sun Jan 26, 2025 10:14 pm

Re: Circuit Playground Express LED strip animations help

Post by Chrispity »

Did the link to Imgur not work? It works for me...
Admittedly I'm new to posting on the forum, so I'm sure I just did something wrong, but I didn't see a sticky for how-to, haha.
This is the imgur web address where i uploaded the two photos and one video:
https://imgur.com/a/mdyuYYs
If you can advise how to embed I'll try again... I just hit the photo button and then paste the link to a single picture that I copied into it...
Image
It doesn't show up on the preview so I assume it's still not working. Perhaps I'm using Imgur wrong?

To answer your questions without photographic evidence, I'm getting 5V (5.01-5.08). I'm using a portable USB power bank as the source.
For the RGB order, I'm not sure how to check that... is it easy to explain, or can you link a tutorial?
Thanks,
-Chris

User avatar
dastels
 
Posts: 17415
Joined: Tue Oct 20, 2015 3:22 pm

Re: Circuit Playground Express LED strip animations help

Post by dastels »

See https://learn.adafruit.com/adafruit-neopixel-uberguide for all thing relating to NeoPixels, including color ordering.

Do you have a common ground between the strip and CPX?

Dave

User avatar
Chrispity
 
Posts: 3
Joined: Sun Jan 26, 2025 10:14 pm

Re: Circuit Playground Express LED strip animations help

Post by Chrispity »

First of all, thank you!!!

I had read the uberguide before, and I went back and reread through it looking for RGB identification, and admittedly I still don't know how to identify if my strip is RGB, RBG, etc. I see a few descriptions about it, but not how to figure out what I've got.
However I did notice as I looked through the arduino section (that I only skimmed the first time since I am using a CPX) the FAQ you clearly referenced, about needing the common ground if my lights were blinking weird. I went back and looked at the photo of my setup and it was clearly missing. I'm sure you'd have seen that immediately if I could embed photos properly...
For some reason I didn't see this anywhere in the CPX guide nor the FAQ's of the CircuitPython LED Animations guide...
I hooked everything back up and added in the ground connection and it works perfectly now. Thanks!

I am confused why the link to imgur didn't work for you. Regardless, now to figure out how to embed photos properly for next time I get stuck...

Hah! Figured it out!
Image
The video still doesn't embed, is there a different method for that? Or perhaps you'd have to use the link to imgur anyway...
Image
https://i.imgur.com/ClNc1EY.mp4

User avatar
dastels
 
Posts: 17415
Joined: Tue Oct 20, 2015 3:22 pm

Re: Circuit Playground Express LED strip animations help

Post by dastels »

In almost all cases, you NEED to have a single, common ground. It defines what 0v is to all the circuits, and what all other voltages are relative to it. That gives them a common understanding. It's like people talking by first deciding on what language everyone will use to they can understand each other. I had a look at the images on IMGUR and noticed the missing ground connection.

As for figuring out what you have, try orders until one works. And be mindful of RGB vs RGBW strips.

Dave

Post Reply
Please be positive and constructive with your questions and comments.

Return to “General Project help”