DFR0141

DFR0141 Datasheet


Rainbow Ring V3 SKU:DFR0141

Part Datasheet
DFR0141 DFR0141 DFR0141 (pdf)
PDF Datasheet Preview
Rainbow Ring V3 SKU:DFR0141

Contents
• 1 Introduction
• 2 Specificiation
• 3 Hardware Requierments
• 4 Preparatory Work
• 5 Method of Use
1.FTDI Connection Instructions 2.I2C Connection Instructions
• 6 PS Some Details in the Code 1.Some Function Explanation 2.Rainbow Ring Interaction -- I2C Connection 3.Color Enumeration:

Introduction

The Rainbow Ring board has been upgraded to version 3! This is probably the most beautiful LED ring ever. Each led on the ring can be controlled seperatly on its brightness and colors RGB . It
comes with pre-burned bootloader which has several built in led scripts. It allows I2C/Serial communication from any MCU and can be serially linked to make a beautiful Art piece via I2C.

Specificiation
• CPU Atmega 168P Optiboot Lilypad Board in Arduino IDE
• Bootloader Optiboot diecimila
• Supply voltage:5V
• Output voltage:5V
• 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

Hardware Requierments
1x DFRduino UNO R3 1x Rainbow Ring V3 1x FTDI Board 1x Mini USB Cable 1x A-B USB Cable

Preparatory Work

The Rainbow Ring ships with no pin headers. This gives you the option to solder the pins according to your project needs. Before starting to program the LED Ring you should solder the pin headers on to the board.
• CAUTION Only supply power to 1 of the 3 power pins provided at any one time. Download the library Rar file New RAR file with additional sample code
• NOTE This library has yet to be upgraded to be compatible with IDE V1.0 Please use Arduino 0023 How to change board
step1 Once it's downloaded, unzip the files as normal. You will see the following list.
step2 Open boards and programmers-arduino / boards.
step3 Meanwhile, open Arduino 0023 Arduino 0023 / hardware / arduino.
step4 Put the file boards of step2 instead of the one boards of step3. Then re-open Arduino 0023 and select [Optiboot] Lilypad Arduino w/Atmega 168

Method of Use
1.FTDI Connection Instructions

The following picture is the connection diagram. Now, you can use code RGB_Ring_V3 in the zip to test it, directly upload code to Lilypad by FIDI and control it. Take note that the library for RGB_Ring_V3 is a bit different from other Arduino library. There are only an h file and an example pde file under the library folder. Just make sure the RGB_Ring_V3 folder is copied to the libraries folder for your Arduino NOTICE Because of the libary, setting the baud rate is need for double in the serial monitor than in the code.
2.I2C Connection Instructions

NOTICE Do not connect 5V if already connected from the FTDI board. Connect your Arduino to the Rainbow Ring. Since we are providing power from the FTDI board do not plug in the 5V Vcc to the I2C side of the Rainbow Ring. The only 3 wires you need to connect are the SDA to pin 4, SCL to pin 5, and GND.

The connection is completed. Then, the UNO as the sender, the SenderV3.pde sketch in the folder needs to be uploaded to the UNO, and, the Rainbow Ring as the receiver, the ReceiverV3.pde sketch in the folder needs to be uploaded to the Rainbow Ring. Now, you can use UNO's serial to controll the Rainbow Ring by different commands. Or, you can consult the code below, which is provided by a client. He changed the command mode by 16 binary. You can also have a try!

UNO as the Sender
//Code for arduino IDE // for DFROBOT RGB LED RING
#include <Wire.h>
// Commands must start and end with same number if F1,1,60,0,0,F 1 will set led 1 to red
// The commands sent to the RGB ring via I2C must start and end with the same byte to work.
// The following commands are available.
// [RGB values are selectable from 0-63]
// 0xF0 Timer2 uint8_t 0,01,F0 will enable timers
1= enable 0= disable
// 0xF1 set_led_rgb uint8_t led, uint8_t red, uint8_t green, uint8_t blue i.e. F1,01,3f,3f,3f,F1 will set LED1 to white
// 0xF2 set_led_unicolor uint8_t led, uint8_t rgb, uint8_t var ;
// 0xF3 set_all_rgb uint8_t red, uint8_t green, uint8_t blue ;
// 0xF4 set_all_unicolor uint8_t rgb, uint8_t var
// 0xF5 rotate uint8_t color,uint8_t dir color = 0-7, dir 0= none, 1=cw, 2=ccw
colour determines the component to rotate, i.e.
// component.
colour =1 is red and will just rotate the red
More datasheets: B84312C30B3 | B84312C40B1 | B84312C100H103 | B84312C100B103 | B84312C20B103 | B84312C20B3 | B84312C30B103 | B84312C30H103 | B84312C30H3 | B84312C100B3


Notice: we do not provide any warranties that information, datasheets, application notes, circuit diagrams, or software stored on this website are up-to-date or error free. The archived DFR0141 Datasheet file may be downloaded here without warranties.

Datasheet ID: DFR0141 508655