fan8
2.0.0.0
|
<PRVIH_PAR_RECENICA_SA_PRODUCT_PAGE_DA_ISPRATE_CELINU>
[click Product page](<CLICK_PRODUCT_PAGE_LINK>)
We provide a library for the FAN8 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 FAN8 Click driver.
fan8_cfg_setup
Config Object Initialization function. fan8_init
Initialization function. fan8_default_cfg
Click Default Configuration function. fan8_set_duty_cycle
This function sets the duty cycle of the selected fan channel and waits until the duty cycle is set at the PWM output. fan8_measure_rpm
This function measures the RPM of the selected fan channel. fan8_read_temperature
This function reads the temperature from the thermistor attached to the selected temperature channel. This example demonstrates the use of FAN 8 click board.
The demo application is composed of two sections :
Initializes the driver and performs the click default configuration.
Changes the speed of fans at both channels by changing the PWM duty cycle, then calculates the fans RPM from measured tachometer signal. It also reads the temperature of two thermistors. The results are being displayed to the USB UART where you can track their changes.
The MAX6615 measures the tachometer signal every 67s, therefore the fan RPM value will be updated once per 67s. An NTC 10K3 thermistor is required for proper temperature measurements.
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.