Skip to content

🐧 Linux Library for AMS AS5048B πŸ“‘ – 14-bit I2C Magnetic Rotary Position Sensor 🎯

License

Notifications You must be signed in to change notification settings

yasir-shahzad/AMS-AS5048B

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

13 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Linux Library for AMS AS5048B

CI
Translation Status

Overview

This repository provides a Linux library for interfacing with the AMS AS5048B, a 14-bit I2C magnetic rotary position sensor. The AS5048B is designed for high-precision angle measurement applications, making it ideal for robotics, automation, motor control, and other position-sensing needs.


Features πŸš€

βœ… 14-bit High-Resolution – Accurate angular position sensing.
βœ… I2C Interface – Communicates seamlessly with Linux-based systems.
βœ… 360Β° Absolute Positioning – No need for an external reference.
βœ… Configurable Zero Position – Supports offset correction for custom applications.
βœ… Error Detection – Built-in diagnostic features to detect failures.


Installation πŸ› οΈ

Clone the repository and install dependencies:

git clone https://github.com/yasir-shahzad/AS5048B-Library.git  
cd AS5048B-Library  
make  
sudo make install  

Usage πŸ“–

Example code to read the angle from AS5048B:

#include "AS5048B.h"

AS5048B sensor(0x40);  // I2C address

int main() {
    sensor.begin();
    float angle = sensor.getAngle();
    printf("Current Angle: %.2fΒ°\n", angle);
    return 0;
}

Applications πŸ”„

  • Robotics & Automation πŸ€–
  • Motor Position Control βš™οΈ
  • Industrial Motion Tracking 🏭
  • Gimbal & Camera Stabilization πŸŽ₯
  • Aerospace & Defense ✈️

License πŸ“œ

This project is licensed under GPL v3, ensuring open-source collaboration and improvements.

πŸ’‘ Contributions Welcome! If you’d like to improve this library, feel free to submit a pull request or report issues. 🎯

About

🐧 Linux Library for AMS AS5048B πŸ“‘ – 14-bit I2C Magnetic Rotary Position Sensor 🎯

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages