Using Stepper Motor as Rotary Encoder

Using Stepper Motor as Rotary Encoder © GPL3+

Here I want to tell you how to make incremental encoder from stepper motor.

  • 12,356 views
  • 1 comment
  • 26 respects

Components and supplies

Apps and online services

About this project

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:

Stepper motor example

Neopixel example

Necessary libraries:

Encoder.h

Adafruit_NeoPixel.h

Circuit diagram with stepper motor and driver a4988:

I'm currently freelancer. For hiring, you can contact me at about.prototype@gmail.com

Comments

Similar projects you might like

Check a Stepper Motor From the DVD-ROM

by Ingo Lohs

  • 42,380 views
  • 2 comments
  • 48 respects

Stepper - A First Introduction to Nema 17

by Ingo Lohs

  • 35,530 views
  • 7 comments
  • 76 respects

Large Stepper Motor Control A4988

Project tutorial by 3 developers

  • 14,090 views
  • 0 comments
  • 12 respects
Add projectSign up / Login