hbridge3 2.0.0.0
|
HBridge3 Click example. More...
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
Variables | |
uint8_t | motor_direction = 0 |
HBridge3 Click example.
H-bridge in general, allows the current to flow in one or another direction. This click is used for driving a H-Bridge motor by changing output states. The outputs can be pulse width modulated at frequencies up to 20kHz by means of PWM/DIR control.
The demo application is composed of two sections :
Initializes SPI and LOG modules, AN, RST, CS and PWM pins
This example demonstrates the use of H-Bridge 3 Click board, by running dc motor in both directions - increasing and decreasing PWM duty cycle. Results are being sent to the Usart Terminal where you can track their changes.
void application_init | ( | void | ) |
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
void application_task | ( | void | ) |
int main | ( | void | ) |
uint8_t motor_direction = 0 |