Motor Control Starter Kit Information Sheet The Motor Control Starter Kit is designed to facilitate the development of low-cost motor control applications using PIC24 microcontrollers and dsPIC33F digital signal controllers. The kit includes a BLDC motor, a three-phase inverter, an on-board Debugger/Programmer, a user-configurable switch, a two-channel mTouchTM slider with LED indicators for motor speed display, and a 9V power supply. Installing MPLAB(R) IDE and C Compilers The MPLAB Integrated Development Environment (IDE) should be installed prior to using the Motor Control Starter Kit. While MPLAB IDE provides the assembler tools for development, most of the demos and code examples are written in the C language and require a C compiler to be installed. Microchip's MPLAB C Compiler seamlessly integrates into MPLAB IDE. Both the MPLAB IDE and MPLAB C compiler are free (see the note below) and are available for download at www.microchip.com/MPLAB and www.microchip.com/compilers, respectively. Note: Standard Evaluation (Free) - All optimization levels are enabled for 60 days, but then revert to optimization level 1 only. Code Examples and More Information Americas Asia/Pacific (Continued) Atlanta - 678-957-9614 Boston - 774-760-0087 Chicago - 630-285-0071 Cleveland - 216-447-0464 Dallas - 972-818-7423 Detroit - 248-538-2250 Indianapolis - 317-773-8323 Los Angeles - 949-462-9523 Phoenix - 480-792-7200 Santa Clara - 408-961-6444 Toronto - 905-673-0699 China - Chongqing - 86-23-8980-9588 China - Hangzhou - 86-571-2819-3180 China - Hong Kong SAR - 852-2401-1200 China - Nanjing- 86-25-8473-2460 China - Qingdao - 86-532-8502-7355 China - Shanghai - 86-21-5407-5533 China - Shenyang - 86-24-2334-2829 China - Shenzhen - 86-755-8203-2660 China - Wuhan - 86-27-5980-5300 China - Xiamen - 86-592-2388138 China - Xian - 86-29-8833-7252 China - Zhuhai - 86-756-3210040 India - Bangalore - 91-80-3090-4444 India - New Delhi - 91-11-4160-8631 India - Pune - 91-20-2566-1512 Japan - Yokohama - 81-45-471-6166 Korea - Daegu - 82-53-744-4301 Korea - Seoul - 82-2-554-7200 Malaysia - Kuala Lumpur - 60-3-6201-9857 Malaysia - Penang - 60-4-227-8870 Philippines - Manila - 63-2-634-9065 Singapore - 65-6334-8870 Taiwan - Hsin Chu - 886-3-6578-300 Taiwan - Kaohsiung - 886-7-213-7830 Taiwan - Taipei - 886-2-2500-6610 Thailand - Bangkok - 66-2-694-1351 Europe Austria - Wels - 43-7242-2244-39 Denmark - Copenhagen - 45-4450-2828 France - Paris - 33-1-69-53-63-20 Germany - Munich - 49-89-627-144-0 Italy - Milan - 39-0331-742611 Netherlands - Drunen - 31-416-690399 Spain - Madrid - 34-91-708-08-90 UK - Wokingham - 44-118-921-5869 Asia/Pacific Australia - Sydney - 61-2-9868-6733 China - Beijing - 86-10-8569-2100 China - Chengdu - 86-28-8665-5511 05/02/11 Microchip Technology Inc. * 2355 West Chandler Blvd. * Chandler, AZ 85224-6199 www.microchip.com The Microchip name and logo, the Microchip logo, and MPLAB are registered trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. All other trademarks mentioned herein are property of their respective companies. (c) 2011, Microchip Technology Incorporated, Printed in the U.S.A. All Rights Reserved. 08/10 DS51991A *DS51991A* For code examples and more information, please visit http://www.microchip.com/motor. From the Development Tools menu, click Development and Evaluation Boards and from the list select dsPIC Motor Control Starter Kit DM330015. Then, from the Download section, select code for the starter kit. You can also visit http//www.microchip.com/16bit: from the left navigation menu select Find Development Tools and then choose Motor Control Starter Kit from the list. From the Download section, select the code for the starter kit. Running and Debugging Applications After downloading the code example and installing the development tools, please use the following procedure to build and run your software: 1. Ensure the BLDC motor is properly connected to the Motor Control Starter Kit board and that the rotor is able to move freely. 2. Connect the 9V power supply to the Motor Control Starter Kit. 3. Connect the USB port on the board to a USB port on the development computer using a USB cable. This will power up the on-board Debugger/Programmer and connect it to the development computer. 4. Extract the Motor Control Starter Kit software from the archive file and load the software project into the development environment. 5. If using MPLAB 8.xx IDE, do the following; otherwise, skip to step 6: a) Select Programmer > Select Tool and then choose the appropriate tool. b) Build the project by selecting Project > Build All. c) Download your code to the DSC or MCU by selecting Programmer > Program. 6. If using the MPLAB X IDE, do the following: a) Select Run > Set Project Configuration > Customize. b) Select the required tool under Hardware Tools, and then click Apply followed by OK. c) Select Run > Run Project to download the code to the target device, and then click the Reset Release icon. 7. After the code is downloaded to the device, the USB connection can be removed. In Release mode, only the 9V power supply is needed. In Debug mode, both the 9V power supply and the USB connection must be used. 8. By pressing the S1 button, the motor will toggle between Run and Stop modes. If the rotor stops without pressing the button (due to external mechanical factors), it will try to restart on its own without requiring another button press. 9. Use the Capacitive Touch Slider to change the motor speed. The speed magnitude will be indicated by the three user LEDs on the board. Motor Control Starter Kit Information Sheet Application Hardware Schematics VIN1 S1 L1 1 3 2 4 10uH U5 5 VIN SW MBR0520L GND 2 SHDN FB LM27313 C18 R40 3 R41 13.3k 118k C20 220pF 4.7uF C19 22uF 1 2 3 4 5 6 7 GND2 8 9 10 11 12 13 14 R37 10k U6 C21 0.1uF C38 10uF C22 10uF R38 10k D4 Green R42 330R U4 AN2/RP0/CN4/RB0 AN3/RP1/CN5/RB1 AN4/RP2/CN6/RB2 AN5/RP3/CN7/RB3 VSS OSC1/CLKI/CN30/RA2 OSC2/CLKO/CN29/RA3 PGEC2/AN1/CN3/RA1 PGED2/AN0/CN2/RA0 MCLR AVDD AVSS PWM1L1/RP15/RB15 PWM1H1/RP14/RB14 PGED3/RP4/CN1/RB4 PGEC3/T1CK/CN0/RA4 VDD FLTB1 /RP5/CN27/RB5 FLTA1 /RP6/CN24/RB6 INT0/RP7/CN23/RB7 TCK/RP8/CN22/RB8 PWM1L2/RP13/RB13 PWM1H2/RP12/RB12 PWM1L3/RP11/RB11 PWM1H3/RP10/RB10 VCAP VSS TDO/RP9/CN21/RB9 * - Internal connection for comparator using PPS C15 C16 0.1uF 0.1uF 28 27 26 25 24 23 22 R36 10k 21 20 19 18 17 16 15 J4 1 2 3 4 5 6 DSPIC33FJ16MC102_28QFN C14 10uF +12V +12V C26 0.1uF SI4532DY 6 2 GND_Pad R39 51k 4 PWM1H1 1uF C24 0.1uF C25 7 U7:A 3 TC4428A R56 4.7k Q4:B D5 RED R44 470R Q4:A PWM1L1 GND3 4 TC4428A R57 4.7k +12V D7 RED R46 470R SI4532DY +12V C29 0.1uF 1uF SI4532DY C27 6 2 0.1uF C28 7 U8:A 3 TC4428A R59 4.7k R58 1R C30 0.1uF Q5:B R60 DNP C32 0.1uF Q5:A TC4428A +12V SI4532DY 7 3 R71 4.7k 2 R64 100K 4 U9 +12V 6 2 1 3 SI4532DY C36 0.1uF Motor Socket 1uF C34 0.1uF C35 R68 50m R65 1K R69 1K C33 56pF R66 1K R70 1K MOTOR_CURRENT1 5 R63 4.7k R62 0R 5 U8:B 3 + VDD 1 4 - VSS 2 4 C31 0.1uF R61 0R PWM1L2 PWM1H3 D6 RED R45 470R 5 U7:B PWM1H2 C23 0.1uF +12V 1 29 C17 10uF +12V1 D3 R43 10k M1_V R47 330R R67 1K R48 M2_V 10k R53 1.74k R49 330R R50 M3_V 10k R54 1.74k R52 330R R51 10k 5 6 R55 1.74k MCP6021 C37 33pF U10:A TC4428A Q6:B R72 100K Q6:A PWM1L3 4 5 U10:B R73 4.7k TC4428A SI4532DY GND4 DS51991A Motor Control Starter Kit Information Sheet Debugger Schematics J1 USB MINI-B +3.3V U2 D1 MBR0520L C9 C10 2.2uF MCP1727 R11 200K 0.1uF C11 2.2uF C12 D2 Green R10 0.01uF 2.2K R12 330R R13 0R GND1 Debugger Circuit USB_DUSB_D+ Debugger Circuit POWER_GOOD_PICKIT3 ICSP_MCLR_VPP_TARGET ICSP_PGEC_TARGET ICSP_PGED_TARGET DS51991A Mouser Electronics Authorized Distributor Click to View Pricing, Inventory, Delivery & Lifecycle Information: Microchip: DM330015