Skip to content

A rotary optical encoder is programmed on the MSP432 launchpad. The angle of the encoder is counted using hardware interrupts and then displayed on a 7-segment display.

Notifications You must be signed in to change notification settings

Ltran0325/MSP432-Rotary-Optical-Encoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

MSP432-Rotary-Optical-Encoder

Demo:

https://youtu.be/wDcu66NudCA

Encoder Operation:

image

Source: Operating principle of the optical incremental encoder - Sang-Hoon Kim.

Operation:

  • When a rising edge of Phase A is detected while phase B is high, negative angle rotation.

  • When a rising edge of Phase A is detected while phase B is low, positive angle rotation.

  • Phase A and B are connected to MSP432 as GPIO input.

Setup:

image

Red LED on left of 7-segment display for encoder angle polarity (ON for negative).

  • CW is positive count direction.
  • CCW is negative count direction.

About

A rotary optical encoder is programmed on the MSP432 launchpad. The angle of the encoder is counted using hardware interrupts and then displayed on a 7-segment display.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages