Angle 5 Click Board Bundle
Angle 5 Click Board Bundle
The Angle 5 Click Board™ Bundle - Add an angle sensor in BLDC Motor for accurate control and high-efficiency commutation of the motor and rotary position information. This bundle allows users to combine BLDC Motor a 12-bit digital contactless angle sensor with ABZ and UVW incremental outputs from Monolithic Power Systems
Software Support
We provide a library for the Angle 5 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 a basic functions for using the Angle 5 Click Board™.
Key Functions
uint16_t angle5_read_raw_angle ( void )
- Reads Raw Angle datafloat angle5_read_angle_deg ( void )
- Reads Angle data in deg
Example Description
The application is composed of three sections :
- System Initialization - Initializes the SPI module and all necessary GPIO pins.
- Application Initialization - Initializes dvicer init
-
void application_task ( ) { char demo_text[ 20 ]; char log_txt[ 2 ] = { 13, 0 }; float new_angle = 0; mikrobus_logWrite( log_txt, _LOG_TEXT ); mikrobus_logWrite( " ", _LOG_TEXT ); mikrobus_logWrite( log_txt, _LOG_TEXT ); new_angle = angle5_read_angle_deg( ); FloatToStr( new_angle, demo_text ); mikrobus_logWrite( " Angle: ", _LOG_TEXT ); mikrobus_logWrite( demo_text, _LOG_TEXT ); Delay_ms( 100 ); }
The full application code, and ready to use projects can be found on our LibStock page.
Other mikroE Libraries used in the example:
- SPI Library
- UART Library
- Converisons 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 Angle 5 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.
Angle 5 Click Board Bundle
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.