Angle Click Board
Angle Click Board
The Angle Click Board™ is a precise Hall-effect angle sensing click board that can be used to measure the rotational angle of the magnetic field in the X-Y plane above it (parallel to the surface of the click), through the whole range of 360°. The click yields very precise results for both off-axis and axis operation, which make it a perfect choice for precise measuring of the rotational angle in a wide range of different high-speed applications, for example in the automotive industry: electronic power steering, transmission, torsion bar, or the motor shaft rotation.
The Angle Click Board™ features the A1335 Hall-effect angle sensing IC, made by Allegro MicroSystems LLC. This IC measures the magnetic field angular vector, based on the actual physical reading of the integrated Hall-effect sensor, as well as the user-selected parameters, such as the digital filtering, dynamic range and scaling. The integrated 32-bit MCU ensures that the processed data is delivered with a minimal delay and it has enough power to provide the complex processing of the input values so that the measurement remains fast, precise and linear.
Software Support
We provide a library for the Angle Click Board™ on our LibStock page, as well as a demo application (example), developed using MikroElektronika compilers and mikroSDK. The provided click library is mikroSDK standard compliant. The demo application can run on all the main MikroElektronika development boards.
Library Description
Key Functions
uint16_t angle_getAngle()
- Read angle
uint16_t angle_getTemperature()
- Read temperature
vuint16_t angle_getMagnetics()
- Read magnetics
Example Description
The application is composed of three sections:
- System Initialization - Initializes I2C module and UART for logging
- Application Initialization - Driver initialization and angle sensing mode
- Application Task - (code snippet) - Reads encoded angle in degrees and magnetic data in gauss
void applicationTask() { Angle = angle_getAngle(); IntToStr(Angle,txt); mikrobus_logWrite("Angle :",_LOG_TEXT); mikrobus_logWrite(txt,_LOG_LINE); Magnetics = angle_getMagnetics(); IntToStr(Magnetics,txt); mikrobus_logWrite("Magnetics :",_LOG_TEXT); mikrobus_logWrite(txt,_LOG_LINE); Delay_1sec(); }
The full application code, and ready to use projects can be found on our LibStock page. MikroElektronika libraries used in the example:
- I2C
- UART
- Conversions
Angle Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.