dcmotor26
2.1.0.0
|
PRVIH_PAR_RECENICA_SA_PRODUCT_PAGE_DA_ISPRATE_CELINU
[click Product page](CLICK_PRODUCT_PAGE_LINK)
We provide a library for the DC Motor 26 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 DC Motor 26 Click driver.
dcmotor26_cfg_setup
Config Object Initialization function. dcmotor26_init
Initialization function. dcmotor26_default_cfg
Click Default Configuration function. dcmotor26_get_motor_current
DC Motor 26 get motor current function. dcmotor26_set_ch1_operation_mode
DC Motor 26 set ch1 operation mode function. dcmotor26_set_cm_sel_pin
DC Motor 26 set cm sel pin function. This example demonstrates the use of DC Motor 26 click board by controlling the speed
of DC motor over PWM duty cycle as well as displaying the motor current consumption.
The demo application is composed of two sections :
Initializes the driver and performs the click default configuration.
Changes the operation mode and motor speed by setting the PWM duty cycle and then calculates
the motor current consumption for that speed. All data is being logged on the USB UART where you can track changes.
The click board swiches should be set as follows: SW 1-2-3-4 : H-H-L-L
This sets the click board as a SPI controlled single-channel device so the motor should be connected to OUT1/2 and OUT3/4.
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.