fan5
2.1.0.0
|
Fan 5 Click is a compact add-on board specially designed for fan speed management. This board features Microchip’s TC654, a PWM mode fan speed controller with FanSense™ technology suitable for brushless DC fans.
We provide a library for the Fan 5 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 Fan 5 Click driver.
fan5_cfg_setup
Config Object Initialization function. fan5_init
Initialization function. fan5_default_cfg
Click Default Configuration function. fan5_get_rpm1
Fan 5 get speed of FAN1. fan5_set_duty_cycle
Fan 5 set duty cycle. fan5_turn_on_fans
Fan 5 turn on fans. This example demonstrates the use of FAN 5 Click board by controlling and regulating the fan motors speed.
The demo application is composed of two sections :
Initializes the driver, performs the Click default configuration, reads
manufacturer id and sets configuration in correspondence to user-selected mode.
If Fan control is selected example will monitor FAN 1 speed and if the speed
falls below 500 RPM for longer then 2.4 seconds fan output will be disabled. In other case, example is showcasing speed control by changing duty cycle and monitoring fan speed.
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.