background image

Running a BLDC Motor Using a Sensorless Algorithm

 2012 Microchip Technology Inc.

DS52080A-page 29

6.

Connect the 24V power supply to J2 or BP1-BP2. If the supply voltage is not 
equal to 24V, refer to 

Table 2-5

 to configure the power supply for the board.

7.

Download the internal op amp version of the code for the dsPIC33EP256MC506 
from the Microchip web site (

www.microchip.com

). It is available with the 

AN1299 application note.

8.

Unzip the file and open the project using MPLAB X IDE. Refer to the 

“MPLAB

®

 

X IDE User’s Guide”

 (DS52027) for more information about how to use MPLAB X 

IDE with a Microchip debugger/programmer.

9.

Click the 

Run Project

 icon on the MPLAB X IDE toolbar. MPLAB X IDE will build 

the project and program the target device. Ensure that the build and program 
process completes successfully.

10. Press S2 to run the motor.
11. Vary the motor’s speed with POT1. 
12. Press S2 again to stop the motor.

Note:

For more information on running BLDC motors using a dsPIC DSC or 
PIC24 MCU, refer to the following application notes, which are available 
from the Microchip web site:

• AN1299,

 “Single-Shunt Three-Phase Current Reconstruction Algorithm 

for Sensorless FOC of a PMSM”

 (DS01299)

• AN1160, “

Sensorless BLDC Control with Back-EMF Filtering Using a 

Majority Function

” (DS01160)

• AN1078, “

Sensorless Field Oriented Control of PMSM Motors using 

dsPIC30F or dsPIC33F Digital Signal Controllers

” (DS01078)

• AN1017, “

Sinusoidal Control of PMSM Motors with dsPIC30F DSC

” 

(DS01017)

The source code referred in these application notes is available from the 
Microchip web site (

www.microchip.com

).

Summary of Contents for dsPICDEM MCLV-2

Page 1: ...2012 Microchip Technology Inc DS52080A dsPICDEM MCLV 2 Development Board User s Guide...

Page 2: ...the U S A All other trademarks mentioned herein are property of their respective companies 2012 Microchip Technology Incorporated Printed in the U S A All Rights Reserved Printed on recycled paper ISB...

Page 3: ...2012 Microchip Technology Inc DS52080A page 3...

Page 4: ...dsPICDEM MCLV 2 Development Board User s Guide DS52080A page 4 2012 Microchip Technology Inc NOTES...

Page 5: ...view 14 Chapter 2 Hardware Overview 2 1 PIM Configuration 18 2 2 Board Connectors 20 2 3 Selecting a Power Supply for the Development Board 24 2 4 User Interface Hardware 24 Chapter 3 Running a BLDC M...

Page 6: ...dsPICDEM MCLV 2 Development Board User s Guide DS52080A page 6 2012 Microchip Technology Inc NOTES...

Page 7: ...gorithm This chapter describes how to run a sensored BLDC motor using a dsPIC DSC device Appendix A Schematics and Layout This appendix provides detailed circuit schematics of the dsPICDEM MCLV 2 Deve...

Page 8: ...Bold characters A dialog button Click OK A tab Click the Power tab N Rnnnn A number in verilog format where N is the total number of digits R is the radix and n is a digit 4 b0010 2 hF1 Text in angle...

Page 9: ...uide DS51025 This user s guide is a comprehensive guide that describes installation and features of Microchip s MPLAB Integrated Development Environment IDE as well as the editor and simulator functio...

Page 10: ...p customers current on Microchip products Subscribers will receive e mail notification whenever there are changes updates revisions or errata related to a specified product family or development tool...

Page 11: ...l Support Customers should contact their distributor representative or Field Application Engineer FAE for support Local sales offices are also available to help customers A listing of sales offices an...

Page 12: ...dsPICDEM MCLV 2 Development Board User s Guide DS52080A page 12 2012 Microchip Technology Inc NOTES...

Page 13: ...The board also has a three phase inverter bridge circuit The circuit drives a BLDC or PMSM motor using different control techniques without requiring any additional hardware Topics covered include Ov...

Page 14: ...al or external op amps and comparators Input Output Control Switches Two push buttons S2 and S3 Two LED indicators for debugging purposes D2 and D17 Reset push button S1 10 k potentiometer POT1 LED in...

