Other

项目介绍

sosandroid/AMS_AS5048B 是一个托管在 GitHub 上的开源项目,主要使用 C++ 编写,采用 Other 许可证,目前获得 51 个 Star、30 次 Fork。

仓库全名
sosandroid/AMS_AS5048B
开源许可证
Other
Star 数
51
Fork 数
30
未关闭 Issue
2

README 摘要

Arduino library for AS5048B from AMS ============== AS5048B is a 14-bit magnetic rotary position sensor with digital angle (I2C) and PWM output. This library deals only with the I2C channel. AS5048B's Osram page. v1.0 - First release v1.0.1 - Typo to allow compiling on Codebender.cc (Math.h vs math.h) + Wind vane example modification to comply with the Timer.h lib used by them v1.0.2 - amsas5048b.cpp - fix…

完整内容见 GitHub 原始 README 或本页 。

常见问题

AMS_AS5048B 用什么语言开发?

主要使用 C++ 编写,采用 Other 许可证,目前有 51 个 Star。

AMS_AS5048B 可以免费商用吗?

仓库标注的许可证为 Other,商用前请先阅读仓库 LICENSE 文件确认授权范围。

如何获取 AMS_AS5048B 的源码?

可以直接克隆仓库:git clone https://github.com/sosandroid/AMS_AS5048B.git,默认分支为 master;安装与运行步骤见仓库 README。

AMS_AS5048B 最近还在维护吗?

仓库最近一次更新为 2025年11月13日,当前有 2 个未关闭 Issue;Star 数为 51,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

Arduino Lib for AMS AS5048B I2C - 14-bit magnetic rotary position sensor

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

语言占比

C++

Release

README

Arduino library for AS5048B from AMS

AS5048B is a 14-bit magnetic rotary position sensor with digital angle (I2C) and PWM output. This library deals only with the I2C channel.

Buy me a coffee

AS5048B’s Osram page.

v1.0 - First release
v1.0.1 - Typo to allow compiling on Codebender.cc (Math.h vs math.h) + Wind vane example modification to comply with the Timer.h lib used by them
v1.0.2 - ams_as5048b.cpp - fix setZeroReg() issue raised by @MechatronicsWorkman
v1.0.3 - Small bug fix and improvement by @DavidHowlett
v1.0.4 - Implemented OTP register burning by @brentyi
v1.0.5 - Optional parameters fix

Features

  • Manage zero position
  • Counts CW or CCW
  • Reads Auto Gain & Diagnostics registers
  • Reads 14 bits magnitude
  • Reads 14 bits angle with various units output (raw, turn, degree, radian, grade, minute of arc, second of arc, Nato mil, Russian mil, Swedish mil)
  • Computes an angular exponential moving average
  • Reads exponential moving average angle and outputting with various units
  • Resets Exp moving Avg
  • OTP setting
  • OTP programming sequence

Code examples

  • Single angle reading, outputs 2 units
  • Angular exponential moving average reading, outputs read angle and average
  • Wind vane, outputs azimuth and compass direction - This one as a special #define for Codebender.cc support
  • Dial reading for X-Plane
  • Slave address programming

Not available yet features

  • PWM reading
  • Debug

Testing

  • Tested against AS5048B’s official adapter board
  • Tested on Arduino Mega with Arduino IDE 1.0.5 && Codebender.cc
  • Tested on Arduino Uno with Arduino IDE 1.6.9
  • Tested on Arduino Nano with Arduino IDE 1.6.9
  • Tested on Teensy++ 2.0 with Arduino IDE 1.6.9
  • Please comment about other devices

评论

暂无评论