Dual Quadrature Encoder Driver

Warning message

The Propeller Object Exchange system is decommissioned and replaced with a GitHub repository to house the same existing and future Propeller objects. As of 12/5/2019, this site is read-only. You can continue to browse and download objects from here for a limited time; however, please begin using the Parallax Propeller repository for future reference.
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1
Request group membership
By: created: 2013-04-05 | updated: 2013-04-05

 

A dual quadrature encoder driver that runs in one cog. The code has been fully optimized with a super simple spin interface for maximum speed and is also fully commented.
 
Provides full support for:
  • The current encoder position delta in encoder ticks.
  • The current encoder speed in encoder ticks per second.
 
The encoder driver is written in assembly so that it can handle high RPM motors.
 
The sample period is about 4us. This allows a conservative 125,000 - (8us apart) encoder ticks per second per channel.
 
Original File Upload
AttachmentSize
Binary Data QEDEngine.spin30.93 KB