Microchip Technology DM330021-2 Data Sheet

Page of 44
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 
 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
).