User avatar
Prutsky
Posts: 5
Joined: Thu Jul 09, 2015 1:18 pm

NeoPixel stick works with rPi 3, but not with Pi Zero?!?

Sun Sep 17, 2017 11:08 am

I created a test setup on my Raspberry Pi 3 and got the Neopixel Stick (8 x 5050 RGBW) work like it should.

I use the following library https://github.com/jgarff/rpi_ws281x.git

Now I compile this same library on a Pi Zero (v1.3) and connect the Neopixel stick to it.
Using the same code, the Neopixel stick does not respond to the code. When I CTRL+C my python program, the LEDs turn all on full brightness white.

Also the test script and test Python programs supplied with the rpi_ws281x library react the same.

I tried different Pi Zero's, alway use GPIO18.

What could go wrong?

User avatar
Prutsky
Posts: 5
Joined: Thu Jul 09, 2015 1:18 pm

Re: NeoPixel stick works with rPi 3, but not with Pi Zero?!?

Sun Sep 17, 2017 2:14 pm

Dubugging further I learned that Servoblaster (which is also used on the Pi) interferes the the NeoPixel library. When I uninstall ServoBlaster the LEDs work.

Now I need to figure out how to make my servo and the NeoPixel work together...

PiGraham
Posts: 3939
Joined: Fri Jun 07, 2013 12:37 pm
Location: Waterlooville

Re: NeoPixel stick works with rPi 3, but not with Pi Zero?!?

Sun Sep 17, 2017 2:27 pm

I don't know if it will be more compatible with that library but pigpio does a good job of controlling servos. It also has a wave out put function that clocks data out to multiple gpio pins. That might work to drive the LEDs is the other way doesn't work with company.

Return to “Troubleshooting”