hjl4
Member
Hi,
I hope someone out there has done this in assembly before.
I took apart a mouse, and removed the encoder wheels, along with the IR Led's.
I want to use this, as an encoder for an accelerator, using 2 bit gray code.
In other words, when thumb pressure is applied to a spring returned knob, it send gray code to micro. 16f628.
I can't use interupt as it is all ready used by a safety switch. My delema is knowing the direction(accel or deccelerate)the encoder is going. As the encoder is moved clockwise, the micro needs to increase speed of dc motor, and decrease when moving ccw. My guess is ,I should get 4 different speeds. Right?
I have searched this forum, and others, and there search engines sucks..with no good results.
I have googled, and everybody including there dog, has done this.
Unfortunately, I don't have time learning CHBasic or even C. I write in assembly exclusively.
I hope someone can help.
Thank you!
I hope someone out there has done this in assembly before.
I took apart a mouse, and removed the encoder wheels, along with the IR Led's.
I want to use this, as an encoder for an accelerator, using 2 bit gray code.
In other words, when thumb pressure is applied to a spring returned knob, it send gray code to micro. 16f628.
I can't use interupt as it is all ready used by a safety switch. My delema is knowing the direction(accel or deccelerate)the encoder is going. As the encoder is moved clockwise, the micro needs to increase speed of dc motor, and decrease when moving ccw. My guess is ,I should get 4 different speeds. Right?
I have searched this forum, and others, and there search engines sucks..with no good results.
I have googled, and everybody including there dog, has done this.
Unfortunately, I don't have time learning CHBasic or even C. I write in assembly exclusively.
I hope someone can help.
Thank you!