12 17 picdem mechatronics setup

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ................................................... 12 1.7 PICDEM™ Mechatronics Setup ................................................................... 12 1.8 General PICDEM™ Mechatronics Demonstration Board Information .......... 14 Chapter 2. Example Projects 2.1 Introduction ................................................................................................... 19 2.2 Loading Projects in MPLAB® IDE ................................................................. 20 2.3 Example Projects ......................................................................................... 20 2.3.1 Project 1: Hello World (Light a LED) ....................................................................... 21 2.3.2 Project 2: Dusk Indicator Using the Voltage Comparator ........................................ 23 2.3.3 Project 3: Thermometer Using the Analog-to-Digital Converter .............................. 25 2.3.4 Project 4: Digital Clock Using Timer1 ..................................................................... 27 2.3.5 Project 5: Brushed DC Motor Speed Control with Optical Encoder Feedback ....... 29 2.3.6 Project 6: Brushed DC Speed Control with Back EMF Feedback .......................... 32 2.3.7 Project 7: Stepper Motor Control: Single Stepping, Half Stepping and Microstepping ......................................................................................... 35 2.3.8 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 Appendix A. Hardware Schematics A.1 Introduction .................................................................................................. 49 Appendix B. LCD Segment Mapping Worksheet B.1 Introduction .................................................................................................. 57 Worldwide Sales and Service .................................................................................... 60 © 2005 Microchip Technology Inc. DS51557B-page iii PICDEMTM Mechatronics Demo Board User’s Guide NOTES: DS51557B-page iv © 2005 Microchip Technology Inc. PICDEMTM MECHATRONICS DEMO BOARD 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. This number is located on the bottom of each page, in front of the page number. The numbering convention for the DS number is “DSXXXXXA”, where “XXXXX” is the document number and “A” is the revision level of the document. For the most up-to-date information on development tools, see the MPLAB® IDE on-line help. Select the Help menu, and then Topics to open a list of available on-line help files. INTRODUCTION This chapter contains general information about this user’s guide and customer support that will be useful prior to using the PICDEM™ Mechatronics development kit. Items discussed in this chapter are: • • • • • • • • • Document Layout Conventions Used in this Guide Warranty Registration Recommended Reading The Microchip Web Site Development Systems Customer Notification Service Customer Support Document Revision History Troubleshooting DOCUMENT LAYOUT This document describes how to use the PICDEM™ Mechatronics Demonstration Board. The manual layout is as follows: • Chapter 1: PICDEM Mechatronics – An overview of the PICDEM Mechatronics Demo Board. PCB layout, parts and how to connect the provided jumper wires to the board. • Chapter 2: Example Projects – Projects that describe how to read the sensors on the board, drive the LCD and control several motors. These motors include a Brushed DC (BDC) motor and a bipolar stepper motor. • Chapter 3: Troubleshooting – Provides resolutions for solving common problems associated with using the PICDEM Mechatronics Demo Board. • Appendix A: Hardware Schematics – Illustrates the PICDEM Mechatronics Demo Board hardware schematic diagrams. © 2005 Microchip Technology Inc. DS51557B-page 1 PICDEMTM Mechatronics Demo Board User’s Guide • Appendix B: LCD Segment Mapping Worksheet – Provides the LCD Segment Mapping Worksheet. CONVENTIONS USED IN THIS GUIDE This manual uses the following documentation conventions: DOCUMENTATION CONVENTIONS Description Represents Examples Code (Courier font): Plain characters Sample code Filenames and paths #define START c:\autoexec.bat Angle brackets: < > Variables <label>, <exp> Square brackets [ ] Optional arguments MPASMWIN [main.asm] Curly brackets and pipe character:...
View Full Document

This note was uploaded on 01/29/2014 for the course AA AA taught by Professor Aa during the Winter '10 term at ENS Cachan.

Ask a homework question - tutors are online