20%
OFF
MIKROE-1886
25 g
Status:
Magneto Click is a compact add-on board containing an accurate and reliable magnetic sensing device. This board features ams AG’s AS5048A, a 360° angle position sensor with a 14-bit high-resolution output. The AS5048A measures the absolute position of the magnet’s rotation angle, consisting of Hall sensors, analog-digital converter, and digital signal processing. The absolute position information of the magnet is directly accessible over a PWM output and can be read out over a standard SPI serial interface. This Click board™ is suitable for position sensing applications in automotive, industrial, and consumer applications such as robotic joint position detection, industrial motor position control, and many more.
Magneto Click is supported by a mikroSDK compliant library, which includes functions that simplify software development. This Click board™ comes as a fully tested product, ready to be used on a system equipped with the mikroBUS™ socket.
This product is no longer in stock
Availability date:
Magneto Click is based on the AS5048A, a 360° magnetic Hall sensor system from ams AG, manufactured in a CMOS process and used to measure the magnetic field components perpendicular to the surface of the chip. The integrated Hall sensors are placed around the center of the AS5048A and deliver a voltage representation of the magnetic flux. Through sigma-delta ADC and Digital Signal-Processing (DSP) algorithms, the AS5048A provides accurate high-resolution absolute angular position information of a small, diametrically magnetized (two-pole) standard magnet. The calculation is executed by CORDIC, which calculates the angle and the magnitude of the Hall array signals. DSP also provides information on the magnet movements towards or away from the sensor surface on the z-axis.
The AS5048A is pre-programmed as an SPI interface, with a PWM output signal, available on the INT pin of the mikroBUS™ socket in 12-bit format and provides a 14-bit binary code representing the magnet's angular position. It uses self-calibration methods to eliminate signal offset and sensitivity drifts. Different magnet diameters and magnetic inputs (NeFeB, SmCo, and alternative magnet materials such as hard ferrites) are possible depending on the system requirements.
Also, the zero magnet position can be programmed through an SPI interface. The AS5048A uses one-time programmable (OTP) fuses for permanent programming of the user settings, with the possible programming verification over a simple digital readout of the OTP content. It should be noted that the sensor tolerates misalignment, air gap variations, temperature variations, and as well external magnetic fields. This robustness and wide temperature range of the AS5048A make it ideal for rotation angle sensing in harsh industrial and medical environments.
This Click board™ can be operated only 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.
Type
Magnetic
Applications
Can be used for position sensing applications such as robotic joint position detection, industrial motor position control, and more
On-board modules
AS5048A - 360° magnetic Hall sensor system from ams AG
Key Features
Contactless rotary position sensor over 360°, high reliability, SPI and PWM interface, high presicion and resolution, programmable zero position, immune to external magnetic stray fileds, and more
Interface
PWM,SPI
ClickID
No
Compatibility
mikroBUS
Click board size
M (42.9 x 25.4 mm)
Input Voltage
5V
This table shows how the pinout on MAGNETO Click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Label | Name | Default | Description |
---|---|---|---|
LD1 | PWR | - | Power LED Indicator |
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | - | 5 | - | V |
Magnetic Field Range | 30 | 50 | 70 | mT |
Rotation Angle | 0 | - | 360 | deg |
Resolution | - | 41 | - | bit |
We provide a library for the MAGNETO 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 MAGNETO Click driver.
Key functions
This function read and returns the value of the state register.
This function read the 16-bit data from register then calculate and convert to float angle value from 0deg to 360deg.
Example Description
Example presents precise angle measurements down to 0.05º in 14-bit resolution.
void application_task ( void )
{
angle_value = magneto_calculate_angle( &magneto );
log_printf( &logger, " [ANGLE] : %0.3f rn", angle_value );
Delay_ms ( 2000 );
}
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:
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 MikroElektronika compilers.
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.