Stepper Motor Based Rotary Encoder with Clock and Up/Down Direction Signal Output

  • Rajkumar Sharma
  • 119 Views
  • moderate
  • Tested
  • SKU: EL135120
  • Quote Now

This project enables the users to use a stepper motor as a rotary encoder for position control and Up/Down direction control. A bipolar stepper motor can be used as a rotary sensor as it generates two channel strings of pulses by turning the shaft. The circuit provides Step pulse and Up/Down Direction signals by rotating the stepper motor shaft clockwise or counterclockwise directions. The outputs are TTL logic signals. The operating supply is 5V DC and the circuit consumes very low current.

Mode Selection Jumper J1

  • Mode has a 3-states to select output resolutions X1, X2, and X4. The input quadrature clock rate is multiplied by factors of 1,2 and 4 in X1, X2, and X4 mode respectively, in the producing output.

RBIAS– Resistor R8 (Range 2K Ohm to 10M Ohms) – Refer to Figure below

  • The value of this resistor is responsible for the output clock pulse width. Alter the value to change the output pulse width. Refer to the datasheet for more info.

Features

  • Supply 5V DC
  • Consumes Approx. 25mA Current
  • Input to output delay 340nS for chip LS7184
  • Input Protection 240V
  • Easy Interface for Any Bipolar Stepper Motor
  • Output Clock and Up/Down Direction
  • Jumper for Output Pulse Multiply X1, X2, and X4
  • PCB Dimensions 32.70 x 19.69mm
  • 4 x 2.5mm Mounting Holes

Connections and other details

  • CN1: Pin 1 = VCC 5V DC, Pin 2 = GND, Pin 3 = Clock Output, Pin 4 = Up/Down Direction Output
  • CN2: Pin 1 = Input 1-S1 Stepper Motor 1A, Pin 2 = GND-Stepper Motor 1B, Pin 3 = GND-Stepper Motor 2B, Pin 4 = Input 2-S2 Stepper Motor 2A
  • Jumper J1 Mode Selection: Jumper 1 VCC = X2 Output, Jumper J1 GND = Normal Output, Jumper J1 Open/Float X4 Output
  • D1 LED: Power LED
  • Jumper J2: Connect to GND

When the shaft of the stepper motor is turned two coils of the bipolar stepper motor generate two electrical signals which are connected to IN1 and IN2 of the U1 NCV1124 chip. The chip continuously compares the stepper motor output signal to a user−programmable internal reference. An alternating input signal of appropriate amplitude at IN1 or IN2 results in a rectangular waveform at the corresponding OUT terminal OP1 and OP2, both these signals are interfaced to the LS7184 quadrature clock converter. When both signals are applied to the A and B inputs of the LS7184 they are converted to Clock and Up/Down direction control. These outputs can be interfaced directly with standard Up/Down counters for direction and position sensing of the stepper motor. The number of pulses per rotation depends on the stepper motor output. Output pulses are proportional to stepper motor output. A standard 1.8-degree stepper motor provides 200 Pulses per rotation.  Any small or big-size bipolar motor can be used as a rotary sensor.

Schematic

Parts List

NOQNTYREFDESCMANUFACTURERSUPPLIERSUPPLIER PART NO
11CN14 PIN MALE HEADER PITCH 2.54MMWURTHDIGIKEY732-5317-ND
21CN24 PIN MALE HEADER PITCH 2.54MMWURTHDIGIKEY732-5317-ND
31C110uF/16V TANLUM/CERAMIC SMD SIZE 1210YAGEO/MURATADIGIKEY
42C2,C422nF/50V CERAMIC SMD SIZE 0805YAGEO/MURATADIGIKEY
52C3,C510nF/50V CERAMIC SMD SIZE 0805YAGEO/MURATADIGIKEY
61C6100nF/50V CERAMIC SMD SIZE 0805YAGEO/MURATADIGIKEY
71D1LED RED SMD SIZE 0805OSRAMDIGIKEY475-1278-1-ND
82J1,J2JUMPER 3 PIN MALE HEADER PITCH 2.54MMWURTHDIGIKEY732-5316-ND
92R1,R41K 5% SMD SIZE 0805YAGEO/MURATADIGIKEY
102R2,R310K 5% SMD SIZE 0805YAGEO/MURATADIGIKEY
111R524K 5% SMD SIZE 0805YAGEO/MURATADIGIKEY
122R6,R722K 5% SMD SIZE 0805YAGEO/MURATADIGIKEY
131R85.6M 5% SMD SIZE 0805YAGEO/MURATADIGIKEY
141U1NCV1124 SOIC 8ON SEMIDIGIKEYNCV1124DR2GOSCT-ND
151U2LS7184 SOIC 8LSIGEMINI ELECRIC
162J1,J2-SHUNTSHUNT FOR JUMPER J1 AND J2SULINS CONNECTORDIGIKEYS9001-ND
U2LS7184DIGIKEY PART NO 2808-LS7184N-ND

Connections

Timing Diagrams

Resistor R8 Value vs Pulse Width

Gerber View

Photos

Video


NCV1124 Datasheet

Please follow and like us:
Pin Share

PCB



Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments

RELATED PROJECTS

TOP PCB Companies