1

I bought this LED light on ebay. The model is CJMCU-KZQ.

My question is, how can I get it to work on a raspberry pi and python? I have looked everywhere but cannot find any documentation for it. Also, keep in mind that this light uses SDA/SCL I2C bus.

1 Answer 1

1

Looking at the ebay page, it suggests that it uses WS2812 driver to control the LED. Thankfully, that LED driver is pretty common, which means there is plenty of available (and open-soure) code for it.

Documentation for WS2812 driver: https://cdn-shop.adafruit.com/datasheets/WS2812.pdf

Tutorial on how to use LED strip with WS2812 driver: https://tutorials-raspberrypi.com/connect-control-raspberry-pi-ws2812-rgb-led-strips/

The tutorial is great as covers every step of the process. They end up using the rpi_ws281x python wrapper which has been compiled from c.

Sign up to request clarification or add additional context in comments.

3 Comments

For advanced users who don't need the tutorial - rpi_ws281x can be found here with documentation: github.com/jgarff/rpi_ws281x
if you look at the back of the LED, it has several different inputs, while the LED in the tutorials has only 3 inputs. Do you know which inputs I need to use? There is no mention of SDA/SCL i2c bus in the tutorials.
It appears that this is a driver to run LED's but not an LED itself. Are you aware of this?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.