In this tutorial, I will guide you to connect WS2812 Neopixel Leds or Neopixel rings with Raspberry Pi Pico using Micropython running on a Pico board to show various colors.
About ws2812 as per datasheet :
WS2812 is an intelligent control LED light source that the control circuit and RGB chips are integrated into a package of 5050 components. It internally includes an intelligent digital port data latch and signals reshaping amplification drive circuit. Also include a precision internal oscillator and a 12V voltage programmable constant current control part, effectively ensuring the pixel point light color height is consistent.
The data transfer protocol uses a single NZR communication mode. After the pixel power-on reset, the DIN port receives data from the controller, the first pixel collects initial 24bit data and then sent to the internal data latch, and the other data which is reshaped by the internal signal reshaping amplification circuit sent to the next cascade pixel through the DO port. After transmission for each pixel, the signal is reduced to 24bit. pixel adopt auto reshaping transmit technology, making the pixel cascade number not limited to the signal transmission, only depending on the speed of signal transmission.
Connection:
For this tutorial, I am going to connect the VBUS pin of Raspberry Pi Pico to the VCC Pin of WS2812 or Neopixel Led, GND to GND of Pico, and Data Pin of ws2812 to Pin 6 Of Raspberry Pi Pico. You can refer to the image below for the same.
0 Comments