DM163029 Microchip Technology, DM163029 Datasheet

BOARD PICDEM FOR MECHATRONICS

DM163029

Manufacturer Part Number
DM163029
Description
BOARD PICDEM FOR MECHATRONICS
Manufacturer
Microchip Technology
Datasheets

Specifications of DM163029

Main Purpose
Power Management, Motor Control
Embedded
*
Utilized Ic / Part
*
Primary Attributes
*
Secondary Attributes
*
Processor To Be Evaluated
PIC16F917
Interface Type
RS-232
Silicon Manufacturer
Microchip
Silicon Core Number
DM163029
Silicon Family Name
PICDEM
Kit Contents
PICDEM Mechatronics Board, MCU Samples, Software And Cables
Rohs Compliant
Yes
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
DM163029
Manufacturer:
Microchip Technology
Quantity:
135
Part Number:
DM163029
Manufacturer:
MICROCHIP
Quantity:
12 000
PICDEM™ Mechatronics
Demonstration Board
User’s Guide
© 2006 Microchip Technology Inc.
DS51557C

Related parts for DM163029

DM163029 Summary of contents

Page 1

... PICDEM™ Mechatronics © 2006 Microchip Technology Inc. Demonstration Board User’s Guide DS51557C ...

Page 2

... Select Mode, Smart Serial, SmartTel, Total Endurance, UNI/O, WiperLock and ZENA are trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. SQTP is a service mark of Microchip Technology Incorporated in the U.S.A. All other trademarks mentioned herein are property of their respective companies. ...

Page 3

... Project 8: PC Interface Using the USART .............................................................. 39 2.3.9 Project 9: Brushed DC Motor Control Using the ECCP .......................................... 42 Chapter 3. Troubleshooting 3.1 Introduction ................................................................................................... 47 3.2 Common Problems ....................................................................................... 47 3.2 3.2.2 No Voltage On Drive Stage ....................................................................... 47 © 2006 Microchip Technology Inc. TM PICDEM DEMO BOARD USER’S GUIDE Table of Contents ® IDE ................................................................. 20 Is Below 5V ........................................................................................ 47 MECHATRONICS ...

Page 4

... Board Is Non-Functional When Microcontrollers Are Installed In Both U1 And U2 .............................................................................................48 3.2.7 Optical Interrupter Is Not Providing The Expected Feedback ....................48 3.2.8 Serial Communication Does Not Appear To Be Working ..........................48 Appendix A. Hardware Schematics A.1 Introduction .................................................................................................. 49 Appendix B. LCD Segment Mapping Worksheet B.1 Introduction .................................................................................................. 57 Worldwide Sales and Service .....................................................................................60 DS51557C-page iv © 2006 Microchip Technology Inc. ...

Page 5

... Warranty Registration • Recommended Reading • The Microchip Web Site • Development Systems Customer Notification Service • Customer Support • Document Revision History • Troubleshooting © 2006 Microchip Technology Inc. PICDEM DEMO BOARD USER’S GUIDE Preface NOTICE TO CUSTOMERS TM MECHATRONICS ® ...

Page 6

... PICDEM Mechatronics Demo Board. • Appendix A: Hardware Schematics – Illustrates the PICDEM Mechatronics Demo Board hardware schematic diagrams. • Appendix B: LCD Segment Mapping Worksheet – Provides the LCD Segment Mapping Worksheet. DS51557C-page 2 © 2006 Microchip Technology Inc. ...

Page 7

... Interface (Arial font): Underlined, italic text with right arrow Bold characters Characters in angle brackets < > Documents (Arial font): Italic characters © 2006 Microchip Technology Inc. Represents Sample code Filenames and paths Variables Optional arguments Choice of mutually exclusive argu- ments selection Type of data ...

Page 8

... Consult this document for more information pertaining to the installation and features of the MPLAB Integrated Development Environment (IDE) Software. Mechatronics Design Center The Mechatronics Design Center (www.microchip.com\mechatronics) provides a wealth of information on design applications involving Mechatronics. All documentation ® Adobe Acrobat DS51557C-page 4 ® (pdf) format. © 2006 Microchip Technology Inc. ...

Page 9

