0

8mm Neopixels running at 400khz
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

8mm Neopixels running at 400khz

by Encinitas on Thu Mar 11, 2021 1:07 pm

Hello,

I have been trying for a few days to get the 8mm diffused neopixels to work with the ft232h breakout. After trying many different OS/Driver/EEPROM configurations, and confirming that the ft232h was able to work with other SPI devices, I started to wonder if I had a timing issue. When i tried to run the neopixel at 800khz, it just shut off. When i set the code for 400khz, it works as intended. I mainly point this out in case anybody else runs into this problem, as all the provided datasheets say that the lights should run at 800khz.
Code: Select all | TOGGLE FULL SIZE
import time
import board
import neopixel_spi as neopixel
 
NUM_PIXELS = 1
PIXEL_ORDER = neopixel.RGB
COLORS = (0xFF0000, 0x00FF00, 0x0000FF)
DELAY = 0.1
 
spi = board.SPI()
 
pixels = neopixel.NeoPixel_SPI(spi,
                               NUM_PIXELS,
                               pixel_order=PIXEL_ORDER,
                               frequency=3200000,
                               auto_write=False)
 
while True:
    for color in COLORS:
        for i in range(NUM_PIXELS):
            pixels[i] = color
            pixels.show()
            time.sleep(DELAY)
            pixels.fill(0)

Encinitas
 
Posts: 1
Joined: Sun Feb 07, 2016 5:40 pm

Please be positive and constructive with your questions and comments.