Вы находитесь на странице: 1из 4

2/19/2020 Guide for Connecting WS2812 LED Ring To An Arduino ATTiny85


(https://www.make-it.

Search...

Connect WS2812 LED Ring to an ATTiny85


Using an ATTiny85 with a WS2812 LED Ring

The NeoPixel WS2812 LED Ring (https://www.pcboard.ca/neopixel-ring) and Arduino ATTiny85


(https://www.pcboard.ca/mini-attiny85-usb) are the perfect combinations for the creation of elegant
LED lighting solutions.

Arduinos are wonderful and easy to work with and available in various sizes, depending on your
computing requirements. The ATTiny85 based controller features six input/output connections with a
clock running at 16MHz. Memory onboard includes 8k of Flash memory with 512 bytes of RAM.

The capabilities of the ATTiny85 allows for interfacing possibilities with many types of sensors,
controlling different types of loads and even the options of driving addressable LEDs like WS2811,
WS2812 NeoPixel display.

https://www.make-it.ca/ws2812-neopixel-ring-to-attiny85/ 1/4
2/19/2020 Guide for Connecting WS2812 LED Ring To An Arduino ATTiny85

An alternative to mounting for the ATTiny85, could be to use our Proto Arduino (https://www.make-
it.ca/proto-arduino/) prototype board which is compatible with both the ATTiny85
(https://www.pcboard.ca/mini-attiny85-usb) and the Arduino Nano (https://www.pcboard.ca/nano-
v3) processors.

(https://www.make-it.

ATTiny85 to LED Ring Connection


Search...

The interface between the ATTiny85 and the display boards requires only three connections. Power,
Ground, and Signal are all that is necessary.
The Power and Ground solder pads on each ring are connected to each other to provide power
to each of the rings.
Run a single wire from each Vcc pad on each ring and attach it back to the ATTiny85
Follow the same process for the GND connection on each ring.
The Signal lead should also include a series resistor to protect the processor from stray
voltages coming back on the signal pin. We recommend a 470-ohm (https://www.pcboard.ca/1-
4watt-resistors.html), one-quarter watt resistor for the series protection resistor. The connection
process for the signal lead is:
From the P1 pin on the ATTiny85, connect to one side of the 470-ohm resistor
The other lead of the 470-ohm connects to the DI (Data In) solder pad of the rst ring
To attach to the next ring, a connection is established from the DO (Data Out) pin and
connected to the DI pin on the next ring

https://www.make-it.ca/ws2812-neopixel-ring-to-attiny85/ 2/4
2/19/2020 Guide for Connecting WS2812 LED Ring To An Arduino ATTiny85

The DO to DI jumper is applied to each ring (from the 24-LED board to the 16-LED board,
from the 16-LED board to the 12-LED board, from the 12-LED board to the 8-LED board and
nally from the 8-LED board to the 1-LED board).


(https://www.make-it.

Search...

ATtiny85 Software Sketch for NeoPIXEL Ring Set


When you have completed connecting your ATtiny85 to the NeoPIXEL ring set, you require software
for your ATTiny85. The software sketch is programmed into your ATtiny85 using the Arduino
software.

The software sketch is a demonstration displaying some of the possibilities and effects possible. The
code can be modi ed to select only the variations you need or you can expand upon the sample
provided.

Code Download: ATTiny85-Ring-Demo.zip (https://www.make-it.ca/wp-


content/uploads/2019/11/attiny85-ring-demo.zip) (updated 2019-10-17)

Why A Series Protection Resistor?


We have recommended a resistor on the DI lead from the ATtiny85 to the rst LED ring. There were
several people inquiring why it was there. This is a good question as all the prototype systems we
built did not include the series resistor.

The best explanation we have for the resistor is if you supply power separately to the LED Rings and
another supply to the ATtiny85. This would be very common if you have larger strings of LEDs, which
would require more current to operate. With the series resistor, this would limit the possibilities of
current ow between the two separate power supplies. If you are only going to use a single power
input to the circuit, the 470-ohm resistor would be optional and not required to operate.

https://www.make-it.ca/ws2812-neopixel-ring-to-attiny85/ 3/4
2/19/2020 Guide for Connecting WS2812 LED Ring To An Arduino ATTiny85

WS2811 or WS2812 - What Is The Difference


There are times where you will see reference made to the WS2811 and other times to the WS2812. A
WS2812 is a complete single LED package that includes the LED elements and also the constant-
current driver and decoding electronics. The WS2811 is the driver chip which integrated into to the
WS2812 LED module. (https://www.make-it. 
Search...

(https://www.make-it.ca)
Make-It.ca is a division of PCBoard.ca where our team publishes handy reference material and articles. Our
goal, to be a valued resource to the Maker Community, where we can all learn, grow, and share.

 
(https://www.facebook.com/pcboard2014/) (https://www.instructables.com/member/john.kerr/)

 
(http://www.pcboard.ca)

Quick Links
 Arduino Info(/nodemcu-arduino/)  LED Speci cations(/led-speci cations/)

 Contacting Us(https://www.make-it.ca/contact/)  LED Resistor (/led-dropping-resistor-


Calculator calculator/)
 Privacy Policy(https://www.make-it.ca/privacy-policy/)
 Resistor Color Codes(/resistor-color-code-calculator/)

 Shows and Events(/shows-and-events/)

 PCBoard.ca Web Store(https://www.pcboard.ca)

Newsletter
First Name

Last Name

Your Email Address

SUBSCRIBE

Become a Maker Expert with the Make-It.ca (http://www.make-it.ca) Newsletter


Receive advice on growing your Maker skills in addition to great tips and how-to’s, along with exclusive deals.

https://www.make-it.ca/ws2812-neopixel-ring-to-attiny85/ 4/4

Вам также может понравиться