【文件属性】:
文件名称:AS5600:适用于AS5600磁编码器的Arduino库
文件大小:18KB
文件格式:ZIP
更新时间:2021-05-10 22:10:19
C++
AS5600
用于AS5600 12位电磁编码器的Arduino库。 该库是为编写的。
特征
读取12位值(0-4095)
读取角度值,以度为单位(0-360度)
获得磁强度
获得收益
例子
以下示例以360/4096的增量读取磁体相对于AS5600编码器的角度(0-360)
# include < AS5600>
AS5600 encoder;
float output;
void setup () {
Serial. begin ( 9600 );
}
void loop () {
// get the angle in degrees of the encoder
output = encoder. getAngle ();
Serial. println (output);
}
更多例子
有关更多示例(包括连续轮换),请参存储库中的目录。
【文件预览】:
AS5600-master
----AS5600.cpp(9KB)
----keywords.txt(114B)
----LICENSE(34KB)
----examples()
--------readMagnet()
--------readAngle()
--------continuousRotation()
----AS5600.h(3KB)
----README.md(818B)