... MPLAB IDE, MPLAB SIM simulator, MPLAB IDE Project Manager and general editing and debugging features. • Programmers – The latest information on Microchip programmers. These include the MPLAB PM3 and PRO MATE Plus and PICkit © 2006 Microchip Technology Inc. ® II device programmers and the PICSTART ™ development programmers. ...

Page 10

... Initial Release of this Document. Revision B (June 2005) • Changed PIC Revision C (September 2006) • Changed AN0 to C1- • Changed • Changed J12 to J13 TROUBLESHOOTING See Chapter 3 for information on common problems. DS51557C-page 6 ® ® Communicator to PIC MCU Communicator. © 2006 Microchip Technology Inc. ...

Page 11

... The PICDEM™ Mechatronics Development Kit Contents • The PICDEM™ Mechatronics Layout • Required Tools • PICDEM™ Mechatronics Setup • General PICDEM™ Mechatronics Information © 2006 Microchip Technology Inc. TM PICDEM MECHATRONICS DEMO BOARD USER’S GUIDE DS51557C-page 7 ...

Page 12

... LED D0 as you turn the potentiometer. DS51557C-page 8 (0.75 amp minimum) supply using J9 (see note below) DC (0.75 amp minimum) supply to the P21 and P20 screw DC battery to the battery connector. DC (1.2 amp minimum) supply to TP2 or TP3. DC © 2006 Microchip Technology Inc. ...

Page 13

... FIGURE 1-1: © 2006 Microchip Technology Inc. PICDEM™ Mechatronics QUICK BOARD SETUP DS51557C-page 9 ...

Page 14

... The jumpers connect between the headers on either side of the microcontroller and the header pins next to the respective components on the board. The components on the board are labeled in Figure 1-2. DS51557C-page 10 ® device © 2006 Microchip Technology Inc. ...

Page 15

... FIGURE 1-2: © 2006 Microchip Technology Inc. PICDEM™ Mechatronics PICDEM MECHATRONICS DEMO BOARD HARDWARE DS51557C-page 11 ...

Page 16

... Clear the Fault by pressing SW5 (CLR FAULT) switch. The board is now properly configured for the projects. DS51557C-page (0.75 amp minimum) supply via J9. The connector’s polarity DC (0.75 amp minimum) supply to the P21 and P20 screw DC battery to the battery connector. DC (1.2 amp minimum) supply to TP2 or TP3. DC © 2006 Microchip Technology Inc. ...

Page 17

... FIGURE 1-3: FIGURE 1-4: © 2006 Microchip Technology Inc. PICDEM™ Mechatronics CONNECTING THE MPLAB ICD 2 TO THE PICDEM MECHATRONICS DEMO BOARD CONNECTING THE PICkit™ THE PICDEM MECHATRONICS DEMO BOARD DS51557C-page 13 ...

Page 18

... Connect the LEDs as shown in Figure 1-5. For instance suspected that the STATUS register is not being set appropriately, move the STATUS value into PORTC. If PORTC is attached as shown in Figure 1-5, the LEDs will show the value of STATUS. DS51557C-page 14 DC © 2006 Microchip Technology Inc. ...

Page 19

... Connecting a shunt between the bottom two pins (TX and RX) allows the user to transmit and receive serial communication via one pin (jumper between the microcontroller and the TX/RX pin on JP2). © 2006 Microchip Technology Inc. PICDEM™ Mechatronics CONNECTING PORTC PINS TO LEDS FOR DEBUGGING ® ...

Page 20

... J15 (CURRENT SENSE). At this pin, the voltage is equal to current ± 10%. For instance motor is being driven and it is drawing 0.9 amps, the voltage at the header is 0.9 volts (± 10%). DS51557C-page 16 , the Back EMF must be scaled down into a range DC © 2006 Microchip Technology Inc. ...

Page 21

... On these jumpers, the pins are connected in pairs horizontally. This allows one pin to be used for jumping to/from the microcontroller (using a wire jumper) and the other pin for probing the circuit with test equipment. © 2006 Microchip Technology Inc. PICDEM™ Mechatronics HEADER/JUMPER FUNCTIONS ...

Page 22

... TM PICDEM Mechatronics Demo Board User’s Guide NOTES: DS51557C-page 18 © 2006 Microchip Technology Inc. ...

Page 23

