Arduino + MaxMsp

...now browsing by category

 

Hello Leds!

Saturday, October 4th, 2008

Using TLC5940 with a power supply (12v transformer+ LM7805), and, 70 LEDs

The simulation of the lighting effect

Monday, September 29th, 2008
These two weeks, I have been focusing on creating the lighting effects for Resonant Wave. I use twenty six LEDs. Each of them represents a key on a computer keyboard. The Texas Instrument 4950 allows me to increase output pins from the Arduino board. I will study how to use a power supply for this in the following week, since my flower-like sculptures have hundreds of LEDs
The lighting effects include four steps. In the beginning, a light will brighten up far from the dancer’s position. It attracts her to come close to it. The according to the dancer’s location, a bright light will start to fallow her. After a while, groups of lights will follow her movements. At the end, she will create a light pattern according to her trail. Also, the brightness of the light is according to the sound she makes.
I used MaxMsp to control the time, the computer keyboard, and sound analysis. I used Arduino to control the light. And use Seiral.read to make Maxmsp and Ardino able to communicate with each other.

Hello, the prototype of the bracelet!!

Friday, September 19th, 2008
“Little by little!!” My flamenco teacher always says this to me. This is principle can be used in almost everything.

1) This is first step. How to use an audio amplifier to send a signal??? I used LM386, a low voltage power amplifier. Thanks Liubo!

2) After making sure everthing was ok, I soldered the circuit on a board.:) I learned during my internship. Thanks Ayah!
3) I did a little more programming testing with Arduino. Making sure that the lighting effect will be as I expected!


4) Then I used the same trick that I worte about it before. Tada!! Yes, the wire wrap tool and wrap to connect the LEDs with the cute Lily Pad. (Lily Pad! What a good invetion!!)
5) Almost there, but how can I power it? I used the DL2032 3v button battery in the beginning. However, sadly the current is not strong enough. After testing with several kinds of batteries, PANASONIC CR2450 is the winner!!
6) haha… It is sitll not the end but today I will teach everyone a saying, which comes from Zhou Dunyi, a philosopher of the Song Dynasty of China. In his famous articl, LOVE LOTUS SAYING, he said “.” It describes why the lotus is so beautiful. The reason is that although the lotus was grown in silt, it is not impure but elegant. This is like the story of my desk and my flower-like bracelet.

If you cannot upload the programming to Lily Pad, …

Friday, September 12th, 2008
Sometimes a very simple thing can make people crazy. Last night I suffered this kind of pain. I swear that I followed the instruction from Leah Buechley’s website.

” Press the reset switch on your LilyPad then Quickly click on the Upload button in the software.” (I also test my ATmega 168 Arduino board with the same process and it worked.) The only thing I didn’t do was: “See http://www.arduino.cc/en/Guide/Troubleshooing#upload”

This morning I am as obstinate as usual and decide to give my pad the last try. This is what I read and it help: However, on some computers, you may need to press the reset button on the board after you hit the upload button in the Arduino environment. Try different intervals of time between the two, up to 10 seconds or more.



:) Yay!! Finally, I can start to do something I really like. Making accessories!!

When I had a chance to perform with my friends, I always enjoyed making us pretty!!

This is my last performance in Taiwan.

Tada!! I made butterfly necklaces.


Now, I plan to make an interactive bracelet for my Resonant Wave performance.
Coming soon: the bracelet!!

Hello, LED Driver

Monday, March 24th, 2008

These days I am testing the LED driver. The first video is using 5940 LED driver chip. The code and circuit for this was developed thanks to Peter. Please visit Peter’s blog. There is a very clear description.

Test 1: Using LED driver chip with 16 LEDs
Get the Flash Player to see this player.
Test 2: Using LED driver chip with more LEDs
note:

Arduino and MaxMsp’s Serial Communication

Tuesday, February 19th, 2008

*Reading Arduino’s Serial.print(data) in MaxMsp

Example:

In Arduino, we can turn on the serial monitor to print out the values. However, how can we keep monitoring the values in MaxMsp? J Let’s try.

Arduino:

Set the value and use the function Serial.print();

Serial.print(” “); //This will create a space between each  value.

Serial.printl(); //This start a new line for vales.

MaxMsp:

Using “metro” object to start printing the values.

Using “serial” object to read and receive data from serial port.

Using “itoa” object to translate the integer to ASCII characters?

Using “print” object to get the same monitor effect as Arduino

What’s the difference between Arduino’s Serial Monitor and Max?

1. In Arduino, the value ,168, is printed on one line. In Max, each character is printed on a line so 168 prints on three    line.

2. In Max, Serial.print(” “); is printed as a empty line.

For example:

aread:

3. In Max, Serial.printl(); is printed as two empty lines.

For example:

aread:

aread:

Thoughts:

The above example helps me to know what the serial port is reading when I use MaxMsp to give my Arduino port some information.

Thanks Liubo