Page 1 of 1

Running Dc Motor with Advanced PWM Module

Posted: Sun Jan 04, 2015 1:07 pm
by QMESAR
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 .
:D

Re: Running Dc Motor with Advanced PWM Module

Posted: Sun Jan 04, 2015 5:54 pm
by QMESAR
If there is some one like me which love SPICE and Mixed Mode simulation you can PM me and I will supply you the model
The model runs the FC code and the L298 hardware as you will see in the below pictures the DC motor running positive and Negative speeds