Page 15: ...P1 JP3 Potential Divider S2 S3 J11 J12 J1 J4 J8 FAULT_MC Safe Current Limit IMOTOR2 IMOTOR_SUM HA HB HC V_M3 V_M2 V_M1 V_M1 V_M2 V_M3 J2 J6 M3 M1 M2 HA HB HC 5V Regulator Regulator Regulator Three Pha...

Page 16: ...dsPICDEM MCLV 2 Development Board User s Guide DS52080A page 16 2012 Microchip Technology Inc NOTES...

Page 17: ...er as follows The Gate drivers receive 15V power from a 15V regulator The CAN driver receives 5V power from a 5V regulator The LIN driver receives VBAT power from the LIN connector J1 A dsPIC DSC or P...

Page 18: ...dback signal Yes 22 PIM_V_M1 Voltage feedback signal Yes 23 PIM_IMOTOR_SUM DC bus current signal Yes 24 PIM_IMOTOR2 Phase current signal Yes 25 PIM_IMOTOR1 Phase current signal Yes 26 PGC Device progr...

Page 19: ...ART Receive No 71 N A N A No 72 USB_RX UART Receive connected directly to U7 No 73 PIM_IB IMOTOR1 shunt signal Yes 74 PIM_IA IMOTOR2 shunt signal Yes 75 VSS N A No 76 USB_TX UART Transmit connected di...

Page 20: ...BLE 2 2 BOARD CONNECTORS Number Designator Description 1 BP1 BP2 Auxiliary power supply connector 2 J1 LIN interface port 3 J2 Input power supply connector 4 J4 CAN interface port 5 J7 Motor power con...

Page 21: ...ming signal and passes it to the UART mod ule on the control device The LIN transceiver responds to a Transmit Enable from the control device by conditioning an output signal and placing it on the LIN...

Page 22: ...HOME Home signal feedback TABLE 2 4 TEST POINTS Test Points Description HA Hall A QEA feedback HB Hall B QEB feedback HC Hall C INDEX feedback HOME Home signal feedback PWM1H1 PWM output for leg 1 to...

Page 23: ...ard includes two matrix boards The Internal Op Amp Configuration Matrix Board configures the development board to use op amps that are internal to the PIC24 MCU or dsPIC DSC This matrix board bypasses...

Page 24: ...ity of the board Figure 2 3 shows the jumper settings and Table 2 6 lists these jumpers and their functions FIGURE 2 3 JUMPER SETTINGS TABLE 2 5 JUMPER SETTINGS FOR SELECTING A POWER SUPPLY J3 J6 J2 o...

Page 25: ...2 Connects current sense DC Bus to MONITOR_3 3 4 Connects voltage sense phase 3 to MONITOR_3 5 6 Connects Hall sensor interface HC to MONITOR_3 4 JP4 1 2 Connects USB receive line to Rx 3 4 Connects L...

Page 26: ...S2 S3 Push buttons these push buttons are connected to port pins When momentarily pressed the switch connects the respective port pin to Ground POT 10 k potentiometer it is connected to analog input...

Page 27: ...The algorithm is described in AN1299 Single Shunt Three Phase Current Reconstruction Algorithm for Sensorless FOC of a PMSM Topics covered include Operating Requirements dsPICDEM MCLV 2 Development B...

Page 28: ...nect the three phase 10 pole 24V Hurst motor AC300020 to J7 Since this is a sensorless algorithm the motor phase wires Red Black and White can be connected to M1 M2 and M3 in any order WARNING The dsP...

Page 29: ...E will build the project and program the target device Ensure that the build and program process completes successfully 10 Press S2 to run the motor 11 Vary the motor s speed with POT1 12 Press S2 aga...

Page 30: ...dsPICDEM MCLV 2 Development Board User s Guide DS52080A page 30 2012 Microchip Technology Inc NOTES...

Page 31: ...Figure A 3 dsPICDEM MCLV 2 Development Board Schematic Sheet 3 of 7 Figure A 4 dsPICDEM MCLV 2 Development Board Schematic Sheet 4 of 7 Figure A 5 dsPICDEM MCLV 2 Development Board Schematic Sheet 5...

