User manual
F1 LV Evaluation Platform Motor Control Add-Ons
DS41629A-page 36 2012 Microchip Technology Inc.
The stage contains eight PWM (ECCP1_A, ECCP2_A, ECCP1_B, ECCP2_B,
ECCP1_C, ECCP2_C, ECCP1_D, ECCP2_D) inputs and four driver outputs (W, X, Y,
Z) to be attached to the bipolar motor terminals. Outputs W and X should be attached
to one motor phase, and outputs Y and Z should be attached to the other motor phase.
The current on each phase is measured using the R8 and R15 shunt resistors, placed
in-between each H-bridge lowside and ground and connected to the PIC16F1947
through the J1 connector.
4.4.5 Protection
Two 5A fuses (F1 and F2) are used to protect your add-on in case of an overcurrent
situation of the supply voltage. In case one or both of them get burnt, remove power
immediately from the board and inspect the add-on for further damage. Do not replace
the burnt fuses with other values than the ones provided with the board.
4.4.6 UNI/O
®
Memory Chip
The UNI/O
®
memory chip stores the board ID and the application parameters. It is
accessed by the Motor Control GUI at start-up in order to recognize which of the four
motor control add-on boards had been attached to the F1 LV Evaluation Platform, thus
loading the appropriate parameters for the add-on used.
4.4.7 Speed Control
Speed control can be performed through either the Motor Control GUI or the 10K POT
R4 located on the F1 LV Evaluation Board.
4.4.8 Current Control
The demo software is implemented for control without an actual current feedback.
However, by reading the voltage level on shunt resistors R8 or R15, you can implement
a software overcurrent protection and perform current control.
For example, a chopper circuit, perhaps the most used method of current control in
motor control drives, can be emulated just by using PIC MCU
®
modules. The
PIC16LF1947 has a Fixed Voltage Reference of 1.024V selectable as an input to the
internal 5-bit DAC, which in turn can be used by the internal comparators as a reference
on the positive inputs. If we select the minimum 1/32 step in the DAC, we obtain a com-
parator trigger level of 32 mV, which is sufficient to chop the current to the motor in
order to maintain it under its maximum rating given by the motor manufacturer (1A in
the case of the Leadshine bipolar stepper).
The Enhanced Capture/Compare/PWM modules have built-in features in PWM mode
for automatically shutting down the PWM, if the comparators are triggered and
auto-restarting the PWM, if certain conditions are met (please consult the
PIC16LF1947 data sheet to learn more).
By adjusting the values of the shunt resistors accordingly, you can emulate the chopper
circuitry, thus reducing the costs of external components and saving up precious space
on your board.