rotary encoder as array selector knob
hello, everyone. usual me, have made lot of progress on project, followed being baffled next step.
here's am, perhaps can point me in right direction.
i have been messing around of rotary encoder examples, , work, don't quite understand how adapt example codes purpose.
i need able use rotary encoder (this one: http://www.sparkfun.com/commerce/product_info.php?products_id=9117) select 1 of 12 arrays.
what confuses me read related encoders involves determining direction encoder turning , number of 'clicks' encoder has passed in either direction. unclear how translate user selecting number of options (in case, 1 of 12 arrays).
since encoder acts pushbutton, nice utilize -- might not necessary i'm trying do.
originally going use potentiometer , define 12 value ranges each attached 1 of arrays, lack of 'clickableness' proved unsatisfying. want rotary encoder.
is there away define 12 'steps' encoder, , say, "when encoder @ position 1, use array a. when encoder @ position 2, use array b" etc etc?
can out there in arduinoland me out? there example code out there unaware of make more clear me?
here's am, perhaps can point me in right direction.
i have been messing around of rotary encoder examples, , work, don't quite understand how adapt example codes purpose.
i need able use rotary encoder (this one: http://www.sparkfun.com/commerce/product_info.php?products_id=9117) select 1 of 12 arrays.
what confuses me read related encoders involves determining direction encoder turning , number of 'clicks' encoder has passed in either direction. unclear how translate user selecting number of options (in case, 1 of 12 arrays).
since encoder acts pushbutton, nice utilize -- might not necessary i'm trying do.
originally going use potentiometer , define 12 value ranges each attached 1 of arrays, lack of 'clickableness' proved unsatisfying. want rotary encoder.
is there away define 12 'steps' encoder, , say, "when encoder @ position 1, use array a. when encoder @ position 2, use array b" etc etc?
can out there in arduinoland me out? there example code out there unaware of make more clear me?
did @ worked examples device @ sparkfun site? (though i'm not sure assertion "gray code" encoder - i'd've said "quadrature")
that's difficult bit - once that's working, index modulo arithmetic.
that's difficult bit - once that's working, index modulo arithmetic.
Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > rotary encoder as array selector knob
arduino
Comments
Post a Comment