Using Stepper Motor As Rotary Encoder
by Andriyf1 in Circuits > Sensors
24200 Views, 24 Favorites, 0 Comments
Using Stepper Motor As Rotary Encoder
I want to tell you how to make incremental encoder from stepper motor. When we turning shaft of stepper motor it works like generator. It generates certain impulses on its coils. After some signal processing, we get same impulses as incremental encoder.
This encoder has one problem, it can drop steps if you turning very slowly. But for many applications, it doesn't matter.
Circuit
Impulses from stepper motor turn on/off this triggers and on output we get signal like rotary encoder.
Demonstration
In this video shown how encoder works with arduino. In this example, I used stepper motors from old printer but you can use any stepper motors.
Code of these examples you can find here:
Necessary libraries:
Encoder.h
Circuit diagram with stepper motor and driver a4988:
https://drive.google.com/file/d/1GCRXKmik49xVYwpirRgTCWHo17r8T0BW/view?usp=sharing
I'm currently freelancer. For hiring, you can contact me at about.prototype@gmail.com