Running Dc Motor with Advanced PWM Module
Posted: Sun Jan 04, 2015 1:07 pm
Hi All
Attached an simple code that runs a DC motor with the Power Control PWM module on a PIC Micro Controller speed control mode with Forward and reverse direction (2 quadrant mode).
Note this code is not production ready code it is a simple code that demonstrate how to us the Power control module in FC with a few lines of C code.
The code check two buttons for selecting Forward or reverse Drive this button routine is also not optimized for 100% stable operation. AN4 is used to control the speed of the motor.
The attached schematic shows only the pin connections ,circuit component values does not represent the real live values see the Matrix EB022 datasheet for circuit values
The hardware used are a PIC18F4431 and the EB022 Motor Driver board from Matrix ,The Power Control module can generate complex PWM signals to drive various motors DC Brushed/DC Brush less(PMSM Motors)/Ac induction motors and Universal power supplies .
Attached an simple code that runs a DC motor with the Power Control PWM module on a PIC Micro Controller speed control mode with Forward and reverse direction (2 quadrant mode).
Note this code is not production ready code it is a simple code that demonstrate how to us the Power control module in FC with a few lines of C code.
The code check two buttons for selecting Forward or reverse Drive this button routine is also not optimized for 100% stable operation. AN4 is used to control the speed of the motor.
The attached schematic shows only the pin connections ,circuit component values does not represent the real live values see the Matrix EB022 datasheet for circuit values
The hardware used are a PIC18F4431 and the EB022 Motor Driver board from Matrix ,The Power Control module can generate complex PWM signals to drive various motors DC Brushed/DC Brush less(PMSM Motors)/Ac induction motors and Universal power supplies .