How to set up a servomotor in MAX/MSP sing Arduino

Jan 4, 2010 at 12:53pm

How to set up a servomotor in MAX/MSP sing Arduino

Hi,

I am working on an interactive installation for which i need a controllable rotation from a servo motor. I already have an Arduino, my servo motor (cheap Modelcraft RS-2) and the firmware on my Arduino is Firmata 2.1. In the Maxuino 007 patch (called arduino_test) there is a servo option, which i think i should use to control the servo motor. I have connected all wires from my servomotor (black to GND, red to 5V and orange to digital 3 PWM). Unfortunately the servo patch does not seem to do anything at this moment, although i am sure i have selected all pins and stuff correctly. Has anyone used a servo motor in combination with the Maxuino 007 patch? If so, any help would be appreciated!

#47544
Jan 11, 2010 at 9:42am

I have already found the stuff out myself: loaded the servo firmata on my Arduino. Then connected servo to pwm pin 9, sent the ‘arduino’ message (pwm 9 $1) which i connected to a scaled dial. This worked flawlessly!

#171029
Jan 26, 2011 at 11:49am

Hi,
Do you think you could share your code? and also could you explain how to set up a connection between MAX and arduino/processing.
Thanks

#171030

You must be logged in to reply to this topic.