The Grove - AS5600 is a programmable 12-bit high-resolution contactless magnetic rotary position sensor. The Grove - AS5600 can work as a magnetic potentialmeter or a magnetic encoder with excellent realiability and durability.
Compared with the traditional potentialmeter/encoder, the Grove - AS5600 has significant advantages: high precision, non-contact, no rotation angle limitation. All those advantages making it suitable for non-contact angle measurement applications, such as the robot arm, tripod head, moter closed-loop control, machine tool axis postioning.
- Feature
- Non-contact, no rotation angle limitation
- 12-bit high-resolution, 4096 positions per round
- Grove I2C, PWM/Analog Output
- Great flexibility on angular excursion: Maximum angle programmable from 18° up to 360°
- Specification
- Supply voltage: 3.3V / 5V
- Operating ambient temperature: -40 – 125℃
- Input Current: -100-100mA
- Flexibility: Maximum angle programmable from 18°-360°
- Interface: I2C(Default I2C Address: 0x36) & Non-Changeable
- Output: Analog/PWM output
- Output Resolution: 12-bit DAC
- Working Principle
Grove - AS5600 is based on the Hall Effect, the build-in Hall sensor can detect changes in the direction of the magnetic field, thus there is also no rotation angle limit. The magnetic field direction information is amplified by the amplifier, with the help of the build-in 12-bit A/D, the AS5600 module can output 4096 positions per round. The output is selectable, you can either use the I2C interface to output the RAW data or output the PWM wave/Analog wave via the OUT pin. Meanwhile, the maximum anlgle is also programmable, you can set the maximum angle from 18° to 360°, which means that the measured angular accuracy is up to 18/4096.
The AS5600 has certain requirements for the magnetic field to be measured. Please use a magnet similar in size to the chip. The module should be measured as close as possible to the magnetic field and the AS5600 sensor center should be aligned with the center of the magnetic field. The vertical distance is preferably from 0.5 mm to 3 mm.
- Hardware Overview
- Getting Started
HardwareConnection
Step 1Connect the Grove - 12-bit Magnetic Rotary Position Sensor / Encoder (AS5600) to the I2C port of the Base Shield.
Step 2Plug Grove - Base Shield into Seeduino.
Step 3Connect the Seeeduino to PC via a USB cable.
Download the AS5600 Library from Github.
Step 2Restart the Arduino IDE. Open readAngle example via the path: File → Examples → Seeed_AS5600-master → readAngle. Through this demo, we can read the angles from a magnet underneath the sensor.
Step 3Upload the demo. If you do not know how to upload the code, please check How to upload code.
Step 4Open the Serial Monitor of Arduino IDE by click Tool-> Serial Monitor. Or tap the ctrl+shift+m
key at the same time. Set the baud rate to 115200.
The result should be like this when it detected magnet underneath the sensor!
Note: A calibrator is used here. The Calibrator 2D file is listed in Resources, so feel free to download and laser cut yourself!
Comments