Motor Control Starter Kit User’s Guide © 2011 Microchip Technology Inc.
Note the following details of the code protection feature on Microchip devices: • Microchip products meet the specification contained in their particular Microchip Data Sheet. • Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the intended manner and under normal conditions. • There are dishonest and possibly illegal methods used to breach the code protection feature.
MOTOR CONTROL STARTER KIT USER’S GUIDE Table of Contents Chapter 1. Introduction 1.1 Kit Contents .................................................................................................. 11 1.2 Electrical Specifications ................................................................................ 12 1.3 Starter Kit Functionality and Features .......................................................... 12 Chapter 2. Software Description 2.1 Motor Control Application ..............................
Motor Control Starter Kit User’s Guide NOTES: DS75015A-page 4 © 2011 Microchip Technology Inc.
MOTOR CONTROL STARTER KIT USER’S GUIDE Preface NOTICE TO CUSTOMERS All documentation becomes dated, and this manual is no exception. Microchip tools and documentation are constantly evolving to meet customer needs, so some actual dialogs and/or tool descriptions may differ from those in this document. Please refer to our web site (www.microchip.com) to obtain the latest documentation available. Documents are identified with a “DS” number.
Motor Control Starter Kit User’s Guide CONVENTIONS USED IN THIS GUIDE This manual uses the following documentation conventions: DOCUMENTATION CONVENTIONS Description Represents Examples Arial font: Italic characters Initial caps Referenced books MPLAB® IDE User’s Guide Emphasized text ...is the only compiler...
Preface WARRANTY REGISTRATION Please complete the enclosed Warranty Registration Card and mail it promptly. Sending in the Warranty Registration Card entitles you to receive new product updates. Interim software releases are available at the Microchip web site. RECOMMENDED READING This user’s guide describes how to use the Motor Control Starter Kit. The following are available and recommended as supplemental reference resources.
Motor Control Starter Kit User’s Guide MPLAB® C Compiler for PIC24 MCUs and dsPIC® DSCs User’s Guide (DS51284) This document details the use of Microchip’s MPLAB C Compiler for PIC24 MCUs and dsPIC DSC devices to develop an application. The MPLAB C Compiler is a GNU-based language tool, based on source code from the Free Software Foundation (FSF). For more information about the FSF, visit www.fsf.org.
Preface CUSTOMER SUPPORT Users of Microchip products can receive assistance through several channels: • • • • Distributor or Representative Local Sales Office Field Application Engineer (FAE) Technical 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 and locations is included in the back of this document.
Motor Control Starter Kit User’s Guide NOTES: DS75015A-page 10 © 2011 Microchip Technology Inc.
MOTOR CONTROL STARTER KIT USER’S GUIDE Chapter 1. Introduction Thank you for purchasing a Motor Control Starter Kit from Microchip Technology. The board provided in the kit is intended to introduce and demonstrate the capabilities and features of the low-cost 16-bit Motor Control and mTouch™ families of devices. In addition, the Motor Control Starter Kit includes an on-board programmer/debugger, which eliminates the need for an additional programmer or hardware interface.
Motor Control Starter Kit User’s Guide 1.2 ELECTRICAL SPECIFICATIONS TABLE 1-1: DC INPUT RATING (J3) Parameter Typical Maximum Unit 9 12 VDC Maximum Unit Power supply connected to J3 TABLE 1-2: DC OUTPUT RATING (J5) Parameter Typical Voltage 12 12 VDC Peak Current 0.2 0.8 A Power Rating 2.5 10 W TABLE 1-3: BLDC MOTOR (SHINANO DR-29312) MANUFACTURER SPECIFICATIONS Parameter Value Unit 12 VDC Rated Torque 6 mNm Rated Speed 1400 RPM Rated Current 0.
Introduction FIGURE 1-1: MOTOR CONTROL STARTER KIT BOARD (TOP) 10 11 3 9 1 12 4 5 2 7 8 1.3.2 6 Bottom Assembly The bottom assembly of the board includes these key features, as indicated in Figure 1-2: 1. 2. 3. FIGURE 1-2: Power supply regulators On-board programmer/debugger Programmer/debugger USB connector (J1) MOTOR CONTROL STARTER KIT BOARD (BOTTOM) 3 1 2 © 2011 Microchip Technology Inc.
Motor Control Starter Kit User’s Guide NOTES: DS75015A-page 14 © 2011 Microchip Technology Inc.
MOTOR CONTROL STARTER KIT USER’S GUIDE Chapter 2. Software Description The starter kit tutorial application demonstrates how to successfully integrate a noise sensitive mTouch application within a standard Motor Control environment. This chapter contains the following topics: • Motor Control Application • mTouch Capacitive Slider Application • Integrating Motor Control and mTouch 2.
Motor Control Starter Kit User’s Guide The numerical value for each channel is filtered to remove noise, and then, based on predefined thresholds, the position of the user’s finger on the slider is determined. Movements over the slider can also be detected by monitoring both channels over a period of time. 2.
MOTOR CONTROL STARTER KIT USER’S GUIDE Chapter 3. Hardware This chapter describes the hardware for the Motor Control Starter Kit and includes the following topics: • • • • • • Programmer/Debugger Signal Configuration Programmer/Debugger Components Application Components Board Connectors Indicators and Human Interfaces Figure 3-1 shows a high-level block diagram, which details the main functions of the starter kit.
Motor Control Starter Kit User’s Guide The powerful PWM module allows easy control over the 3-phase BLDC motor. The PWM module features three complementary output pairs, hardware Fault shutdown, programmable dead time, among others. A standard 3-phase inverter is used to interface the device and the motor. Three ADC channels provide information of the motor’s BEMF by reading the voltage on the motor windings. Three resistor networks scale the voltage in the range needed by the ADC module.
Hardware 3.2 SIGNAL CONFIGURATION Table 3-1 provides a full list of the dsPIC33FJ16MC102 DSC connections to the starter kit’s signals, and a brief functional description of the pins used in the demonstration application. TABLE 3-1: dsPIC33FJ16MC102 DSC CONFIGURATION DETAILS dsPIC33FJ16MC102 Labels on the Motor Control Starter Kit Board Description/Function Pin Number Pin Name MOTOR_CURRENT 1 AN2/RP0/CN4/RB0 Analog and comparator input. M1_V 2 AN3/RP1/CN5/RB1 Analog Phase 1 voltage.
Motor Control Starter Kit User’s Guide 3.3 PROGRAMMER/DEBUGGER COMPONENTS Table 3-2 describes the programmer/debugger components that are available on the Motor Control Starter Kit (see Figure 1-1 and Figure 1-2 for component locations).
Hardware TABLE 3-3: APPLICATION COMPONENTS (CONTINUED) Component Label Figure # Item # Description BEMF Feedback N/A 1-1 6 A six resistor network consisting in three voltage dividers is connected to the motor windings to measure the BEMF of the motor, providing the feedback needed for driving the motor in sensorless mode. Based on the ADC measurements, the motor virtual neutral point is reconstructed in software.
Motor Control Starter Kit User’s Guide 3.6 INDICATORS AND HUMAN INTERFACES Table 3-5 describes the user interaction interfaces available on the starter kit (see Figure 1-1 and Figure 1-2 for component locations). TABLE 3-5: INDICATORS AND HUMAN INTERFACES Label Hardware Element Description S1 Push button, which is connected to a port pin. When momentarily pressed, the switch connects the respective port pin to Ground.
MOTOR CONTROL STARTER KIT USER’S GUIDE Appendix A. Layout, Schematics, and Bill of Materials A.1 STARTER KIT BOARD LAYOUT FIGURE A-1: STARTER KIT BOARD LAYOUT (TOP) © 2011 Microchip Technology Inc.
Motor Control Starter Kit User’s Guide FIGURE A-2: DS75015A-page 24 STARTER KIT BOARD LAYOUT (BOTTOM) © 2011 Microchip Technology Inc.
DEBUGGER HARDWARE SCHEMATICS FIGURE A-3: POWER DISTRIBUTION/SWITCHING J1 USB MINI-B +3.3V U2 D1 MBR0520L C9 C10 2.2uF MCP1727 R13 0R GND1 Debugger Circuit USB_DDS75015A-page 25 USB_D+ Debugger Circuit POWER_GOOD_PICKIT3 ICSP_MCLR_VPP_TARGET ICSP_PGEC_TARGET ICSP_PGED_TARGET R11 200K 0.1uF C11 2.2uF C12 D2 Green R10 0.01uF 2.2K R12 330R Layout, Schematics, and Bill of Materials © 2011 Microchip Technology Inc. A.
Motor Control Starter Kit User’s Guide A.3 APPLICATION SCHEMATICS FIGURE A-4: TARGET POWER VIN1 L1 10uH U5 5 VIN +12V MBR0520L R39 51k 4 SHDN 2 GND C17 10uF +12V1 D3 SW 1 LM27313 C18 R40 FB 3 C19 22uF 4.7uF R41 13.3k 118k C20 220pF GND2 U6 C21 0.1uF C38 10uF FIGURE A-5: C22 10uF D4 Green R42 330R MOTOR SOCKET 1 2 3 4 5 R48 M1_V M2_V R51 M3_V R47 10k R49 10k R52 10k 330R R53 330R R54 330R R55 1.74k DS75015A-page 26 R50 1.74k 6 1.
dsPIC33FJ16MC102 DIGITAL SIGNAL CONTROLLER U4 1 28 2 27 3 26 4 25 5 24 6 23 7 22 dsPIC33FJ16MC102 21 9 20 10 19 11 18 12 17 GND_Pad R38 10k 8 13 14 *Internal connection for comparator using PPS C15 0.1uF 16 15 29 R37 10k C16 0.1uF C14 10uF R36 10k DS75015A-page 27 Layout, Schematics, and Bill of Materials © 2011 Microchip Technology Inc.
MOTOR CONTROL LOGIC +12V +12V PWM1H1 C26 0.1uF 6 2 3 R56 4.7k 7 1uF C24 0.1uF C25 1uF SI4532DY C27 0.1uF C28 SI4532DY U7:A TC4428A Q4:B Q4:A PWM1L1 4 R57 4.7k PWM1H2 5 U7:B TC4428A +12V +12V C29 0.1uF 2 6 3 R59 4.7k SI4532DY 7 U8:A TC4428A R58 1R Q5:B R60 DNP C32 0.1uF Q5:A C30 0.1uF R61 0R PWM1L2 +12V PWM1H3 R62 0R SI4532DY +12V C36 0.1uF © 2011 Microchip Technology Inc. 2 6 R64 100K 7 SI4532DY 1uF C34 0.
Layout, Schematics, and Bill of Materials FIGURE A-8: CAPACITIVE TOUCH SLIDER GND3 FIGURE A-9: PUSH BUTTON R43 S1 1 3 2 4 10k C23 0.1uF FIGURE A-10: ICSP TARGET J4 1 2 3 4 5 6 © 2011 Microchip Technology Inc.
Motor Control Starter Kit User’s Guide FIGURE A-11: USER-PROGRAMMABLE LEDs D5 RED DS75015A-page 30 D6 RED D7 RED R44 R45 R46 470R 470R 470R © 2011 Microchip Technology Inc.
Layout, Schematics, and Bill of Materials A.4 BILL OF MATERIALS (BOM) TABLE A-1: Qty. MOTOR CONTROL STARTER KIT BILL OF MATERIALS (BOM) Reference Description CAP CER 10000PF 16V 10% X7R 0603 Manufacturer Manufacturer Part Number 1 C12 Murata GRM188R71C103KA01D 18 C2, C3, C4, C8, C10, CAP .10UF 16V CERAMIC X7R 0603 C15, C16, C21,C23, C25, C26, C28, C29, C30, C31, C32, C35, C36 Yageo CC0603KRX7R7BB104 5 C7, C13, C24, C27, C34 CAP 1.
Motor Control Starter Kit User’s Guide TABLE A-1: Qty. MOTOR CONTROL STARTER KIT BILL OF MATERIALS (BOM) (CONTINUED) Reference Description Manufacturer Manufacturer Part Number 3 R53,R54, R55 RES 1.
NOTES: © 2011 Microchip Technology Inc.
Worldwide Sales and Service AMERICAS ASIA/PACIFIC ASIA/PACIFIC EUROPE Corporate Office 2355 West Chandler Blvd. Chandler, AZ 85224-6199 Tel: 480-792-7200 Fax: 480-792-7277 Technical Support: http://www.microchip.com/ support Web Address: www.microchip.