


Note: Make sure to not confuse the WS2812-based IC with the APA102 addressable LEDs. Our go-to is the classic Arduino Uno, but any Arduino board should do. Something that can send the series of 1's and 0's used to control the LEDs. MicrocontrollerĪside from the star of the show, you'll also need a microcontroller. Grab however many you think you'll need for your project, regardless of how many you have, it's not enough. The more the merrier! In the example hookup, we'll be linking together five breakout boards, but the example should be adaptable to the other WS2812-based products.

Stating the obvious: you'll need a WS2812-based board or strip.

Required Materials WS2812-Based LED Board or Strip And we'll close the tutorial out with some example Arduino code. We'll go over some of the ways you might want to hook up to the breakout board, LilyPad, or strips. In this tutorial we're going to get you familiar with the workings of the WS2812 and WS2812B. The more boards you have linked together, the fancier your animations can be! Plus they're chain-able - the output of one LED can be connected to the input of another to create strips of hundreds of LEDs. With the help of some libraries, they're really very easy to control. The IC embedded into the LED communicates via a very unique one-wire interface. LEDs, unlike other diodes, can not withstand large reverse bias voltages.What makes the WS2812B really special is the way its controlled. When connected the right way around the LED is said to be "forward biased". If an LED is connected the wrong way around in a circuit (anode to negative and cathode to positive) it is said to be "reverse biased" and will not emit light. LEDs are diodes which means that current can only flow through an LED from the anode to the cathode and not the other way around. LEDs must always be connected in series with a resistor. Never connect an LED directly across a battery or other power source – it will burn out. The cathode is marked on the rim of the LED body with a flat area shown in the diagram.Īnother way to tell which lead is the anode and which is the cathode is to look at the two plates at the end of the leads inside the body of the LED. On the physical LED, the longer lead (or leg) of the LED is the anode. The way that the schematic symbol of the LED maps to the physical LED is shown in the diagram below: An LED must be connected in a circuit the right way around – observe the polarity of the LED. The symbol for an LED used in circuit diagrams is shown here: LED PolarityĪn LED has a positive lead know as the anode and a negative lead known as the cathode. Examples of LEDs used in Electronics LED Symbol LEDs are like small light bulbs and are available in different sizes and colours. The LED (Light Emitting Diode) is exactly what it name suggests – a diode that emits light.
