NeoPixel RGB Neon-like on Raspberry Pi 3B+ won't light up

CircuitPython on hardware including Adafruit's boards, and CircuitPython libraries using Blinka on host computers.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
User avatar
jwinslade
 
Posts: 44
Joined: Fri May 21, 2021 12:00 pm

Re: NeoPixel RGB Neon-like on Raspberry Pi 3B+ won't light u

Post by jwinslade »

When I had the issue on the Pi 3, it was with a new NeoPixel array, and I sanity checked it by feeding in to the array data in some variable duty cycle square waves from a function generator (at 800 kHz, IIRC) and I did get the array to light that way. I then tried it with the RPI 2040 Feather and it worked as expected.

I thought of scoping the RPI data output to see what was actually going on, but have not.

Anyway, it's good to know that they will work on the Pi 3 without the desktop.

Thanks.

User avatar
OleTR
 
Posts: 8
Joined: Tue May 24, 2022 9:07 am

Re: NeoPixel RGB Neon-like on Raspberry Pi 3B+ won't light u

Post by OleTR »

This is for a work project and not for hobby. As we have several systems and software built upon the Raspberry Pi, I can't simply change the hardware.

Thank you for testing it and various Pi versions and scenarios.

Yesterday evening I was digging around if there are any other libraries available and came across some crucial information.
According to this source (Preparation & Installation) and some other websites I've visited it seems that you need to disable audio on the Raspberry Pi or else it will mess up the timings.
I just did that and both neopixel stripes are working. This would also explain why the non-desktop versions are working, they probably have audio disabled by default.
This is some crucial information and I'm kind of disappointed that it's not in any of the guides from adafruit. In my opinion this should be included.

Thank you all for your help.

User avatar
danhalbert
 
Posts: 4686
Joined: Tue Aug 08, 2017 12:37 pm

Re: NeoPixel RGB Neon-like on Raspberry Pi 3B+ won't light u

Post by danhalbert »

@OleTR Thank you for finding that reference. We will find a place to put a warning in the guides about audio. I think most of our testing was done on headless systems.

User avatar
jwinslade
 
Posts: 44
Joined: Fri May 21, 2021 12:00 pm

Re: NeoPixel RGB Neon-like on Raspberry Pi 3B+ won't light u

Post by jwinslade »

My guess is that it was developed on the Pi without the desktop, just using it as a controller.

I have the Pi Top which has the Pi 3, and when I get some time I'm going to try it on that, disabling the sound (the Pi Top does not have speakers) and verify if that's the trick. It does make sense.

User avatar
adafruit2
 
Posts: 22187
Joined: Fri Mar 11, 2005 7:36 pm

Re: NeoPixel RGB Neon-like on Raspberry Pi 3B+ won't light u

Post by adafruit2 »

the pwm peripheral we use for neopixels are used for audio on the headphone jack. if you switch to hdmi audio that will free the pwm peripheral. or you can try using the SPI peripheral, i think thats gpio 10
see
https://github.com/jgarff/rpi_ws281x
for deets

User avatar
OleTR
 
Posts: 8
Joined: Tue May 24, 2022 9:07 am

Re: NeoPixel RGB Neon-like on Raspberry Pi 3B+ won't light u

Post by OleTR »

Well in this occasion I won't need audio, but it's still good to know, thank you for the further informaiton.

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

Return to “Adafruit CircuitPython”