How does it work?
AMR Angle Click, as its foundation, uses the ADA4571, an anisotropic magnetoresistive (AMR) sensor with integrated signal conditioning amplifiers and ADC drivers, as well as a temperature sensor for temperature compensation from Analog Devices. It produces two analog outputs that indicate the surrounding magnetic field’s angular position and consists of two die within one package, an AMR sensor, and a fixed gain instrumentation amplifier, with G=40 nominally. It provides better than 0.2° angular accuracy over 180°, and linear accuracy of 2mil (0.002 inches) over a 0.5-inch range, depending on the used magnet’s size.
The ADA4571 contains two Wheatstone bridges, at a relative angle of 45° to one another. A rotating magnetic field in the x-y sensor plane delivers two sinusoidal output signals with the double frequency of the angle between sensor and magnetic field direction. Within a homogeneous field in the x-y plane, the output signals are independent of the physical placement in the z-direction (air gap).
The AMR Angle Click communicates with MCU through the 3-Wire SPI serial interface using the LTC1407, 12-bit 3MSPS ADC with two 1.5MSPS simultaneously sampled differential inputs from Analog Devices. The LTC1407 samples both channels of the sensor simultaneously using an SPI interface, allowing access to both channels on one data line. Besides, it possesses additional functionality routed on some GPIO pins such as Power-Down mode, Gain control, and temperature monitoring.
The power-down feature labeled as PD and routed on the PWM pin of the mikroBUS™ socket shuts down the device. It sets its outputs to a high impedance to avoid current consumption, while the VTEMP routed on the AN pin can be used for temperature monitoring or calibration purposes. Gain control, labeled as GC and routed on the RST pin of the mikroBUS™ socket, activates by switching this pin to a high level. In this mode, the AMR sensor amplitude outputs are compensated to reduce temperature variation, which results in higher and controlled output voltage levels. It can also be used as a sensor self-diagnostic feature by comparing the sine and cosine amplitude outputs when enabled and disabled, such as radius check.
This Click board™ can be operated only with a 3.3V logic voltage level. The board must perform appropriate logic voltage level conversion before use with MCUs with different logic levels. However, the Click board™ comes equipped with a library containing functions and an example code that can be used, as a reference, for further development.
Specifications
Type
Magnetic
Applications
Can be used for absolute position measurement (linear and angle), contactless angular measurement and detection, magnetic angular position sensing, actuator control and positioning, and more.
On-board modules
ADA4571 – AMR sensor with clean and amplified cosine and sine output signals related to a rotating magnetic field angle from Analog Devices
LTC1407 – 12-bit 3MSPS ADC with two 1.5MSPS simultaneously sampled differential inputs from Analog Devices
Key Features
High precision 180° angle sensor, maximum angular error of 0.5°, magnetoresistive (MR) bridge temperature compensation mode, fault diagnostic, and more.
Interface
SPI
Feature
No ClickID
Compatibility
mikroBUS™
Click board size
M (42.9 x 25.4 mm)
Input Voltage
3.3V
Pinout diagram
This table shows how the pinout on AMR Angle Click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Onboard settings and indicators
Label | Name | Default | Description |
---|---|---|---|
LD1 | PWR | – | Power LED Indicator |
AMR Angle Click electrical specifications
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | – | 3.3 | – | V |
Rotation Angle | 0 | – | 180 | degrees |
Angular Error | – | – | 0.5 | degrees |
Resolution | 12 | – | – | bits |
Operating Temperature Range | 0 | +25 | +70 | °C |
Software Support
We provide a library for the AMR Angle Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on mikroE github account.
Library Description
This library contains API for AMR Angle Click driver.
Key functions:
amrangle_cfg_setup
– Config Object Initialization function.amrangle_init
– Initialization function.amrangle_default_cfg
– Click Default Configuration function.
Examples description
This demo application shows the performance of AMR Angle Click by reading and presenting the temperature and angle results on the UART log.
The demo application is composed of two sections :
void application_task ( void ) { temperature_res = amrangle_read_vtp_temp( &amrangle ); angle_res = amrangle_angle_read( &amrangle ); log_printf( &logger, " Temperature: %.2f Crn", temperature_res ); log_printf( &logger, " Angle: %.2f degreesrn", angle_res ); log_printf( &logger, " --------------------------rn" ); Delay_ms( 1000 ); }
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on mikroE github account.
Other mikroE Libraries used in the example:
- MikroSDK.Board
- MikroSDK.Log
- Click.AMRAngle
Additional notes and informations
Depending on the development board you are using, you may need USB UART click, USB UART 2 click or RS232 click to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.
mikroSDK
This Click board™ is supported with mikroSDK – MikroElektronika Software Development Kit. To ensure proper operation of mikroSDK compliant Click board™ demo applications, mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.
For more information about mikroSDK, visit the official page.