MikroElektronika
DC MOTOR 4 click
DC MOTOR 4 click
SKU:MIKROE-2221
Couldn't load pickup availability
Share
DC MOTOR 4 click is capable of driving motors with a supply voltage from 4.5V to 36V. It carries the MAX14870 motor driver from Maxim Integrated. The click is designed to run on either 3.3V or 5V power supply. DC MOTOR 4 click communicates with the target MCU over the following pins on the mikroBUS™ line: PWM, AN, CS, and INT.
The J2 jumper onboard the click is used for selecting a power supply - either the onboard 5V or the external DC motor power supply input.
DC MOTOR 4 click can be used to driving DC motors, controlling the motor's speed, the direction of the rotation, as well to brake and regulate the current.
MAX14870 driver features
The MAX14870 motor driver offers a small, low power solution for driving and controlling brushed DC motors and relays with voltages between 4.5V and 36V.
Very low driver on-resistance reduces power dissipation. It features a charge-pump-less design for reduced external components and low supply current.
How the click works
There are two onboard screw terminals - one is for connecting the DC motor, and the other one is for connecting an external source if necessary. The DC motor is controlled through PWM, CS and AN pin of the click board.

Specifications
Type | DC |
On-board modules | MAX14870 motor driver |
Key Features | The click is capable of driving motors between 4.5V and 36V |
Interface | GPIO,PWM |
Input Voltage | 3.3V or 5V |
Click board size | M (42.9 x 25.4 mm) |
Pinout diagram
This table shows how the pinout on DC MOTOR 4 click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Buttons and LEDs
Designator | Name | Type | Description |
---|---|---|---|
PWR | PWR | LED | Power LED, lights green when Board is powered. |
Jumpers and settings
Designator | Name | Default Position | Default Option | Description |
---|---|---|---|---|
JP1 | Data level | Left | 3V3 | Data Level Voltage Selection 3V3/5V, left position 3V3, right position 5V |
JP2 | Supply selection | Power supply selection EXT/5V, right position EXT, left position 5V |
Programming
Code examples for DC MOTOR 4 click, written for MikroElektronika hardware and compilers are available on Libstock.
Code snippet
The following code snippet shows the initialization and use of compiler built-in PWM functions to control the motor.
01 void systemInit() 02 { 03 GPIO_Digital_Output(&GPIOA_BASE, _GPIO_PINMASK_4); 04 05 pwmPeriod = PWM_TIM5_Init(1000); // Set PWM frequency/period (according to the DC motor characteristics) 06 PWM_TIM5_Set_Duty(pwmPeriod, _PWM_NON_INVERTED, _PWM_CHANNEL1); // Set current duty for PWM 07 PWM_TIM5_Start(_PWM_CHANNEL1, &_GPIO_MODULE_TIM5_CH1_PA0); // Start PWM 08 09 } 10 11 void main() 12 { 13 14 systemInit(); 15 16 while (1) 17 { 18 //Forward 19 DIR_PIN = 0; 20 //Forward fast 21 PWM_TIM5_Set_Duty(pwmPeriod, _PWM_NON_INVERTED, _PWM_CHANNEL1); 22 Delay_ms (3000); 23 //Forward slow 24 PWM_TIM5_Set_Duty(pwmPeriod/2, _PWM_NON_INVERTED, _PWM_CHANNEL1); 25 Delay_ms (3000); 26 //Reverse 27 DIR_PIN = 1; 28 //Reverse fast 29 PWM_TIM5_Set_Duty(pwmPeriod, _PWM_NON_INVERTED, _PWM_CHANNEL1); 30 Delay_ms (3000); 31 //Reverse slow 32 PWM_TIM5_Set_Duty(pwmPeriod/2, _PWM_NON_INVERTED, _PWM_CHANNEL1); 33 Delay_ms (3000); 34 35 } 36 }




New Products
-
Sold out
OAK-FFC IMX577 M12
Vendor:POLOLURegular price Rs. 8,499.00Regular priceUnit price / perSold out -
Pololu Ideal Diode Reverse Voltage Protector, 4-60V, 20A
Vendor:POLOLURegular price Rs. 329.00Regular priceUnit price / perSold out -
Pololu Ideal Diode Reverse Voltage Protector, 4-60V, 25A
Vendor:POLOLURegular price Rs. 439.00Regular priceUnit price / perSold out -
Pololu I²C Isolator, ISO1640
Vendor:POLOLURegular price Rs. 449.00Regular priceUnit price / per -
3pi+ 32U4 OLED Robot Kit with 30:1 MP Motors (Standard Edition Kit)
Vendor:POLOLURegular price Rs. 15,549.00Regular priceUnit price / per -
Conductivity Calibration K 1.0 Set (4 pouches)
Vendor:Atlas ScientificRegular price Rs. 1,599.00Regular priceUnit price / perSold out -
Analog Discovery 3 Pro Bundle
Vendor:DigilentRegular price Rs. 42,569.00Regular priceUnit price / per -
Lighthouse swarm bundle - Crazyflie 2.1+ (250mAh batteries)
Vendor:BitcrazeRegular price Rs. 474,999.00Regular priceUnit price / perSold out -
Loco Swarm bundle - Crazyflie 2.1+ (250mAh batteries)
Vendor:BitcrazeRegular price Rs. 544,999.00Regular priceUnit price / perSold out -
Kopis X8 Cinelifter 5" Kit - Caged (Frame Kit)
Vendor:HolybroRegular price Rs. 28,199.00Regular priceUnit price / per -
Atlas Scientific i3 InterLink
Vendor:Atlas ScientificRegular price Rs. 6,349.00Regular priceUnit price / per -
Sold out
PoE Injector
Vendor:LuxonisRegular price Rs. 2,099.00Regular priceUnit price / perSold out -
Sold out
1-Port VINT Hub Phidget
Vendor:PhidgetsRegular price Rs. 2,699.00Regular priceUnit price / perSold out -
Holybro 1045 Propeller 2 Pair CW+CCW-Black
Vendor:HolybroRegular price Rs. 1,549.00Regular priceUnit price / per -
ACS37220LEZATR-100B3 Current Sensor Large Carrier -100A to +100A, 3.3V
Vendor:POLOLURegular price Rs. 829.00Regular priceUnit price / per -
CT433-HSWF50MR TMR Current Sensor Compact Carrier -50A to +50A, 3.3V
Vendor:POLOLURegular price Rs. 1,039.00Regular priceUnit price / per -
A5984 Stepper Motor Driver Carrier, Adjustable Current, Blue Edition
Vendor:POLOLURegular price Rs. 409.00Regular priceUnit price / per -
A5984 Stepper Motor Driver Carrier, Fixed 1A@5V / 660mA@3.3V, Blue Edition (Soldered Header Pins)
Vendor:POLOLURegular price Rs. 489.00Regular priceUnit price / per -
A5984 Stepper Motor Driver Carrier, Fixed 500mA@5V / 330mA@3.3V (Soldered Header Pins)
Vendor:POLOLURegular price Rs. 469.00Regular priceUnit price / per -
T Connector Male-Female Pair
Vendor:POLOLURegular price Rs. 169.00Regular priceUnit price / per -
Pololu Reverse Voltage Protector, 4-60V, 10A
Vendor:POLOLURegular price Rs. 159.00Regular priceUnit price / per -
Pololu Reverse Voltage Protector, 4-60V, 12A
Vendor:POLOLURegular price Rs. 199.00Regular priceUnit price / per -
Pololu Ideal Diode Reverse Voltage Protector, 4-60V, 10A
Vendor:POLOLURegular price Rs. 179.00Regular priceUnit price / perSold out -
Pololu Ideal Diode Reverse Voltage Protector, 4-60V, 12A
Vendor:POLOLURegular price Rs. 229.00Regular priceUnit price / perSold out -
Pololu Mini Plastic Gearmotor Bracket Pair - Tall
Vendor:POLOLURegular price Rs. 599.00Regular priceUnit price / per