Tutorial on Programming the NeoPixel (WS2812) RGB LEDs using a PIC microcontroller and C-language

Shahriar of The Signal Path posted this video tutorial on programming our NeoPixel 60 Ring – WS2812 5050 RGB LED w/ Integrated Drivers using a PIC micro controller and C-language.

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.

Read more.


Featured Adafruit Product!

NewImage

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.


Have an amazing project to share? The Electronics Show and Tell is every Wednesday at 7:30pm ET! To join, head over to YouTube and check out the show’s live chat and our Discord!

Join us every Wednesday night at 8pm ET for Ask an Engineer!

Join over 38,000+ makers on Adafruit’s Discord channels and be part of the community! http://adafru.it/discord

CircuitPython – The easiest way to program microcontrollers – CircuitPython.org


New Products – Adafruit Industries – Makers, hackers, artists, designers and engineers! — New Products 11/15/2024 Featuring Adafruit bq25185 USB / DC / Solar Charger with 3.3V Buck Board! (Video)

Python for Microcontrollers – Adafruit Daily — Python on Microcontrollers Newsletter: A New Arduino MicroPython Package Manager, How-Tos and Much More! #CircuitPython #Python #micropython @ThePSF @Raspberry_Pi

EYE on NPI – Adafruit Daily — EYE on NPI Maxim’s Himalaya uSLIC Step-Down Power Module #EyeOnNPI @maximintegrated @digikey

Adafruit IoT Monthly — The 2024 Recap Issue!

Maker Business – Adafruit Daily — Apple to build another chip at TSMC Arizona

Electronics – Adafruit Daily — SMT Tip – Stop moving around!

Get the only spam-free daily newsletter about wearables, running a "maker business", electronic tips and more! Subscribe at AdafruitDaily.com !


No Comments

No comments yet.

Sorry, the comment form is closed at this time.