You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge in MCU16CE/mchv3-dspic33ck256mp508-an1206 from develop to master
* commit '273616bce6b389c383bb46c66aa1e1077dedc867':
Added a special note on low resolution issue of external op- amp configuration with AC300023 motor.
Excel sheet is updated.(External op-amp max peak current is changed from 16.4 to 16.5A)
main.json and changelog files are modified for the release of version 1.0.1
Tuning parameters for external op-Amp configuration are modified corresponding to peak current of 16.5A.
Readme files are modified to correct the errors.
Copy file name to clipboardExpand all lines: README.md
+27-2Lines changed: 27 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1

2
2
3
-
# MCHV3 DSPIC33CK256MP508 AN1206
3
+
# MCHV3 dsPIC33CK256MP508 AN1206
4
4
5
5
## INTRODUCTION
6
6
<pstyle='text-align: justify;'>
@@ -20,5 +20,30 @@ A Phase-Locked Loop (PLL) estimator is implemented to estimate the speed and pos
20
20
<imgsrc="images/pllestimatorblockdiagram.PNG">
21
21
</p>
22
22
23
+
### The following hardware tools are used for the demonstration:
24
+
25
+
Use one of the High-Voltage Motor Control Development Boards mentioned below:
26
+
- dsPICDEM™ MCHV-2 Development Board, [DM330023-2](https://www.microchip.com/en-us/development-tool/dm330023-2)
27
+
- dsPICDEM™ MCHV-3 Development Board, [DM330023-3](https://www.microchip.com/en-us/development-tool/dm330023-3)
28
+
- High Voltage 3-Phase AC Induction Motor, [AC300023](https://www.microchip.com/en-us/development-tool/AC300023)
29
+
- dsPIC33CK256MP508 Internal Op-Amp Motor Control Plug-in module, [MA330041-2](https://www.microchip.com/en-us/development-tool/MA330041-2)
30
+
- dsPIC33CK256MP508 External Op-Amp Motor Control Plug-in module, [MA330041-1](https://www.microchip.com/en-us/development-tool/MA330041-1)
31
+
32
+
Maximum rated current of the induction motor (AC300023) used for the demonstration is 0.25A. The default gain of the internal amplifier is 15, capable of measuring a maximum peak current of 11A. To improve the measurement accuracy, modify the amplifier gain so that the maximum peak current is 1A.
33
+
34
+
- Readme document for Internal op-amp configuration [Readme for Internal Op-Amp](mchv3_dspic33ck256mp508_an1206/docs/README_internal.md)
35
+
36
+
The default gain of the external amplifiers on the MCHV-2 or MCHV-3 is 10 (the maximum measurable peak current is 16.5A).
37
+
23
38
- Readme document for External op-amp configuration [Readme for External Op-Amp](mchv3_dspic33ck256mp508_an1206/docs/README_external.md)
24
-
- Readme document for Internal op-amp configuration [Readme for Internal Op-Amp](mchv3_dspic33ck256mp508_an1206/docs/README_internal.md)
39
+
40
+
</br>
41
+
42
+
> **NOTE :**
43
+
> - <pstyle='text-align: justify;'> The hardware setting for internal opamp configuration is altered to get a peak current of 1A. This is done to enable MCHV-2 or MCHV-3 board to run the induction motor -AC300023 whose maximum rated current is only 0.25A.</p>
44
+
> - <pstyle='text-align: justify;'>The hardware setting for external opamp configuration is left unaltered (with a peak current of 16.5A). This enables user to run higher power motors on MCHV-2 or MCHV-3 board. But, with the default external amplifier gain settings, the induction motor - AC300023 may not run properly or may stall at certain speeds, due to lower current resolution.</p>
Copy file name to clipboardExpand all lines: mchv3_dspic33ck256mp508_an1206/docs/README_external.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@
6
6
<pstyle='text-align: justify;'>
7
7
This document describes the setup requirements for running the Sensor-less FOC algorithm for an Induction Motor, which is referenced in AN1206 “Sensorless Field Oriented Control (FOC) of a Three-Phase AC Induction Motor (ACIM)” </p>
8
8
<pstyle='text-align: justify;'>
9
-
The demonstration is configured to run on either the dsPICDEM™ MCHV-2 Development Board or the dsPICDEM™ MCHV-3 Development Board in the External Op-Amp configuration with the dsPIC33CK256MP508 Internal Op-Amp Motor Control Plug-In Module (PIM).
9
+
The demonstration is configured to run on either the dsPICDEM™ MCHV-2 Development Board or the dsPICDEM™ MCHV-3 Development Board in the External Op-Amp configuration with the dsPIC33CK256MP508 External Op-Amp Motor Control Plug-In Module (PIM).
10
10
</p>
11
11
12
12
## Hardware Connection and Running the Demo Code
@@ -26,8 +26,8 @@ To set up the demonstration, you may use one of the High-Voltage Motor Control D
26
26
- dsPICDEM™ MCHV-3 Development Board [DM330023-3](https://www.microchip.com/en-us/development-tool/dm330023-3)
27
27
> **_NOTE:_**
28
28
>In this document, hereinafter High-Voltage Motor Control Development Board selected for setting up the demonstration is referred as Development Board..
29
-
- High Voltage 3-Phase AC Induction Motor, Part-No. [AC300023](https://www.microchip.com/en-us/development-tool/AC300023)
30
-
- dsPIC33CK256MP508 Internal Op-Amp Motor Control Plug-in module, Part-No. [AC300023](https://www.microchip.com/en-us/development-tool/MA330041-2)
29
+
- High Voltage 3-Phase AC Induction Motor.
30
+
- dsPIC33CK256MP508 External Op-Amp Motor Control Plug-in module, Part-No. [MA330041-1](https://www.microchip.com/en-us/development-tool/MA330041-1)
31
31
<br />
32
32
33
33
> **_NOTE:_**
@@ -38,7 +38,7 @@ To set up the demonstration, you may use one of the High-Voltage Motor Control D
38
38
<pstyle='text-align: justify;'>
39
39
Refer dsPICDEM™ MCHV-2 Development Board User’s Guide or dsPICDEM™ MCHV-3 Development Board User’s Guide, for any clarification while setting up the hardware.</p>
40
40
<pstyle='text-align: justify;'>
41
-
1.Before making any connection, verify that the Development Board is not powered and it is fully discharged. This can be done by checking if Power on Status LED D13(Red) is off.</p>
41
+
1. Before making any connection, verify that the Development Board is not powered and it is fully discharged. This can be done by checking if Power on Status LED D13(Red) is off.</p>
42
42
<pstyle='text-align: justify;'>
43
43
2. Open the top cover of the enclosure and set up the following jumpers (if they are not in specified positions):</p>
44
44
@@ -57,7 +57,7 @@ Refer dsPICDEM™ MCHV-2 Development Board User’s Guide or dsPICDEM™ MCHV-3
57
57
<imgsrc="../../images/matrixboard.PNG">
58
58
</p>
59
59
<pstyle='text-align: justify;'>
60
-
Note: Rated current of the board in External op amp configuration is 16.4 A.</p>
60
+
Note: Rated current of the board in External op amp configuration is 16.5 A.</p>
61
61
</br>
62
62
<pstyle='text-align: justify;'>
63
63
5. Insert the dsPIC33CK256MP508 External Op-Amp Motor Control PIM into the PIM Socket U11 provided on the Development Board. Make sure the PIM is correctly placed and oriented before proceeding.</p>
@@ -150,15 +150,15 @@ Define the Macro TORQUE_MODE, if the motor must run in Torque Control mode. If t
150
150
</p>
151
151
152
152
<pstyle='text-align: justify;'>
153
-
5. Open userparams.h (under acim.X -> headerfiles) in the project acim.X and ensure the required Motor is defined and the Board and Motor parameters are corre-sponding to External Op-Amp design from the tuning parameter excel sheet in docs folder</p>
153
+
5. Open userparams.h (under acim.X -> headerfiles) in the project acim.X and ensure the required Motor is defined and the Board and Motor parameters are corresponding to External Op-Amp design from the tuning parameter excel sheet in docs folder</p>
### **Parameters to Enter in the tuning parameter excel sheet:**
159
159
### **Board Parameters:**
160
160
-**Board Peak voltage:** The Maximum measurable DC Bus voltage corresponding to Analog Channel voltage of 3.3V. By default, Board Peak Voltage for MCHV2/MCHV3 is 453V.
161
-
-**Board Peak current:** The Maximum measurable Phase Current corresponding to Analog Channel voltage of 3.3V. By default, Board Peak current for MCHV2/MCHV3 in External OP AMP Configuration is 11A.
161
+
-**Board Peak current:** The Maximum measurable Phase Current corresponding to Analog Channel voltage of 1.65V. By default, Board Peak current for MCHV2/MCHV3 in External OP AMP Configuration is 16.5A.
162
162
-**PWM Period (Ts):** PWM Period is equal to 1/PWM switching frequency
Copy file name to clipboardExpand all lines: mchv3_dspic33ck256mp508_an1206/docs/README_internal.md
+17-20Lines changed: 17 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1

2
2
3
-
# AN1206 Demonstration ReadMe for the dsPICDEM™ MCHV-2 Development Board or dsPICDEM™ MCHV-3 Development Board with the dsPIC33CK256MP508 Inernal Op-Amp Motor Control PIM(MPLAB® X IDE)
3
+
# AN1206 Demonstration ReadMe for the dsPICDEM™ MCHV-2 Development Board or dsPICDEM™ MCHV-3 Development Board with the dsPIC33CK256MP508 Internal Op-Amp Motor Control PIM(MPLAB® X IDE)
4
4
5
5
## INTRODUCTION
6
6
<pstyle='text-align: justify;'>
@@ -25,9 +25,9 @@ To set up the demonstration, you may use one of the High-Voltage Motor Control D
25
25
- dsPICDEM™ MCHV-2 Development Board, Part-No. [DM330023-2](https://www.microchip.com/en-us/development-tool/dm330023-2)
26
26
- dsPICDEM™ MCHV-3 Development Board [DM330023-3](https://www.microchip.com/en-us/development-tool/dm330023-3)
27
27
> **_NOTE:_**
28
-
>In this document, hereinafter High-Voltage Motor Control Development Board selected for setting up the demonstration is referred as Development Board..
29
-
- High Voltage 3-Phase AC Induction Motor, Part-No. [AC300023](https://www.microchip.com/en-us/development-tool/AC300023)
30
-
- dsPIC33CK256MP508 Internal Op-Amp Motor Control Plug-in module, Part-No. [AC300023](https://www.microchip.com/en-us/development-tool/MA330041-2)
28
+
>In this document, hereinafter High-Voltage Motor Control Development Board selected for setting up the demonstration is referred as Development Board.
29
+
- High Voltage 3-Phase AC Induction Motor.
30
+
- dsPIC33CK256MP508 Internal Op-Amp Motor Control Plug-in module, Part-No. [MA330041-2](https://www.microchip.com/en-us/development-tool/MA330041-2)
31
31
<br />
32
32
33
33
> **_NOTE:_**
@@ -58,15 +58,13 @@ Refer dsPICDEM™ MCHV-2 Development Board User’s Guide or dsPICDEM™ MCHV-3
58
58
</p>
59
59
60
60
<pstyle='text-align: justify;'>
61
-
5.The rated current of Induction Motor (AC300023) is 0.25 A, and the default rated current of the Board in Internal Op Amp Configuration is 11A. To increase the resolution please modify the rated current of the Board in Internal Op Amp Configuration from 11A to 1A by changing the gains of the current Amplifier.</p>
61
+
5. Maximum rated current of the induction motor (Part-No. AC300023) used for the demonstration is 0.25A. The default gain of the internal amplifier is 15, capable of measuring a maximum peak current of 11A. To improve the measurement accuracy, modify the amplifier gain so that the maximum peak current is 1A.</p>
62
62
63
-
Modify the **R6,R5,R13,R12** from **30k to 330k** ohm resistors.
63
+
Modify the value of resistors **R6,R5,R13,R12** from **30k to 330k** ohm to change the measureable peak current from 11A to 1A.
64
64
<palign="center">
65
65
<imgsrc="../../images/internalopampconfig.PNG">
66
66
</p>
67
67
<pstyle='text-align: justify;'>
68
-
Note: if the Rated current of the motor is more than 1A, then there is no need to modify the gains of the internal Op Amp, during that case the rated current of the board in internal op amp configuration is 11A.</p>
69
-
<pstyle='text-align: justify;'>
70
68
6. Insert the dsPIC33CK256MP508 Internal Op-Amp Motor Control PIM into the PIM Socket U11 provided on the Development Board. Make sure the PIM is correctly placed and oriented before proceeding.</p>
71
69
72
70
<pstyle='text-align: justify;'>
@@ -94,18 +92,17 @@ Install MPLAB X IDE and MPLAB XC16 Compiler versions that support the device dsP
94
92
95
93
<pstyle='text-align: justify;'>If MPLAB IDE v8 or earlier is already installed on your computer, then run the MPLAB driver switcher (It is installed when MPLAB®X IDE is installed) to switch from MPLAB IDE v8 drivers to MPLAB X IDE drivers. If you have Windows 7 or 8, you must run MPLAB driver switcher in ‘Administrator Mode’. To run the Device Driver Switcher GUI application as administrator, right click on the executable (or desktop icon) and select ‘Run as Administrator’. For additional details refer MPLAB X IDE help topic “Before You Begin: Install the USB Device Drivers (For Hardware Tools): USB Driver Installation for Windows Operating Systems”. </p>
96
94
97
-
### Setup: X2C - SCOPE
95
+
### Setup: X2C - Scope
98
96
<pstyle='text-align: justify;'>
99
-
X2C - SCOPE is a MPLAB X IDE plugin that allows a developer to interact with an application while the application program is running. X2C-Scope enables you to read, write, and plot global variables (for motor control) in real time. It communicates with the target using the UART. To use X2C, the plugin must be installed:</p>
97
+
X2C - Scope is a MPLAB X IDE plugin that allows a developer to interact with an application while the application program is running. X2C-Scope enables you to read, write, and plot global variables (for motor control) in real time. It communicates with the target using the UART. To use X2C, the plugin must be installed:</p>
100
98
101
99
- In MPLAB X IDE, select Tools>Plugins and click on the Available Plugins tab.
102
-
- Select X2C - SCOPE plug-in by checking its check box, and then click Install.
103
-
- Look for tool X2C - SCOPE under Tools>Embedded.
100
+
- Select X2C - Scope plug-in by checking its check box, and then click Install.
101
+
- Look for tool X2C - Scope under Tools>Embedded.
104
102
105
103
<palign="center">
106
104
<imgsrc="../../images/x2cinstall.PNG">
107
105
</p>
108
-
<br />
109
106
110
107
## BASIC DEMONSTRATION
111
108
### Firmware Description
@@ -123,7 +120,7 @@ For more details refer Microchip Application note AN1206 “Sensorless Field Ori
123
120
124
121
> **_NOTE:_**
125
122
> The project may not build correctly in Windows OS if Maximum path length of any source file in the project is more than 260 characters. In case absolute path is exceeding or nearing maximum length, do any (or both) of the following:
126
-
> - Shorten the name of the directory containing the firmware used in this demonstration. In this case, rename directory AN1206_dsPIC33CK256MP508_EXT_INT_OPAMP_MCHV2_MCHV3 to more ap-propriate shorter name. In case you renamed the directory, consider the new name while reading instructions provided in the upcoming sections of the document.
123
+
> - Shorten the name of the directory containing the firmware used in this demonstration. In this case, rename directory AN1206_dsPIC33CK256MP508_EXT_INT_OPAMP_MCHV2_MCHV3 to more appropriate shorter name. In case you renamed the directory, consider the new name while reading instructions provided in the upcoming sections of the document.
127
124
> - Place firmware in a location, such that absolute path length of each file included in the projects does not exceed the Maximum Path length specified.
128
125
For details, refer MPLAB X IDE help topic “Path, File and Folder Name Restrictions”.
129
126
@@ -152,23 +149,23 @@ Define the Macro OPEN_LOOP_FUNCTIONING, if the motor must run in Open loop (V/F)
152
149
Define the Macro TORQUE_MODE, if the motor must run in Torque Control mode. If the Macro OPEN_LOOP_FUNCTIONING is defined, then motor will run in Speed Con-trol mode.</p>
153
150
154
151
<pstyle='text-align: justify;'>
155
-
4. Open userparams.h (under acim.X -> headerfiles) in the project acim.X and ensure INTERNAL_OPAMP_CONFIGPIM is undefined as this demonstration is for Internal Op-Amp configuration.</p>
152
+
4. Open userparams.h (under acim.X -> headerfiles) in the project acim.X and ensure INTERNAL_OPAMP_CONFIGPIM is defined as this demonstration is for Internal Op-Amp configuration.</p>
5. Open userparams.h (under acim.X -> headerfiles) in the project acim.X and ensure the required Motor is defined and the Board and Motor parameters are corre-sponding to Internal Op-Amp design from the tuning parameter excel sheet in docs folder</p>
158
+
5. Open userparams.h (under acim.X -> headerfiles) in the project acim.X and ensure the required Motor is defined and the Board and Motor parameters are corresponding to Internal Op-Amp design from the tuning parameter excel sheet in docs folder.</p>
162
159
<palign="center">
163
160
<imgsrc="../../images/internalconfigsetup.PNG">
164
161
</p>
165
162
166
163
### **Parameters to Enter in the tuning parameter excel sheet:**
167
164
### **Board Parameters:**
168
165
-**Board Peak voltage:** The Maximum measurable DC Bus voltage corresponding to Analog Channel voltage of 3.3V. By default, Board Peak Voltage for MCHV2/MCHV3 is 453V.
169
-
-**Board Peak current:** The Maximum measurable Phase Current corresponding to Analog Channel voltage of 3.3V. By default, Board Peak current for MCHV2/MCHV3 in Internal OP AMP Configuration is 11A.
166
+
-**Board Peak current:** The Maximum measurable Phase Current corresponding to Analog Channel voltage of 1.65V. For running ZD Motor,Part-No. [AC300023](https://www.microchip.com/en-us/development-tool/AC300023) the gains of the internal op Amp Module are modified and the Modified Board Peak Current is 1A.
167
+
See Point #5 in [Hardware setup](#hadware-setup)
170
168
171
-
**Note:** For running **ZD Motor** the gains of the internal op Amp Module are modified and the Modified Board Peak Current is 1A.
172
169
-**PWM Period (Ts):** PWM Period is equal to 1/PWM switching frequency
173
170
174
171
**Motor Parameters:**
@@ -190,7 +187,7 @@ Enter the Motor Actual parameters and Generated parameters from tuning parameter
190
187
In the ‘Conf: [default]’ category window:
191
188
192
189
- Select the specific Compiler Toolchain from the available list of compilers. Please ensure MPLAB® XC16 Compiler supports the device dsPIC33CK256MP508. In this case “XC16(v1.70)” is selected. The compiler used for testing the firmware is listed in the section Software Tools Used for Testing the firmware.
193
-
- Select the Hardware Tool to be used for programming and debugging. In this case, “PKOB” is selected as the programmer from Connected Hardware Tools section.
190
+
- Select the Hardware Tool to be used for programming and debugging. In this case, “PKoB” is selected as the programmer from Connected Hardware Tools section.
194
191
195
192
- After selecting Hardware Tool and Compiler Toolchain, click button Apply
0 commit comments