Forums > MaxMSP

Help with Project with youtube video

Jan 24 2010 | 11:18 am

Hi Everyone


This is my first post to the Forum

Im working on a patch to control stepper motors (like the one you get in scanners) eventually to paint a picture

heres my youtube video for an overview

if you look at the max patch below

I want the numbers in the green boxes to arrive at their destinations at the same time using delays without any delay dropping below 250ms

hopefully somebody can help

i would worship that person for the rest of my life lol

and send them a painting when i get it to work in about 3 months as there is still a lot to do

thank you


thank you

ps you need to wait a few seconds for the loadbang process

— Pasted Max Patch, click to expand. —
Jan 24 2010 | 12:13 pm

It seems like using delays is one of the most difficult ways of doing this. You would have to work out how much faster/slower one chain of delays would need to be set depending on what both values are and how long you want the overall process to take.

If I’m understanding what your patch does fully, you could just use two line objects with the same ramp time and different destination values. That way, the line object takes care of it all, and both green boxes will always reach their destination values at the same time.

If I’m visualizing this correctly, you could even kind of control the amount of curve in the line that is drawn by offsetting one of the ramp times by a small amount.

-- Pasted Max Patch, click to expand. --

Jan 24 2010 | 12:19 pm

And you can set the grain interval of the line object to be 250 ms so that your stepper motor controller works properly. ie [line 0 250]

Jan 24 2010 | 4:35 pm

I thank you for your replies
i’ll have a go at integrating

still trying to think how you would go from 0-0 to 10-20 then back down to say 6-3 counting backwards

the reason i have forward and reverse is that the stepper motor needs to be banged in a specific order forward being different than reverse

any more thoughts would be appreciated

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

Forums > MaxMSP