Rotary Encoders and Stepper Motors

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
zoopaphly
 
Posts: 9
Joined: Tue Aug 13, 2013 7:19 pm

Rotary Encoders and Stepper Motors

Post by zoopaphly »

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

User avatar
Franklin97355
 
Posts: 23938
Joined: Mon Apr 21, 2008 2:33 pm

Re: Rotary Encoders and Stepper Motors

Post by Franklin97355 »

I'm pretty sure you could write code to do that.

User avatar
zoopaphly
 
Posts: 9
Joined: Tue Aug 13, 2013 7:19 pm

Re: Rotary Encoders and Stepper Motors

Post by zoopaphly »

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.

User avatar
adafruit_support_bill
 
Posts: 88136
Joined: Sat Feb 07, 2009 10:11 am

Re: Rotary Encoders and Stepper Motors

Post by adafruit_support_bill »

There is a nice tutorial on it over at the Arduino Playground: http://playground.arduino.cc/Main/RotaryEncoders

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”