hello all, im using an arduino with a rotary encoder into max, basically ive got digits going up one way and down the other. is there an object that can recognize the up and down movements? i think ive seen one but wasn't too sure..
> hello all, im using an arduino with a rotary encoder into max,
> basically ive got digits going up one way and down the other. is
> there an object that can recognize the up and down movements? i
> think ive seen one but wasn't too sure..
You could cobble a solution together using either counter, accum, or
IncDec (and probably several more that I'm forgetting. They each have
the plusses and minuses.
IncDec is the easy answer, but something based on counter might give
you a more flexible solution.
I've been using an arduino board with max happily, my current project
involves controlling 4 servo motors through a max patch.
I also did a project involving sending 6 integers to max from the analogue
inputs on the arduino.
I would guess that you should get as much as you can right at the arduino
side of things before trying to tackle it in max. Maybe you could have two
variables in the arduino code, for comparing the current and previous inputs
from the optical encoder, and sending the difference to max, so -1 would
indicate a negative direction and 1 a positive direction, and larger numbers
may indicate some sort of force/speed.
Do you have any specific questions pertaining to the arduino code?
On 06/04/2008, James wrote:
> actually it turns out im having some troubles in the arduino code, has
> anyone got one of these working in max?