How to get Arduino in to the Maxuino then add the Led Strip RBG
Hello everyone,
I am a student who is working on the BFA show for my final project. I have been thinking of this idea for while and now I want to create it and bring it alive. I have did all my research and seeing that other people have did it, but what making it so hard for me to understand is how they got the LED strip RGB to work in the MaxMap/Maxunio. I would love have some kind of guild to what I need to do and how to create it. Also in the addition can there be a way to connect sound into this idea I have in mind. IF you are willing to help me out that would mean lot to me, Because this is my final project for my BFA in DIGITAL MEDIA.
Thank you for your time,
Mikey X
Hi
have you had any previous experience with using Arduino, Maxuino or Max? They can be a little tricky if you haven't used them before. Depending on how much time you have to complete this project you will need to research here:
http://playground.arduino.cc/Main/RGBLEDPWM
http://www.instructables.com/id/RGB-LED-Tutorial-using-an-Arduino-RGBL/
https://learn.adafruit.com/adafruit-neopixel-uberguide
Perhaps someone here has made this type of project before, and is willing to share examples with you, but I doubt very much if anyone will design your 'idea' completely for you.
Brendan
I have use the LED strip light. All I need is a guild to understand how to connect the ardunio into the MaxMap 7.0 and how to make the LED work on the MaxMap/Maxunio. BUt I have all summer to work on this project so I have while to work on it is not due till fall class start. Which is in Aug or end of Aug.
Mikey
Not sure which LED strip you're using, but have you tried doing a forum search? Dropping 'led strip' into the search shows quite a few results that might help you.
The LED strip I have is from coolneon. it the that come with the total control lighting. but I see other people using is NeoPixels? is that brand is better then coolneon LED. I have got the Maxunio video that tell me how to connect it and I am working that part some time tomorrow and I just try get help on connecting the LED strip. Also can some tell me how to connect bluetooth in to the MaxMap as well. (not using the Wii) use mine own version.
Dose any one have a patch of this working on the CoolNeon or NeoPixels. if so please share it on my email if you like to.
Mikey
The attachment is the LED i am using and the image of the Total Control Lighting Single Pixel (i have the 25 version all together one)
Is this the right LED?
I can't comment on whether one LED strip is 'better' than another, but it would appear that NeoPixels have been used extensively on these forums and so you might be able to find more support for that hardware.
In terms of actually driving the LEDs, most of that code will be handled by the Arduino and Max will really only control the hardware by passing values to that code (sitting on the board). That's probably a good place to start - have you got the Arduino side of things working? Perhaps you can post some Arduino code here and that will help others give you suggestions. I can see a few CoolNeon shields for the Arduino after a quick search - I would assume they are accompanied by example sketches.
Yes I have the Arduino working just fine base on the code they give me on the CoolNeon,
here the code I have work that was test on the Arduino board :
/*****************************************************************************
* fire.ino
*
* This example will send a flickering fire sequence down a 25 pixel long
* strand of total control lighting. It uses random numbers to shift in
* intensity and color between two color limits.
*
* Copyright 2011 Christopher De Vries
* This program is distributed under the Artistic License 2.0, a copy of which
* is included in the file LICENSE.txt along with this library.
****************************************************************************/
#include
#include
const int LEDS = 100; // There are 100 LEDs in the Total Control Lighting Strand
byte color1[] = {0x10, 0x10, 0x880};
byte color2[] = {0x10, 0x30, 0x10};
const int transition_low = 0;
const int transition_high = 101;
const int intensity_low = 0;
const int intensity_high = 101;
void setup() {
TCL.begin();
}
void loop() {
int i;
int transition;
int intensity;
TCL.sendEmptyFrame();
for(i=0;i
transition=(int)random(transition_low,transition_high);
intensity=(int)random(intensity_low,intensity_high);
sendTransitionScaleFrame(color1,color2,transition,intensity);
}
TCL.sendEmptyFrame();
delay(50);
}
void sendTransitionScaleFrame(byte *c1, byte *c2, int transition, int intensity) {
byte rscale;
byte gscale;
byte bscale;
rscale = ((c2[0]-c1[0])*transition/100+c1[0])*intensity/100;
gscale = ((c2[1]-c1[1])*transition/100+c1[1])*intensity/100;
bscale = ((c2[2]-c1[2])*transition/100+c1[2])*intensity/100;
TCL.sendColor(rscale,gscale,bscale);
}
_________________________________________________________________________________
This is the code I have use to test my CoolNeon, and it dose do the blinking.
If this code is not working will to the MaxMap then Ill buy the other LED.
I'd take a look at this thread: https://cycling74.com/forums/connecting-led-light-strip-neopixels-to-max/
Even though it discusses NeoPixels, your problem is similar and the advice is good; you should first make sure that you can get your LEDs to function the way you would like on the Arduino alone, then setup to change the appropriate variables from Max via the [serial] object. Most of the work has been done for you on that thread, so if you're still open to buying different hardware, the NeoPixels might be the easiest way to go.
Hello I have been working on the maxunio to get it understand the base part I got the arudino to work and when I was testing the LED on pin 13 it said that the board will blink on lx or rx but I having the L and rx blink at the same time, then when I connent the LED just one on to the pin 13 nothing happens but when I add more wire to add the button it start to work but then the button don't work?? Can anyone help me I am working on this to get the base part done so I can get my LED strip light to work, base on the other help I don't understand how to get the LED strip light to work on to MaxMap I need more help on it. The way I learn is seeing image or writing step by step with or with out image.
Please help me if anyone can that would help me out lot and I only have till end of this summer to get my BFA show project done so please help me out thank you
Mikey
Hi
Arduino tutorials don't come any clearer than these:
This will show you how to connect a pushbutton and LED. Search the web for "arduino button LED", you'll find hundreds of tutorials and examples.
Brendan
Yes I understand that part, I really need help on hoe to get LED Light Strip (NeoPixels) in to the Maxunio, I have did the base part where connect the Arduino and get the firmata that was done. Now all I need help is how can the NeoPixels Strip work on the Maxunio and how can I write the path that allow me to control the NeoPixels? That is my main question? If you guys have thing that explain it will as in image with text or a good video that explain it by step to step.
also this is the NeoPixels I have order:
I have use one of there example to get it to work on my other borad to make sure all the light work and yes it dose. Now all I need is help to get it into the MAX/MSP, the Maxunio to work on the NeoPixels light....
This is the one I am working with. IF you guys can give lot of help and I can figure out the other part I need to do.
Mikey
Hi
I'm sorry, I thought you had asked about a pushbutton and an LED on pin13. I'm afraid I'm not very sure what you mean by "get it into MaxMSP, the Maxuino to work on the Neopixels". I would guess that what you want to do is turn LEDs on and off from within Maxuino? Personally, I would try to control the LED strip from within Arduino first, without Firmata or Maxuino. Did you look at the link provided by kodamapixel above?
https://cycling74.com/forums/connecting-led-light-strip-neopixels-to-max/
There's helpful stuf there:
http://www.tigoe.com/pcomp/code/arduinowiring/1172/
Wetterberg's and Jaren's examples look like they are just what you need.
Good luck
Brendan
Yes I just look and I comment on there forums, just waiting on what to do next. Yes I have got the Neopixels to work on Ardunio from their example that I test it and it work. I was looking into how to get the Neopixels to be control in the MAX/MSP that all. But I did send a comment to Wetterberg’s and Jaren’s.
Hi Mikey,
I'm reading the discussion here for the first time... kodamapixel gave you a great link but here it is - very simpe:
copy this to arduino:
//////////////////////////////////////////////////////////////copy from here
#include
#define PIN 13
Adafruit_NeoPixel strip = Adafruit_NeoPixel(8, PIN, NEO_GRB + NEO_KHZ800);
int pixel = 3; // pixel number that you're changing
int red = 0; // red value
int green = 34; // green value
int blue = 12; // blue value
void setup() {
Serial.begin(9600); // initialize serial communication
Serial.setTimeout(10); // set serial timeout
strip.begin(); // initialize pixel strip
strip.show(); // Initialize all pixels to 'off'
}
void loop() {
// listen for serial:
if (Serial.available() > 0) {
if (Serial.read() == 'C') { // string should start with C
pixel = Serial.parseInt(); // then an ASCII number for pixel number
red = Serial.parseInt(); // then an ASCII number for red
green = Serial.parseInt(); // then an ASCII number for green
blue = Serial.parseInt(); // then an ASCII number for blue
}
}
strip.setPixelColor(pixel, red, green, blue);// set the color for this pixel
strip.show(); // refresh the strip
}
/////////////////////////////////////////////////////////////////////until here
and I'm attaching the max file.
now open the max file and follow those 3 steps:
1. in the max just press the update serial port. that should give you the right port if only 1 arduino connected.
2. click the port name even if it's already ok and select it again!!!!
3. then press the bang on top right. the colors will appear (I made it with 8).
the leds should update every time you press the bang on top!