Magneto 8 Click Board
Magneto 8 Click Board
The Magneto 8 Click Board™ is a compact add-on board that contains an easy-to-program magnetic rotary position sensor with incremental quadrature (A/B) and 12-bit digital outputs. This board features the AS5601, 12-bit programmable contactless encoder IC from AMS-AG. This Click Board™ is based on a planar Hall sensor technology, supports an industry-standard I2C interface, and it measures the orthogonal component of the flux density (Bz) from an external magnet. It also provides a smart low-power mode that automatically reduces power consumption. Magneto 8 Click has many features that make it attractive for various applications such as angular position measurement solutions, encoder replacement, contactless magnetic position sensors, and more.
The Magneto 8 Click Board™ 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.
Software Support
We provide a library for the Magneto 8 Click Board™ on our LibStock page, as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Library Description
The library contains basic functions to perform the control of the Magneto 8 click board.
Key Functions
uint16_t magneto8_get_angle_data ( void )
- Gets Angle datauint16_t magneto8_get_magnitude ( void )
- Gets magnitude datauint8_t magneto8_get_status ( void )
- Gets status data
Example Description
The application is composed of three sections :
- System Initialization - Initialize the I2C module and all necessary GPIO pins
- Application Initialization - Initializes driver init and starts config module for measurement
- Application Task - Reads angle and magnetic data. Logs data every 2 seconds
void application_task ( ) { uint16_t angle; uint16_t mag; char demo_text[ 20 ]; mag = magneto8_get_magnitude( ); IntToStr( mag, demo_text ); mikrobus_logWrite( "Magnetic: ", _LOG_TEXT ); mikrobus_logWrite( demo_text, _LOG_LINE ); angle = magneto8_get_angle_data( ); IntToStr( angle, demo_text ); mikrobus_logWrite( "Angle : ", _LOG_TEXT ); mikrobus_logWrite( demo_text, _LOG_LINE ); mikrobus_logWrite( "----------------------", _LOG_LINE ); Delay_ms( 2000 ); }
The full application code, and ready to use projects can be found on our LibStock page.
Other mikroE Libraries used in the example:
- I2C Library
- UART Library
Additional Notes and Information
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
The Magneto 8 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.
Magneto 8 Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.