Max MSP control Arduino

Oct 26, 2012 at 11:22pm

Max MSP control Arduino

Hey,

I just started using Arduino, so I don’t know much. I have managed to piece together my first sketch to control a DC motor’s speed and direction. Now I want to control the motor from Max MSP.

I have no idea how to do this. I will post what I coded for Arduino but I feel it isn’t close to what I should have done:

http://pastebin.com/LUsSk9Ub

I was wondering if anyone could direct me to a tutorial with in depth description of how to control Arduino from Max MSP. All I can find online so far is how to get information from the Arduino. A lab or something to take me through the steps as I am not at level where just discussing concepts helps.

I would start slow with Arduino but I just started using it to realize a project I already had in my head.

There might be another thread about this so sorry but you can redirect me there if you know about it!

Thanks

#64943
Oct 27, 2012 at 8:55am

Hi
The Arduino Cookbook will be a good investment for you. Search this forum for solutions too, try keywords like: stepper, Arduino control, maxuino etc.

This specific question has appeared here before so you’re in the right place.

#234183
Oct 27, 2012 at 10:00am

Not sure if you are describing a stepper motor (no experience here), but look around here:

http://arduino.cc/en/Reference/Stepper

Basic use of the serial object:

http://www.cycling74.com/docs/max5/tutorials/max-tut/communicationschapter02.html

Sending data TO Arduino:

http://www.cycling74.com/forums/topic.php?id=18432#post-97740

#234184
Oct 27, 2012 at 12:05pm

and a quick trawl via DuckDuckGo returned these:

http://itp.nyu.edu/physcomp/Labs/Servo

http://slab.concordia.ca/2008/arduino/arduino-max/

HTH

Brendan

…one day…..soon, I’ll write something like SensorBox, but called MaxToArduino……no time now tho

#234185
Oct 27, 2012 at 10:48pm

Hi
Did you checkout Maxuino?

http://www.maxuino.org

Julien

#234186
Oct 31, 2012 at 5:30pm

Hey guys,

Both of your advice is great. I actually used the physical computing lab on DC motor control with an H-bridge to set up my circuit.

I was trying to avoid Maxuino so I could attempt to program the arduino myself just so I could understand it better. But I might just use Maxuino since it seems to be easy to understand and use.

#234187
Nov 1, 2012 at 8:06pm

I also found this on the arduino site, in case anyone wants to see more options Arduino suggests

http://arduino.cc/playground/Interfacing/MaxMSP

#234188

You must be logged in to reply to this topic.