AS5600 12-bits Absolute Magnetic Encoder
Features:
- Detection of the magnet
- Get magnetic intensity
- Get the Angle information
You can do full function with fullfucton demo
AS5600 Serial Interface Program
Raw angle = 305.9790000000
1 - Set start position | 6 - get end position
2 - Set end position | 7 - get raw angle
3 - Set max angle range | 8 - get scaled angle
4 - Get max angle range | 9 - detect magnet
5 - Get start position | 10 - get magnet strength
Number of burns remaining: 3
96 - Burn Angle
98 - Burn Settings (one time)
Note: Check your custom board (Like this one: Hall AS5600 sensor for Game Wheel 23x23mm):
- If there is a pull-down resistor (1k) on pin 5 (PGO), internally there is already a pull-up resistor, there may be a conflict
- If there is a jumper resistor (0R) between pins 1 (VDD5V) and 2 (VDD3V3), to work under 5V, you need to remove this jumper
- AS5600 pin 8 (DIR) selects direction, needs to be set externally, otherwise the readings may fluctuate
Note: Rotate the magnet before use to make sure that the magnet is close to 0 and 360 through get raw angle
- If you just need raw data, input
7
. Its direction is based on AS5600 datasheet Figure 35: Raw Angle in Clockwise Direction
- If you want to customize the direction, you can use the scaled Angle(
8
). But you need to set the start(1
) and(2
) end positions , Burn Angle(96
)
This software is written by Baozhu Zuo from Seeed Technology Inc. and is licensed under The MIT License. Check License.txt/LICENSE for the details of MIT license.
Contributing to this software is warmly welcomed. You can do this basically by
forking, committing modifications and then pulling requests (follow the links above
for operating guide). Adding change log and your contact into file header is encouraged.
Thanks for your contribution.
Seeed is a hardware innovation platform for makers to grow inspirations into differentiating products. By working closely with technology providers of all scale, Seeed provides accessible technologies with quality, speed and supply chain knowledge. When prototypes are ready to iterate, Seeed helps productize 1 to 1,000 pcs using in-house engineering, supply chain management and agile manufacture forces. Seeed also team up with incubators, Chinese tech ecosystem, investors and distribution channels to portal Maker startups beyond.