angle7
2.0.0.0
|
Angle 7 Click is a compact add-on board that detects the absolute angular position of a permanent magnet. This board features the AS5600, a programmable Hall-based rotary magnetic position sensor with a high-resolution 12-bit analog or PWM output from ams AG.
We provide a library for the Angle 7 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.
This library contains API for Angle 7 Click driver.
angle7_cfg_setup
Config Object Initialization function. angle7_init
Initialization function. angle7_default_cfg
Click Default Configuration function. angle7_get_status
This function reads the status data. angle7_get_angle
This function reads the calculated angle in degrees. angle7_get_magnitude
This function reads the magnitude data. This example demonstrates the use of Angle 7 click board by reading and displaying
the magnet's angular position in degrees and analog voltage output as well as the magnet's status and magnitude.
The demo application is composed of two sections :
Initializes the driver and performs the click default configuration.
Reads the magnet's angular position in degrees and analog voltage output
as well as the magnet's status and magnitude and displays the results on the USB UART approximately every 100ms.
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.