Running Neopixel Ring with Attiny85
I don’t usually advertise anything from private companies but I really like Neopixel Ring. It is a bit expensive if you compare it with isolated rgb leds however you have to take in account they are really tiny and that could be a problem.
For Adafruit, Neopixel ring is 16 x WS2812 5050 RGB LED with Integrated Drivers. They also include the possibility to add their own library to run them with Arduino (Neopixel Library). Another good thing is that they need only one pin to address ALL the leds you want, of course it is not that easy, so I would like to explain how to do it.
In my case I want to use the Attiny85 that I have already used in earlier post. In order to program it will use the same way I used here.
1) Configuration process
First of all install Arduino 1.0.5 ide from here. After that install Attiny Core from gitHub. Just copy the content of ATTinyCore-master.zip\ATTinyCore-master\tiny folder inside your Arduino hardware folder arduino-1.0.5\hardware\arduino. Take in account that if you overwrite the file boards all the earlier board configurations will disappear.
The one we will use is :
Close your Arduino Ide and open it again. If everything was ok, you should see “ATtiny85 @ 8 MHz (internal oscillator; BOD disabled)” in your menu bar Tools -> Cards.
2) Neopixel Library Installation
If you want to run a program that uses Neopixel library you have to download from here and copy inside \libraries\NeoPixel just the files Adafruit_NeoPixel.cpp and Adafruit_NeoPixel.h. If you want you can use the example files as test programs.
3) Burning process
Connect your Attiny85 with your Leonardo through the adapter how I showed in the previous post. After that you have to burn the bootloader inside the menu bar Tools. Take in account you must have programmed Leonardo as ISP programmer, choosen this one as a programmer and Attiny85 @ 8 MHz as card to be burnt. This process must be done almost once.
After that choose the program and copy insider your Attiny85.
I have seen that each time I copy a program Arduino Ide shows “avrdude: please define PAGEL and BS2 signals in the configuration file for part ATtiny85” but it runs quite well.