Adafruit_CircuitPython_NeoPixel: not support more than 30 LEDs bug
not support more than 30 LEDs bug
Why are many LEDs not lit?
environment
Raspberry Pi 3B
, BCM GPIO 18
PIN
5V/2.5A
unofficial power supply (⚠️ There may be a low voltage
error)
Python 3.9.2
one WS2812B
RGB LED strip of 1M
long with 60 LEDs
packages
$ sudo pip3 install rpi_ws281x
$ sudo pip3 install adafruit-circuitpython-neopixel
$ sudo pip3 install --force-reinstall adafruit-blinka
# equal to
$ sudo python3 -m pip install --force-reinstall adafruit-blinka
codes
#!/usr/bin/env python3
# coding: utf8
import board
import neopixel
from time import sleep
# 60 LEDs
pixels = neopixel.NeoPixel(board.D18, 60)
while True:
for x in range(0, 60):
pixels[x] = (255, 0, 0)
sleep(0.1)
"""
$ chmod +x ./led-strip.py
# ❌ Can't open /dev/mem: Permission denied
# $ ./led-strip.py
# ✅
$ sudo ./led-strip.py
"""
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 2
- Comments: 18 (5 by maintainers)
update
2023.06.01
5V/4A
power.But the test result is not expected
ok, at last the problem solved here for my RPI 3 b. I commented the line #dtparam=audio=on in /boot/config.txt file.
it gives throttled=0x50000. and works in undervoltage also. Posting it might help someone. check this link(Pi 3B user): https://tutorials-raspberrypi.com/connect-control-raspberry-pi-ws2812-rgb-led-strips/
2023.06.12 update
The
BTF-LIGHTING
brand is a great product ✅https://item.taobao.com/item.htm?id=522197656009
Hardware change
I meant that the way the wires are connected leaves them exposed so a person could accidentally touch them. Ideally that should be secured more so it’s not possible to accidentally touch the live wires.
What happens if you try like this:
@FoamyGuy Thanks for your time!
5V
GPIO PINI will try your suggestions later.
how to clear the WS2812B’s buffer data?