Help with Project with youtube video

Jan 24, 2010 at 11:18am

Help with Project with youtube video

Hi Everyone

HAPPY NEW YEAR

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 http://www.youtube.com/watch?v=n1p-wfHASzg 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

Michael

thank you

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

– Pasted Max Patch, click to expand. –
#47989
Jan 24, 2010 at 12:13pm

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. –
#172539
Jan 24, 2010 at 12:19pm

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]

#172540
Jan 24, 2010 at 4:35pm

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

#172541

You must be logged in to reply to this topic.