Page 32: ...BOARD SCHEMATIC SHEET 1 OF 7 D17 YELLOW D2 YELLOW 23 20 17 14 11 8 5 2 28 31 34 37 40 43 46 49 24 25 18 19 21 22 12 13 15 16 6 7 9 10 1 3 4 26 27 29 30 32 33 35 36 38 39 41 42 44 45 47 48 50 J14 U9 10...

Page 33: ...rochip Technology Inc DS52080A page 33 FIGURE A 2 dsPICDEM MCLV 2 DEVELOPMENT BOARD SCHEMATIC SHEET 2 OF 7 14 13 12 D 5 6 7 B 8 9 10 C 1 2 3 A Note 1 All resistors on this page must be 1 2 Supply Volt...

Page 34: ...80A page 34 2012 Microchip Technology Inc FIGURE A 3 dsPICDEM MCLV 2 DEVELOPMENT BOARD SCHEMATIC SHEET 3 OF 7 470uF C53 2 LIN 7 HO 4 LO 1 HIN 3 COM 5 VCC 8 VB 6 VS 2 LIN 7 HO 4 LO 1 HIN 3 COM 5 VCC 8...

Page 35: ...Schematics and Layout 2012 Microchip Technology Inc DS52080A page 35 FIGURE A 4 dsPICDEM MCLV 2 DEVELOPMENT BOARD SCHEMATIC SHEET 4 OF 7...

Page 36: ...dsPICDEM MCLV 2 Development Board User s Guide DS52080A page 36 2012 Microchip Technology Inc FIGURE A 5 dsPICDEM MCLV 2 DEVELOPMENT BOARD SCHEMATIC SHEET 5 OF 7...

Page 37: ...Schematics and Layout 2012 Microchip Technology Inc DS52080A page 37 FIGURE A 6 dsPICDEM MCLV 2 DEVELOPMENT BOARD SCHEMATIC SHEET 6 OF 7...

Page 38: ...dsPICDEM MCLV 2 Development Board User s Guide DS52080A page 38 2012 Microchip Technology Inc FIGURE A 7 dsPICDEM MCLV 2 DEVELOPMENT BOARD SCHEMATIC SHEET 7 OF 7...

Page 39: ...TOR_2 10 MONITOR_3 11 VBUS 12 IMOTOR_SUM 13 IMOTOR1 14 IMOTOR2 15 POT 16 17 18 19 20 21 22 V_M1 23 V_M2 24 V_M3 25 PIM_V_M3 26 PIM_V_M2 27 PIM_V_M1 28 PIM_GEN2 29 PIM_GEN1 30 31 32 PIM_FLT_OUT2 33 PIM...

Page 40: ...ITOR_1 9 MONITOR_2 10 MONITOR_3 11 VBUS 12 IMOTOR_SUM 13 IMOTOR1 14 IMOTOR2 15 POT 16 17 18 19 20 21 22 V_M1 23 V_M2 24 V_M3 25 PIM_V_M3 26 PIM_V_M2 27 PIM_V_M1 28 PIM_GEN2 29 PIM_GEN1 30 31 32 PIM_FL...

Page 41: ...Schematics and Layout 2012 Microchip Technology Inc DS52080A page 41 FIGURE A 10 dsPICDEM MCLV 2 DEVELOPMENT BOARD LAYOUT TM...

Page 42: ...dsPICDEM MCLV 2 Development Board User s Guide DS52080A page 42 2012 Microchip Technology Inc NOTES...

Page 43: ...d 16 24 VDC Power supply connected to J2 or BP1 BP2 J3 is installed and VR3 is removed 10 16 VDC TABLE B 2 DC OUTPUT RATING Parameter Min Typical Max Unit Voltage 0 24 48 VDC Current 0 10 15 A Power R...

Page 44: ...7 5533 Fax 86 21 5407 5066 China Shenyang Tel 86 24 2334 2829 Fax 86 24 2334 2393 China Shenzhen Tel 86 755 8203 2660 Fax 86 755 8203 1760 China Wuhan Tel 86 27 5980 5300 Fax 86 27 5980 5118 China Xia...

Reviews: