hbridge3
2.0.0.0
|
HBridge3 Click example. More...
Functions | |
void | log_diagnosis (uint8_t diagnostic_byte) |
void | case_plus () |
void | case_minus () |
void | case_diagnosis () |
void | case_direction1 () |
void | case_direction2 () |
void | case_on_off () |
void | application_init (void) |
void | application_task (void) |
void | main (void) |
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.
void application_init | ( | void | ) |
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
void application_task | ( | void | ) |
void case_diagnosis | ( | ) |
void case_direction1 | ( | ) |
void case_direction2 | ( | ) |
void case_minus | ( | ) |
void case_on_off | ( | ) |
void case_plus | ( | ) |
void log_diagnosis | ( | uint8_t | diagnostic_byte | ) |
void main | ( | void | ) |