... Please reference these documents while exploring each of the projects. Note: See Section 1.7 “PICDEM™ Mechatronics Setup” for instructions on how to setup the board to its “initial” condition prior to doing projects. © 2006 Microchip Technology Inc. TM PICDEM MECHATRONICS DEMO BOARD USER’S GUIDE ® ...

Page 24

... Project 6: Brushed DC Speed Control with Back EMF Feedback • Project 7: Stepper Motor Control; Single Stepping, Half Stepping and • Project 8: PC Interface Using the USART PIC16F690 Project: • Project 9: Brushed DC Motor Control Using the ECCP DS51557C-page 20 ® IDE PROJECT WINDOW Microstepping © 2006 Microchip Technology Inc. ...

Page 25

... Toggle a LED when a switch is pushed. Applicable Technical Documents PICkit 1™ Flash Starter Kit User’s Guide (DS40051): Exercise 2 Jumper Configuration • RD7 (J10 (J14) • RA0 (J13) to SW2 (J4) FIGURE 2-2: FIGURE 2-3: © 2006 Microchip Technology Inc. PROJECT 1: JUMPER DIAGRAM PROJECT 1: SCHEMATIC PIC16F917 ...

Page 26

... In this project that function is toggling a LED. Note: See Section 2.2 “Loading Projects in MPLAB the source files for this project and all subsequent projects. DS51557C-page 22 ® IDE” for the location of © 2006 Microchip Technology Inc. ...

Page 27

... Implement software hysteresis to stabilize the comparator output. Applicable Technical Documents ® PICmicro Comparator Tips ‘n Tricks (DS41215) Jumper Configuration • C1- (J13) to LIGHT (J4) • C1+ (J13) to POT1 (J4) • RD7 (J10 (J14) FIGURE 2-4: © 2006 Microchip Technology Inc. Example Projects PROJECT 2: JUMPER DIAGRAM DS51557C-page 23 ...

Page 28

... Refer to the Comparator Tips ‘n Tricks pamphlet included on the CD in this kit for more information on comparators. DS51557C-page 24 PROJECT 2: SCHEMATIC V DD PIC16F917 DD 11/32 V Light Sensor R31 C1- BAT 4 1 kΩ GND TSL251RD 5 C1 R10 POT1 10 kΩ 1 kΩ R36 30 RD7 270 Ω D0 12/ © 2006 Microchip Technology Inc. ...

Page 29

... Gain knowledge about the LCD module and using the LCD module worksheet. Applicable Technical Documents Precision Temperature-to-Voltage Converter (TC1047/A) Data Sheet (DS21498) Jumper Configuration • AN0 (J13) to TEMP (J4) FIGURE 2-6: FIGURE 2- C24 μF 0.1 © 2006 Microchip Technology Inc. PROJECT 3: JUMPER DIAGRAM PROJECT 3: SCHEMATIC V DD PIC16F917 Temp. 11/32 Sensor ...

Page 30

... Mechatronics Schematic (see Appendix A. “Hardware Schematics” for the schematic). In the LCD source code provided in this project, you can see that the information in this worksheet has been converted into #define statements for each of the segments. DS51557C-page 26 ® microcontroller in applications that © 2006 Microchip Technology Inc. ...

Page 31

... The reason the PICDEM Mechatronics Demo Board strayed from good design practice was to give you the option to use pins RA7 and RA6 for other functions. © 2006 Microchip Technology Inc. Example Projects PROJECT 4: JUMPER DIAGRAM DS51557C-page 27 ...

Page 32

... PROJECT 4: SCHEMATIC V DD 11/32 PIC16F917 13 COM T1OSI C35 22 pF SEG 14 T1OSO C34 kΩ RA0 RA3 1 kΩ 3 RA1 kΩ kΩ 15 kHz. This makes it very easy to convert LCD1 X Common pins X Segment pins VIM-332- kΩ SW4 kΩ 12/31 © 2006 Microchip Technology Inc. ...

Page 33

... AN0 (J13) to POT1 (J4) • RC5 (J10) to Optical Interrupter (J7) • Attach the motor leads to DRIVE1 (P9) and DRIVE2 (P10). • J2 and J3 should be unpopulated (no shunts present). • Connect the right and center pins of JP8 using a shunt. © 2006 Microchip Technology Inc. Example Projects DS51557C-page 29 ...

Page 34

... TM PICDEM Mechatronics Demo Board User’s Guide FIGURE 2-10: DS51557C-page 30 PROJECT 5: JUMPER DIAGRAM © 2006 Microchip Technology Inc. ...

Page 35

... Note: The optical interrupter circuit is susceptible to interference from outside infrared light sources (i.e., incandescent lights, sunlight, etc.). It may be necessary to cover the optical sensor to obtain an accurate reading. © 2006 Microchip Technology Inc. PROJECT 5: SCHEMATIC V DD PIC16F917 ...

Page 36

... CCP2 (J10 (J1) • AN0 (J13) to POT1 (J4) • AN1 (J13) to BACK EMF (J16) • Attach the motor leads to DRIVE1 (P9) and DRIVE2 (P10). • J2 and J3 should be unpopulated. • Connect the right and center pins of JP8 using a shunt. DS51557C-page 32 © 2006 Microchip Technology Inc. ...

Page 37

... FIGURE 2-12: © 2006 Microchip Technology Inc. Example Projects PROJECT 6: JUMPER DIAGRAM DS51557C-page 33 ...

Page 38

... V DD R10 SEG X 2 AN0 C26 1000 pF R32 30 RD7 7 AN4 1 kΩ C36 1000 pF 21 CCP2 12/ Simplified circuit shows equivalent functionality LCD1 Common pins Segment pins VIM-332- U11:B 10 kΩ Back EMF Motor U10:A 10 kΩ © 2006 Microchip Technology Inc. ...

Page 39

... Connect the ORANGE lead of the stepper motor to Drive 2 (P10). • Connect the RED lead of the stepper motor to Drive 3 (P12). • Connect the YELLOW lead of the stepper motor to Drive 4 (P11). • Connect the right and center pins of JP8 using a shunt. © 2006 Microchip Technology Inc. Example Projects DS51557C-page 35 ...

Page 40

... TM PICDEM Mechatronics Demo Board User’s Guide FIGURE 2-14: DS51557C-page 36 PROJECT 7: JUMPER DIAGRAM © 2006 Microchip Technology Inc. ...

Page 41

... FIGURE 2-15: © 2006 Microchip Technology Inc. Example Projects PROJECT 7: SCHEMATIC DS51557C-page 37 ...

Page 42

... Finally, the current in the motor windings is being controlled in a way that prevents the motor from running outside its rated current, thereby eliminating the excess heat associated with half stepping. The drawback to microstepping is that the drive circuitry is more complex. DS51557C-page 38 © 2006 Microchip Technology Inc. ...

Page 43

... Jumper Configuration • Make sure there are no jumpers or shunts on JP2. • RD7 (J10 (J14) • Connect a serial cable between the board and PC FIGURE 2-16: © 2006 Microchip Technology Inc. Example Projects ® MCU Communicator GUI to manipulate the I/O on the ® USART Application Note, AN774 ...

Page 44

... C17 0.1 μ C20 0.1 μF 5 R60 11 14 300 Ω C17 0.1 μ GND R61 MAX3232CUE 300 Ω ® MCU Communicator GUI in the PIC MCU Communicator folder in ® PIC MCU COMMUNICATOR INTERFACE DD PIC16F917 11/ R36 RD7 270 Ω 12/ © 2006 Microchip Technology Inc. ...

Page 45

... RS-232 communication to be free from errors on different microcontrollers and over temperature variations. The PIC MCU Communicator GUI is included in this project as an example GUI. However also a great tool for debugging. Experiment with using the GUI to setup other peripherals on the microcontroller. © 2006 Microchip Technology Inc. Example Projects DS51557C-page 41 ...

Page 46

... AN2 (J5) to POT1 (J4) • RA5 (J6) to SW2 (J4) • Make sure there are no shunts (two pin jumpers) on J2. • Attach the Brushed DC motor leads to DRIVE1 (P9) and DRIVE2 (P10). • Connect the right and center pins of JP8 using a shunt. DS51557C-page 42 © 2006 Microchip Technology Inc. ...

Page 47

... FIGURE 2-19: © 2006 Microchip Technology Inc. Example Projects PROJECT 9: JUMPER DIAGRAM DS51557C-page 43 ...

Page 48

... TM PICDEM Mechatronics Demo Board User’s Guide FIGURE 2-20: DS51557C-page 44 PROJECT 9: SCHEMATIC © 2006 Microchip Technology Inc. ...

Page 49

... MOSFETs in the full-bridge circuit are turned on and off, in relation to one another. This is done in order to automatically account for the MOSFET turn-on and turn-off times. Automatic Shutdown allows you to define the shutdown state of the ECCP when a shutdown event occurs. © 2006 Microchip Technology Inc. Example Projects DS51557C-page 45 ...

Page 50

... TM PICDEM Mechatronics Demo Board User’s Guide NOTES: DS51557C-page 46 © 2006 Microchip Technology Inc. ...

Page 51

... Hardware is in place to ensure the N-channel and P-channel MOSFETs on a given Drive are not turned on at the same time. However, if you are switching the N-channel MOSFET rapidly possible for both MOSFETs the same time. © 2006 Microchip Technology Inc. TM PICDEM DEMO BOARD USER’S GUIDE ...

Page 52

... Serial Communication Does Not Appear To Be Working If using the USART on the PIC16F690 or PIC16F917, note that the TX and RX pins are already connected. Make sure there is no shunt present on JP2. DS51557C-page 48 RELEASE FROM RESET BUTTON © 2006 Microchip Technology Inc. ...

Page 53

... Appendix A. Hardware Schematics A.1 INTRODUCTION This appendix contains the PICDEM™ Mechatronics Board Schematic Diagram. FIGURE A-1: © 2006 Microchip Technology Inc. TM PICDEM MECHATRONICS DEMO BOARD USER’S GUIDE SCHEMATIC DIAGRAM (PAGE DS51557C-page 49 ...

Page 54

... TM PICDEM Mechatronics Demo Board User’s Guide FIGURE A-2: DS51557C-page 50 SCHEMATIC DIAGRAM (PAGE © 2006 Microchip Technology Inc. ...

Page 55

... FIGURE A-3: © 2006 Microchip Technology Inc. Hardware Schematics SCHEMATIC DIAGRAM (PAGE DS51557C-page 51 ...

Page 56

... TM PICDEM Mechatronics Demo Board User’s Guide FIGURE A-4: DS51557C-page 52 SCHEMATIC DIAGRAM (PAGE © 2006 Microchip Technology Inc. ...

Page 57

... FIGURE A-5: © 2006 Microchip Technology Inc. Hardware Schematics SCHEMATIC DIAGRAM (PAGE DS51557C-page 53 ...

Page 58

... TM PICDEM Mechatronics Demo Board User’s Guide FIGURE A-6: DS51557C-page 54 SCHEMATIC DIAGRAM (PAGE © 2006 Microchip Technology Inc. ...

Page 59

... FIGURE A-7: © 2006 Microchip Technology Inc. Hardware Schematics SCHEMATIC DIAGRAM (PAGE DS51557C-page 55 ...

Page 60

... TM PICDEM Mechatronics Demo Board User’s Guide NOTES: DS51557C-page 56 © 2006 Microchip Technology Inc. ...

Page 61

... Appendix B. LCD Segment Mapping Worksheet B.1 INTRODUCTION This appendix contains the LCD Segment Mapping Worksheet. © 2006 Microchip Technology Inc. TM PICDEM MECHATRONICS DEMO BOARD USER’S GUIDE DS51557C-page 57 ...

Page 62

... APPENDIX B: LCD SEGMENT MAPPING WORKSHEET © 2006 Microchip Technology Inc. LCD Segment Mapping Worksheet DS51557C-page 58 ...

Page 63

... NOTES: © 2006 Microchip Technology Inc. LCD Segment Mapping Worksheet DS51557C-page 59 ...

Page 64

... Fax: 886-3-572-6459 Taiwan - Kaohsiung Tel: 886-7-536-4818 Fax: 886-7-536-4803 Taiwan - Taipei Tel: 886-2-2500-6610 Fax: 886-2-2508-0102 Thailand - Bangkok Tel: 66-2-694-1351 Fax: 66-2-694-1350 © 2006 Microchip Technology Inc. EUROPE Austria - Wels Tel: 43-7242-2244-3910 Fax: 43-7242-2244-393 Denmark - Copenhagen Tel: 45-4450-2828 Fax: 45-4485-2829 France - Paris Tel: 33-1-69-53-63-20 ...

Related keywords