We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]
Rating:
Author: MIKROE
Last Updated: 2020-07-13
Package Version: 1.0.0.0
mikroSDK Library: 1.0.0.0
Category: Brushless
Downloaded: 2386 times
Not followed.
License: MIT license
Brushless 7 Click based on TC78B009FTG IC from Toshiba is a three-phase BLDC motor controller that does not require Hall sensors. Some of the main features are a built-in closed loop speed control function that regulates and maintains the motor rotational speed under dynamic power fluctuations and load variations.
Do you want to subscribe in order to receive notifications regarding "Brushless 7 click" changes.
Do you want to unsubscribe in order to stop receiving notifications regarding "Brushless 7 click" changes.
Do you want to report abuse regarding "Brushless 7 click".
Library Description
Library provides functions for controlling brushless motor. It has functions for communicating with device with I2C module, and controlling pins. There are function for controlling device over couple of modes.
Key functions:
void brushless7_generic_write ( uint8_t reg_adr, uint8_t tx_data )
- Function for writing one byte of data to deviceuint8_t brushless7_generic_read ( uint8_t reg_adr )
- Function for reading one byte of data from devicevoid brushless7_default_config ( void )
- Function for setting default configuration of deviceExamples description
The application is composed of three sections :
void application_task ( )
{
if ( BRUSHLESS7_CTRL_TYPE_DUTY == demo_type_data )
{
mikrobus_logWrite( " ----- 20 ----- ", _LOG_LINE );
stop_start();
brushless7_change_duty( 20 );
Delay_ms( 20000 );
mikrobus_logWrite( " ----- 40 ----- ", _LOG_LINE );
stop_start();
brushless7_change_duty( 40 );
Delay_ms( 20000 );
mikrobus_logWrite( " ----- 8 ----- ", _LOG_LINE );
stop_start();
brushless7_change_duty( 8 );
Delay_ms( 20000 );
}
else if ( BRUSHLESS7_CTRL_TYPE_RPM == demo_type_data )
{
mikrobus_logWrite( " ----- 400 ----- ", _LOG_LINE );
stop_start();
brushless7_start_rpm( 400 );
Delay_ms( 20000 );
mikrobus_logWrite( " ----- 1000 ----- ", _LOG_LINE );
stop_start();
brushless7_start_rpm( 1000 );
Delay_ms( 20000 );
mikrobus_logWrite( " ----- 100 ----- ", _LOG_LINE );
stop_start();
brushless7_start_rpm( 100 );
Delay_ms( 20000 );
}
}
Additional Functions :
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. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.