how to command rainbowduino v2?

Arduino, Seeeduino Serials and mutants. Share your problems and experence on arduino compatible board such as seeeduino/stalker, etc.

Moderators: lily.li, violet, salmanfarisvp

Post Reply
kin37ik
Pre-kindergarten
Pre-kindergarten
Posts: 11
Joined: Sun May 08, 2011 1:53 pm
Are you a staff member of seeedstudio?: no
Which products/projects are your favorite?: rainbowduino

how to command rainbowduino v2?

Post by kin37ik » Tue May 15, 2012 11:46 am

ive managed to get the rainbowduino firmware v2 onto my rainbowduino and flashed my arduino with the seeedmaster sketch, ive googled a whole ton, checked every website possible even the wiki pages for some documentation on how to control the matrix on the rainbowduino, and i found absolutely little to no documentation,

how on earth to i control it?

Tobe
Pre-kindergarten
Pre-kindergarten
Posts: 34
Joined: Tue Jan 17, 2012 11:04 am
Are you a staff member of seeedstudio?: yes
Which products/projects are your favorite?: Seeeduino

Re: how to command rainbowduino v2?

Post by Tobe » Tue May 29, 2012 4:52 pm

Hi,there
Sorry for the inconvenience brought.
For this problem,I try it on my raindowduino V2.0,and it can work great.
I just follow this to finish:
1.Download all the thing we need in here:http://code.google.com/p/neorainbowduin ... p&can=2&q=
Uncompress the zip file,you will get(3rdParty,arduinoFw,processingLib,rainbowduinoFw,Readme.txt)
You have to get two software:arduino IDE and processing
In the 3rdParty folder you can find MsTimer2.zip and wimleers-flexitimer2-v1.0.zip uncompress this two to the ..\arduino-0022\libraries
rename the wimleers-flesitimer2-v1.0 to flesitimer2.
Copy all the stuff of the processingLib floder to C:\Users\Tobe\Documents\Processing\libraries(Tobe is my name),if there has no libraries,then just creat it.
Open rainbowduinoFw->Rainbow_V2_71->Rainbow_V2_71,and download to you rainbowduibo
Open aduinoFw->neoLed->neoLed,and download to you arduino(you can find how to download on the wiki:http://www.seeedstudio.com/wiki/Rainbow ... Atmega_328)
(NOTE:Change something of the WIRE library of arduino before you ope that two demo code,
utility/twi.h: #define TWI_FREQ 400000L (was 100000L)
#define TWI_BUFFER_LENGTH 98 (was 32)
wire.h: #define BUFFER_LENGTH 98 (was 32))
conncet your rainbowduino to your arduino via I2C,open your processing,copy this code to your processing:

Code: Select all

import processing.serial.*;
 import com.neophob.lib.rainbowduino.test.*;
 import com.neophob.lib.rainbowduino.*;
 
 static final int SIZE = 400;
 Rainbowduino r;
 
 void setup() {
   frameRate(15);
   background(0);
   size(SIZE, SIZE);
 
   //initialize rainbowduino
   List<Integer> list = new ArrayList<Integer>();
   list.add(6);         //use rainbowduino with slave id 6
   try {
     r = new Rainbowduino(this, list);
     System.out.println("ping: "+r.ping());
   } catch (Exception e) {
     println("FAILED to open serial port!!");
     e.printStackTrace();
   }
 
   smooth();
   noStroke();
 }
 
 void draw() {
   //draw some simple stuff on screen
   color c1 = color(128+(int)random(64), 128, (int)random(255));
   fill(c1);
 
   int size = 80+(int)random(80);
   int x = (int)random(SIZE);
   int y = (int)random(SIZE);  
   rect(x, y, size, size);
   //send PApplet to the Rainbowduino lib - and send it to slave id 6
   r.sendRgbFrame((byte)5, this); 
 }
then run it.
Note:the rainbowduino need to use the extern power.

Post Reply