Max MSP 5 controlling the Arduino

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
1,105
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on May 19, 2010

Here is a program I have made that allows you to control the Arduino with Max MSP by sending out OSC messages.

The box on the top right is from CodeBlocks where the OSC messages are decoded from Max and sent to the arduino class which is included within OpenFrameworks (www.openframeworks.cc). It was made in C++ and does not require alot of coding.

If you would like a copy of the program then just send me a quick message on youtube.

Currently the program only receives PWM messages from pins 3, 5 and 6 but I will work on it to make the program more flexible.

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (mrstebo)

  • I never used OSC and what i want to do is control one rgb led with music or input audio ..like different beats change the color. I am not sure how to do that in max. I love how your led makes different colors.. If you could help me with that i'd really appreciate it. thanks :)

  • @hayood123 OSC is quite an easy protocol to use. You can send one message or send multiple messages in a bundle and have them decoded in Max.

    If you have some RGB LEDs then you could just link them up to the PWM pins on the arduino.

    Then you can use Max to play an audio file and perform some filtering on certain frequency ranges.

    You could use 3 frequency ranges as the filter to send a byte to a particular pin. I will try something like this tonight and post a video on how I did it.

  • looks like you know a lot about max/msp and arduino. I am doing a university project and i wanted to ask if you could please send me your max 5 controlling the arduino patch. Do you know if i can control this patch using osc through iphone?

    thanks :)

  • @hayood123 hey, there is a way to do it by just programming some serial messages into the arduino and send the arduino the message along with a value. Then you can just add the values with OSC on touchOSC or some other OSC app on the iPhone.

    I don't have the app on my current machine...but I can do a quick one for you later on :)

see all

All Comments (6)

Sign In or Sign Up now to post a comment!
  • Hey awesome work there :]

    Would really like if you could share the patch with me. I do know about max msp and arduino, but not about the OSC thing you are referring to.. Thanks.

    Sending you the message with my id..

  • @mrstebo I have one rgb connected to my arduino and it lights up when a button is on and off otherwise.. Now the max part is getting me all confused im so not familiar with any of the audio stuff in max :S

    I have no idea how to do a playlist of say 3 songs and when played they change the colors of the rgb .. Thanks a lot for your help :)

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more