Can a rotary encoder be used to control the position of a stepper motor?
(example) one notch of the rotary encoder would equal x amount of steps and then hold of the stepper motor? and then turning it the opposite way would in turn, rotate the stepper motor the opposite way as well.
If it is, I was also thinking using a second rotary encoder to change the sensitivity of the steps per notch of the first encoder.
Thanks,
ZooPaPhly
Rotary Encoders and Stepper Motors
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- Franklin97355
- Posts: 23938
- Joined: Mon Apr 21, 2008 2:33 pm
Re: Rotary Encoders and Stepper Motors
I'm pretty sure you could write code to do that.
- zoopaphly
- Posts: 9
- Joined: Tue Aug 13, 2013 7:19 pm
Re: Rotary Encoders and Stepper Motors
Any idea what the code would look like?
I'm just learning stepper motors, and I'm waiting for some rotary encoders to arrive in the mail.
So I have no idea how to write code for a rotary encoder yet.
I'm just learning stepper motors, and I'm waiting for some rotary encoders to arrive in the mail.
So I have no idea how to write code for a rotary encoder yet.
- adafruit_support_bill
- Posts: 88136
- Joined: Sat Feb 07, 2009 10:11 am
Re: Rotary Encoders and Stepper Motors
There is a nice tutorial on it over at the Arduino Playground: http://playground.arduino.cc/Main/RotaryEncoders
Please be positive and constructive with your questions and comments.