NOTE: Rotary Magnetic Holder does not come in the same package as this Click board™, but you can find it in our shop.
How does it work?
Angle 10 Click is based on the AS5070A, a Hall-based rotary magnetic position sensor using a CMOS technology from ams AG. The lateral Hall sensor array converts the magnetic field component, perpendicular to the surface of the chip, into a voltage. The signals from internal Hall sensors are amplified and filtered before their conversion by the ADC and then processed by the CORDIC block to compute the angle and magnitude of the magnetic field vector. The intensity of the magnetic field is used by the automatic gain control (AGC) to adjust the amplification level to compensate for temperature and magnetic field variations.
The AS5070A provides a linear analog ratiometric output signal, which is the angular orientation of the magnet above the AS5070A on a linear absolute scale (ratiometric up to 5V). The analog output voltage of the AS5070A is then sent directly to an analog pin of the mikroBUS™ socket labeled as AN.
A unique addition to this board is a position for a Rotary Magnet Holder designed to be used alongside a magnetic rotary position sensor allowing fast prototyping and quick measurements during development.
This Click board™ can only be operated with a 5V logic voltage level. The board must perform appropriate logic voltage level conversion before using 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 contactless potentiometers, knobs, and other angular position measurement solutions
On-board modules
AS5070A – Hall-based rotary magnetic position sensor using a CMOS technology from ams AG
Key Features
Contactless angle measurement, highest reliability and durability, high-resolution output signal, magnetic stray field immunity, great flexibility on angular excursion, analog output, and more
Interface
Analog
Feature
ClickID
Compatibility
mikroBUS™
Click board size
M (42.9 x 25.4 mm)
Input Voltage
3.3V,5V
Pinout diagram
This table shows how the pinout on Angle 10 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 |
Angle 10 Click electrical specifications
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | – | 5 | – | V |
Angle Measurement Range | – | – | 360 | deg |
Core Resolution | – | 14 | – | bit |
Analog Resolution | – | 12 | – | bit |
Software Support
We provide a library for the Angle 10 Click as well as a demo application (example), developed using Mikroe compilers. The demo can run on all the main Mikroe development boards.
The package can be downloaded/installed directly from NECTO Studio Package Manager(recommended), downloaded from our LibStock™ or found on Mikroe github account.
Library Description
This library contains API for Angle 10 Click driver.
Key functions
-
angle10_read_voltage
This function reads raw ADC value and converts it to proportional voltage level. -
angle10_get_angle
This function reads the magnetic angular position in degrees based on @b ANGLE10_NUM_CONVERSIONS of voltage measurements. -
angle10_set_vref
This function sets the voltage reference for Angle 10 click driver.
Example Description
This example demonstrates the use of Angle 10 Click board™ by reading and displaying the magnet’s angular position in degrees and analog voltage output.
void application_task ( void )
{
float voltage, angle;
if ( ANGLE10_OK == angle10_read_voltage ( &angle10, &voltage ) )
{
log_printf( &logger, " AN Voltage : %.3f Vrn", voltage );
}
if ( ANGLE10_OK == angle10_get_angle ( &angle10, &angle ) )
{
log_printf ( &logger, " Angle: %.2f Degreesrnn", angle );
}
Delay_ms( 500 );
}
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended), downloaded from our LibStock™ or found on Mikroe github account.
Other Mikroe Libraries used in the example:
- MikroSDK.Board
- MikroSDK.Log
- Click.Angle10
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. UART terminal is available in all Mikroe compilers.
mikroSDK
This Click board™ is supported with mikroSDK – MikroElektronika’s Software Development Kit. mikroSDK should be downloaded from the LibStock™ and installed for the compiler you are using to ensure proper operation of mikroSDK compliant Click board™ demo application.
For more information about mikroSDK, visit the official page.