Skip to content

Neopixel Glitch (Random Colours) Using RP2040 (Waveshare RP2040 Zero) #8051

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ghost opened this issue May 31, 2023 · 3 comments
Closed

Neopixel Glitch (Random Colours) Using RP2040 (Waveshare RP2040 Zero) #8051

ghost opened this issue May 31, 2023 · 3 comments
Labels
Milestone

Comments

@ghost
Copy link

ghost commented May 31, 2023

CircuitPython version

Adafruit CircuitPython 8.0.5 on 2023-04-31; Waveshare RP2040-Zero with rp2040

Code/REPL

import board
import neopixel

from adafruit_led_animation.animation.rainbow import Rainbow

pixel_pin = board.GP6
pixel_num = 8

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

rainbow = Rainbow(pixels, speed=0.1, period=2)

while True:
    rainbow.animate()

Behavior

Hi, i have issue with rp2040, i use rainbow animation suddenly sometime neopixel show a flicker of random color and continue the animation as normal here is a similar issue with some video examples #3835

Description

No response

Additional information

No response

@ghost ghost added the bug label May 31, 2023
@tannewt tannewt added this to the Support milestone May 31, 2023
@tannewt
Copy link
Member

tannewt commented May 31, 2023

How are you powering the neopixels? This can happen if you are using 3.3v logic but powering the pixels at 5v.

@ghost
Copy link
Author

ghost commented May 31, 2023

How are you powering the neopixels? This can happen if you are using 3.3v logic but powering the pixels at 5v.

I am powering it with onboard 5v supply (Waveshare RP2040 Zero).
image

@ghost ghost changed the title Neopixel Glitch (Random Colours) Using RP2040 Neopixel Glitch (Random Colours) Using RP2040 (Waveshare RP2040 Zero) May 31, 2023
@tannewt
Copy link
Member

tannewt commented May 31, 2023

For reliable communication you'll either want to power them at 3v or level shift the data stream up to 5v logic. This is why the ItsyBitsy has pin 5 be 5v logic.

@tannewt tannewt closed this as completed May 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant