tekdemo / AS5050

Arduino library for interfacing with the AS5050 magnetic rotary encoder

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AS5050 Arduino Lib

This is a utility library for interfacing with the AS5050 magnetic rotary encoder chip using an Arduino. While still a work in progress, it performs basic functions reliably. This is being developed as a software abstraction layer for my servo controller board project.

Current Features

  • Convert raw angular data to degrees or radians for integration into other code
  • Track the total rotation from either a physical or relative position.
  • Automatically samples multiple angles per read operation
  • utility functions for reading and writing on-chip registers
  • Header with significant documentation of chip data, including register, addresses, protocol, and responses.
  • Automatic handling of internal gain.
  • Read/write arbitrary chip registers with simplified interface.

Work in progress

  • Rudimentary error handling of transmission line / parity errors.
  • Example programs for demonstration

Future/wishlist

  • Interrupt driven update mechanism
  • Properly handle all common chip communication errors

About

Arduino library for interfacing with the AS5050 magnetic rotary encoder


Languages

Language:C++ 90.0%Language:Arduino 10.0%