Comments (2)
Alright. After more than 12h of debugging, I finally found my small little flaw in the system. I forgot to ground the Pi with the ground of the LED strip. A simple jumper wire between both grounds solved the problem. Still, only about half of the strip light up, but that may be a problem with the strip itself.
from rpi_ws281x.
This sounds suspiciously like a issue with your hardware. I've seen this
behavior when a faulty level translator is used. I'd double check to make
sure your level translator is working properly and that your LEDs are
properly grounded and powered. If you have access to a oscilloscope, you
could verify that proper signaling is being received/sent.
On Mon, Feb 8, 2016 at 11:54 AM Richard [email protected] wrote:
I'm trying to get my WS2812B 5050 LED Strip (5m, 150 LEDs) to work on my
Raspberry Pi 2. I've tried several different libraries and while some don't
start at all, others (including this one) make about half of my LED Strip
flicker in random colors and without any order when checking it with the
strandtest.py.After I read some issues and pull requests, it seems like I can't find a
solution for my problem. I also tried messing with the frequency and used
Pin 12 instead of Pin 18 without any improvement.If it helps, here is my install routine:
pi@pi:~ $ git clone https://github.com/jgarff/rpi_ws281x.git
Cloning into 'rpi_ws281x'...
remote: Counting objects: 216, done.
remote: Total 216 (delta 0), reused 0 (delta 0), pack-reused 216
Receiving objects: 100% (216/216), 141.10 KiB | 0 bytes/s, done.
Resolving deltas: 100% (125/125), done.
Checking connectivity... done.
pi@pi:~ $ cd rpi_ws281x/
pi@pi:/rpi_ws281x $ sudo scons/rpi_ws281x $ cd python/
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
CC main.o
CC mailbox.o
CC ws2811.o
CC pwm.o
CC dma.o
CC rpihw.o
AR libws2811.a
RANLIB libws2811.a
LINK test
scons: done building targets.
pi@pi:
pi@pi:~/rpi_ws281x/python $ sudo python setup.py install
running install
running bdist_egg
running egg_info
creating rpi_ws281x.egg-info
writing rpi_ws281x.egg-info/PKG-INFO
writing top-level names to rpi_ws281x.egg-info/top_level.txt
writing dependency_links to rpi_ws281x.egg-info/dependency_links.txt
writing manifest file 'rpi_ws281x.egg-info/SOURCES.txt'
reading manifest file 'rpi_ws281x.egg-info/SOURCES.txt'
writing manifest file 'rpi_ws281x.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-armv7l/egg
running install_lib
running build_py
creating build
creating build/lib.linux-armv7l-2.7
copying neopixel.py -> build/lib.linux-armv7l-2.7
running build_ext
building '_rpi_ws281x' extension
swigging rpi_ws281x.i to rpi_ws281x_wrap.c
swig -python -o rpi_ws281x_wrap.c rpi_ws281x.i
creating build/temp.linux-armv7l-2.7
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c rpi_ws281x_wrap.c -o build/temp.linux-armv7l-2.7/rpi_ws281x_wrap.o
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security build/temp.linux-armv7l-2.7/rpi_ws281x_wrap.o -L../. -lws2811 -o build/lib.linux-armv7l-2.7/_rpi_ws281x.so
creating build/bdist.linux-armv7l
creating build/bdist.linux-armv7l/egg
copying build/lib.linux-armv7l-2.7/_rpi_ws281x.so -> build/bdist.linux-armv7l/egg
copying build/lib.linux-armv7l-2.7/neopixel.py -> build/bdist.linux-armv7l/egg
byte-compiling build/bdist.linux-armv7l/egg/neopixel.py to neopixel.pyc
creating stub loader for _rpi_ws281x.so
byte-compiling build/bdist.linux-armv7l/egg/_rpi_ws281x.py to _rpi_ws281x.pyc
creating build/bdist.linux-armv7l/egg/EGG-INFO
copying rpi_ws281x.egg-info/PKG-INFO -> build/bdist.linux-armv7l/egg/EGG-INFO
copying rpi_ws281x.egg-info/SOURCES.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying rpi_ws281x.egg-info/dependency_links.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying rpi_ws281x.egg-info/top_level.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
writing build/bdist.linux-armv7l/egg/EGG-INFO/native_libs.txt
zip_safe flag not set; analyzing archive contents...
creating dist
creating 'dist/rpi_ws281x-1.0.0-py2.7-linux-armv7l.egg' and adding 'build/bdist.linux-armv7l/egg' to it
removing 'build/bdist.linux-armv7l/egg' (and everything under it)
Processing rpi_ws281x-1.0.0-py2.7-linux-armv7l.egg
Removing /usr/local/lib/python2.7/dist-packages/rpi_ws281x-1.0.0-py2.7-linux-armv7l.egg
Copying rpi_ws281x-1.0.0-py2.7-linux-armv7l.egg to /usr/local/lib/python2.7/dist-packages
rpi-ws281x 1.0.0 is already the active version in easy-install.pthInstalled /usr/local/lib/python2.7/dist-packages/rpi_ws281x-1.0.0-py2.7-linux-armv7l.egg
Processing dependencies for rpi-ws281x==1.0.0
Finished processing dependencies for rpi-ws281x==1.0.0
pi@pi:~/rpi_ws281x/python $ sudo python examples/strandtest.py
Press Ctrl-C to quit.—
Reply to this email directly or view it on GitHub
#60.
from rpi_ws281x.
Related Issues (20)
- Raspberry Pi Zero 2 W - Hardware revision is not supported HOT 4
- Compute Module 4 v1.1 (new revision) WiFi 8GB HOT 1
- White value in Blue color on Rpi3 with GRBW strip HOT 2
- "ws2811_init failed: Hardware revision is not supported" on Banana Pi BPI-M2 ZERO HOT 2
- RuntimeError: ws2811_init failed with code -3 (Hardware revision is not supported) - Raspberry Pi 3 Model B Rev 1.0 HOT 9
- ws2813 timings (PWM, Pi 3 b+)
- rp_cm4_8gb_v1.1_support HOT 1
- ws2811_init failed with code -3 (Hardware revision is not supported)
- Compute Module 4 latest version not supported HOT 2
- Odroid C4 support HOT 2
- Hardware revision is not supported for Raspbery pi 3 with hardware revision a32082 HOT 3
- RPi 3B+ Rev 1.4: Hardware revision is not supported HOT 1
- Wrong color calculation HOT 1
- pigpio interfering with PCM operation
- runtime error ws2811_init failed with code -5 (mmap() failed) HOT 1
- munmap_chunk(): invalid pointer HOT 1
- RPi 3 Model A+ Rev 1.1 - Hardware revision is not supported HOT 3
- Support for Raspberry Pi 5 HOT 73
- Raspberry Pi 5B with Neopixel: Hardware revision is not supported HOT 1
- Support for Raspberry Pi 4b (Revision : d03115) Rev1.5 ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rpi_ws281x.