These days I found an interesting product on the site dfrobot: Rainbow LED Ring V3 Arduino
In Italy, the product can be purchased from the site-domestic robot which I immediately ordered one coming up in the next few days, I hope that with the holiday next week the carrier decides to consegnarmelo for the epiphany it would be a nice surprise from the Epiphany.
While waiting for the new game arrives I started to read the wiki that the dfrobot has realized for the product, I find the initiative of a wiki project really interesting and useful, for many of the products available in the catalog have created a dedicated wiki where you find a lot of info dlle that normally help you not only in the use phase of the product but especially when selecting, when you are still considering whether the product is right for you.
Features Rainbow LED Ring V3 Arduino
Rainbow LED Ring V3 Arduino has 12 RGB LED type smd controllable without the need for a microcontroller as Arduino, this is possible thanks all'Atmega168P similar to that of which are equipped the shede Lilypad.
The wiki has the following specifications:
- CPU: Atmega 168P (Lilypad Board in Arduino IDE)
- Bootloader: Optiboot diecimila
- Supply voltage:5In
- Output voltage:5In
- Interface: Serial/I2C/Digital pins
- Push button x2
- 12 SMD RGB LED
- Firmware upgradable
- Stand-alone operation: No microcontroller needed for light script playback
In practice, the board is made on a PCB of 6.1 cm in diameter on which are housed the 12 led rgb smd e 2 buttons.
The Rainbow LED Ring V3 Arduino can be programmed like a Lilypad with the Arduino IDE, this makes it independent from an external arduino during operation.
The programming of Rainbow LED Ring V3 Arduino
to program the LED Rainbow Ring V3 Arduino you can use either interface is a FTDI Arduino Uno, in the latter case the use of which has I2C Arduino Uno is the Rainbow LED Ring V3 Arduino have.
Before you connect the programming Rainbow LED Ring V3 Arduino to your computer using an interface such as FTDI run the connections according to the diagram:
if you want to use one Arduino as I2C interface to program the LED Rainbow Ring V3 Arduino you can follow the following scheme:
Write a sketch and send all'Atmega168P on the Rainbow LED Ring V3 you can use the Arduino IDE Arduino.
Sketch an example for Rainbow LED Ring V3 Arduino
on the wiki dfrobot is the library, and all the sample files of the project. Download them from this link
Following the instructions published in the wiki download the software from the link at the top line, unzip the file and find:
identifies your Arduino installation directory and copy within the Libraries folder RGB_Ring_V3;
moved to say \Arduino-0022\hardware\arduino your Arduino IDE;
in. rar file downloaded and unzipped you will find a dir RGB_Ring_V3\boards and programmers-arduino\ that contains the file boards.txt containing the information to be added to the homonymous files in your path! \Arduino-0022\hardware\arduino
The procedure of copying files if you have the IDE open close it and reopen it, will find in the new board: ”[Optiboot] Arduino Diecimila, Duemilanove, Nano, NG w/ ATmega168” in opziono Tools>Boards Menu IDE.
I made a small guide with scrren shot operation you need to perform to install mac OSX on board the Rainbow LED Ring V3 Arduino as described above, find your Application: Arduino 1.0 or later
click with the right mouse button and select “Show package contents”:
navigate to the path \Arduino-xxxx hardware Arduino to the file board.txt:
open it with TextEditor and paste at the bottom of the lines taken from the tar file board.txt provided with Rainbow LED Ring V3 Arduino.
Open the Arduino IDE and the menu Tools -> Board should find the new cards:
In. Rar file you downloaded there are also some examples of using the Rainbow LED Ring V3 Arduino, However, if you try these sketches and libraries will find that they were written with the directives of the IDE 0022 you need to make changes to both the library RGB_Ring_V3.h since the initial establishment ricevereai errors similar to the following:
In file included from RGB_Ring_V3.cpp:1: RGB_Ring_V3.h:5:22: error: WProgram.h: No such file or directory RGB_Ring_V3.h:6:24: error: WConstants.h: No such file or directory In file included from RGB_Ring_V3.cpp:1: RGB_Ring_V3.h: In function 'void random_leds()': RGB_Ring_V3.h:293: error: 'random' was not declared in this scope RGB_Ring_V3.h: In function 'void fader()': RGB_Ring_V3.h:303: error: 'delay' was not declared in this scope RGB_Ring_V3.h:307: error: 'delay' was not declared in this scope RGB_Ring_V3.h: In function 'void fader_hue()': RGB_Ring_V3.h:318: error: 'delay' was not declared in this scope RGB_Ring_V3.h: In function 'void swaywobble(uint8_t, uint8_t)': RGB_Ring_V3.h:379: error: 'delay' was not declared in this scope RGB_Ring_V3.h:385: error: 'delay' was not declared in this scope RGB_Ring_V3.h: In function 'void set_all_byte_hsv(uint8_t, uint16_t, uint8_t, uint8_t)': RGB_Ring_V3.h:563: error: 'B00000001' was not declared in this scope RGB_Ring_V3.cpp: In function 'void receiveEvent(int)': RGB_Ring_V3.pde:-1: error: 'class TwoWire' has no member named 'receive' As of Arduino 1.0, the Wire.receive() function was renamed to Wire.read() for consistency with other libraries. RGB_Ring_V3.pde:-1: error: 'class TwoWire' has no member named 'receive'
In the next article I will explain what changes to make and for what purpose to test your sketch.
Have fun !!!