Forums > MaxMSP

Max MSP control Arduino

October 26, 2012 | 11:22 pm

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


October 27, 2012 | 8:55 am

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.


October 27, 2012 | 10:00 am

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


October 27, 2012 | 12:05 pm

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


October 27, 2012 | 10:48 pm

Hi
Did you checkout Maxuino?

http://www.maxuino.org

Julien


October 31, 2012 | 5:30 pm

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.


November 1, 2012 | 8:06 pm

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

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


Viewing 7 posts - 1 through 7 (of 7 total)