In this episode Shahriar takes a close look at programming the popular NeoPixel RGB LEDs using a PIC microcontroller and C-language. A close-up of the NeoPixel (WS2812) LED is shown with attention to identifying various semiconductor elements inside the package. The principle operation of the LED is the described along with a detailed explanation of the pins and the one-wire communication protocol.
A simple evaluation board for the PIC18F4550 is used to drive a circular array of 60 NeoPixel LEDs from Adafruit. After presenting the difficulties of providing an accurate pulse-shape using the C-language, the measured waveform is shown on a Tektronix MDO4000B. Finally, the code for a circular color rotating pattern is presented and demoed. The code for the experiment can be downloaded here.
NeoPixel 1/4 60 Ring – WS2812 5050 RGB LED w/ Integrated Drivers: The biggest NeoPixel Ring yet! With four of these you can make a huge ring with 60 ultra bright smart LED NeoPixels are arranged in a circle with a 6.2″ diameter. Each order comes with just the quarter ring. Four of this item are required to make a large ring. You will have to solder them together as well, so for the full ring of 60 LEDs, buy four and solder them together! Read more.
Stop breadboarding and soldering – start making immediately! Adafruit’s Circuit Playground is jam-packed with LEDs, sensors, buttons, alligator clip pads and more. Build projects with Circuit Playground in a few minutes with the drag-and-drop MakeCode programming site, learn computer science using the CS Discoveries class on code.org, jump into CircuitPython to learn Python and hardware together, TinyGO, or even use the Arduino IDE. Circuit Playground Express is the newest and best Circuit Playground board, with support for CircuitPython, MakeCode, and Arduino. It has a powerful processor, 10 NeoPixels, mini speaker, InfraRed receive and transmit, two buttons, a switch, 14 alligator clip pads, and lots of sensors: capacitive touch, IR proximity, temperature, light, motion and sound. A whole wide world of electronics and coding is waiting for you, and it fits in the palm of your hand.