«

»

Dec 21

Print this Post

Rainbow LED Ring V3 Arduino

Recently I found an interesting product on the site DFRobot: Rainbow LED Ring V3 Arduino

Rainbow LED Ring V3 Arduino

In Italy, the product can be purchased from the site robot from my home I immediately ordered one coming up in the next few days, I hope that with the holiday next week the carrier decides to deliver it to the epiphany :-) would be a nice surprise on the part of the Epiphany.

While waiting for the new game arrives I started reading the wiki that the DFRobot has realized for the product, I find the initiative of a wiki project really interesting and helpful, for many of the products available in the catalog have created a dedicated wiki where you can find many dlle info that normally help you not only in the use phase of the product, but especially when selecting, even when you are evaluating 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 of a microcontroller such as Arduino, This is possible thanks all'Atmega168P similar to that of which they are equipped shede the Lilypad.

The wiki has the following features:

  • CPU: Atmega 168P (Lilypad Board in Arduino IDE)
  • Bootloader: Optiboot diecimila
  • Supply voltage:5The
  • Output voltage:5The
  • Interface: Serial/I2C/Digital pins
  • Push button x2
  • 12 SMD RGB LED
  • Firmware upgradable
  • Stand-alone operation: No microcontroller needed for light script playback
  • Diameter:61mm

In practice, the board is made up of a PCB of 6,1cm of diameter on which are housed the 12 led rgb smd e 2 buttons.

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 the Rainbow LED Ring V3 Arduino

to program the Rainbow LED Ring V3 Arduino can use both a FTDI is an Arduino Uno, in the latter case, the use of which is I2C Arduino Uno is the Rainbow LED Ring V3 Arduino feature.

Before programming you must connect the Rainbow LED Ring V3 Arduino to your computer using such a FTDI interface performs the connections according to the diagram:

Rainbow Ring V3 FTDI

if you want to use one as Arduino I2C interface to program the Rainbow LED Ring V3 Arduino you can follow the following scheme:

Rainbow LED Ring V3 Arduino Diagram

Write the sketch and send all'Atmega168P on the Rainbow LED Ring V3 Arduino can use the Arduino IDE.

Sketch of 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:

Directory Rainbow LED Ring V3 Arduino

identifies your Arduino installation and copy the folder in the directory Libraries RGB_Ring_V3;

moved to say \arduino-0022\hardwarearduino Your Arduino IDE;

in the .rar file downloaded and unzipped you will find nothing RGB_Ring_V3boards and programmers-arduino that contains the file boards.txt containing the information to be added to the homonymous files in your path! \arduino-0022\hardwarearduino

[important]

It’ important that the instructions in the file board.txt downloaded from DFRobot are added to the file in your Arduino IDE, NOT overwrite existing ones.

[/important]

On completion of the process of copying files if you have the IDE open, close it and reopen it, You'll find one of the new board: “[Optiboot] Diecimila, Duemilanove, Nano, NG w/ ATmega168” the optioned Tools>Boards the menu dell'IDE.

I made a small guide with scrren shot of the 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

Rainbow LED Ring V3 Arduino

Click the right mouse button and select “Show package contents”:

Mostra contenuto pacchetto Rainbow LED Ring V3 Arduino

navigate to the path \arduino-xxxxhardwarearduino fino al file board.txt:

Rainbow LED Ring V3 Arduino

open it with TextEditor and paste down the lines taken from the files provided with the tar board.txt Rainbow LED Ring V3 Arduino.

Open the Arduino IDE and in the Tools menu -> Board should find the new cards:

Nuove opzioni nell'IDE Arduino

.rar File you downloaded there are also examples of the use of 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 must make changes to both the library RGB_Ring_V3.h since the first compilation ricevereai the following errors:

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 do and for what purpose to try your sketch.

Have fun !!![important]
Kindly DO NOT paste sketch in the comments, Use the info box of the blog that you can find on the contact page.
[/important]

[warning]
Sketches are distributed free of charge and without any liability.
By reading this article and decided to use the sketch brought you assume all responsibility.
[/warning]

Be Sociable, Share!

Permanent link to this article: http://www.mauroalfieri.it/elettronica/rainbow-led-ring-v3-arduino.html

2 pings

  1. Rainbow LED Ring V3 Arduino - IDE 1.0 - Mauro Alfieri Electronics

    […] « Rainbow LED Ring V3 Arduino […]

  2. Rainbow Ring V3 sketch arduino - Mauro Alfieri Electronics Robotics

    […] a month ago, with Christmas fast approaching I told you about a card that I was very impressed, Rainbow Ring V3 and I ordered one from robot-domestici.it, insieme a […]

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>