GithubHelp home page GithubHelp logo

rwedler / as5x47 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from adrien-legrand/as5x47

0.0 0.0 0.0 3.88 MB

A library for Arduino boards that reads angles from AS5047 and AS5147 sensors. Also handles encoder configuration.

License: MIT License

C++ 100.00%

as5x47's Introduction

AS5X47 Library for Arduino

AS5047P Encoder with Arduino MegaAS5047P Encoder Mount

AS5X47 is a library for connecting AS5047 and AS5147 magnetic encoders to Arduino boards. It allows to easily read the angle measured from the sensor and also advanced features to reconfigure the encoder.

Hardware support

This library has been tested with the following encoders:

  • AS5047P
  • AS5047D
  • AS5147P

Supported Features

  • SPI Communication with encoders
  • Abstraction of SPI Communication
  • Read and Write operations for all registers
  • Abstraction of angle measure
  • Debug string to read the state of all registers at once
  • One Time Programation (OTP) Abstraction

Please let me know if you tested it with other encoders.

Installation

Using the Arduino Library Manager (recommended): Use the Arduino Library Manager and search for AS5X47 library. Select the most recent version and click 'Install'. That's it, the library is installed!

Installing manually: For more information or manually install the library, please refer to the Arduino official page : https://www.arduino.cc/en/guide/libraries

Usage

Examples

Two examples are provided within the library :

  • ReadAngle.ino shows how to connect the sensor and how to read the measured angle.
  • ConfigureSensor.ino shows how to use advanced features of this library in order to manipulate the encoder registers according to the manufacturer datasheet.

Wiring

The encoder board must be connected to the SPI Pins of the Arduino Board. In the case of an Arduino Uno, connect as following: AS5X47 encoder connection

For other boards, please refer to official Arduino page.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

as5x47's People

Contributors

adrien-legrand avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.