Chủ Nhật, 9 tháng 3, 2014

Tài liệu mcgraw hill pda robotics 2003 pptx

Copyright © 2003 by The McGraw-Hill Companies, Inc. All rights reserved. Manufactured in the
United States of America. Except as permitted under the United States Copyright Act of 1976, no part
of this publication may be reproduced or distributed in any form or by any means, or stored in a data-
base or retrieval system, without the prior written permission of the publisher.
0-07-143403-8
The material in this eBook also appears in the print version of this title: 0-07-141741-9
All trademarks are trademarks of their respective owners. Rather than put a trademark symbol after
every occurrence of a trademarked name, we use names in an editorial fashion only, and to the benefit
of the trademark owner, with no intention of infringement of the trademark. Where such designations
appear in this book, they have been printed with initial caps.
McGraw-Hill eBooks are available at special quantity discounts to use as premiums and sales pro-
motions, or for use in corporate training programs. For more information, please contact George
Hoare, Special Sales, at george_hoare@mcgraw-hill.com or (212) 904-4069.
TERMS OF USE
This is a copyrighted work and The McGraw-Hill Companies, Inc. (“McGraw-Hill”) and its licensors
reserve all rights in and to the work. Use of this work is subject to these terms. Except as permitted
under the Copyright Act of 1976 and the right to store and retrieve one copy of the work, you may not
decompile, disassemble, reverse engineer, reproduce, modify, create derivative works based upon,
transmit, distribute, disseminate, sell, publish or sublicense the work or any part of it without
McGraw-Hill’s prior consent. You may use the work for your own noncommercial and personal use;
any other use of the work is strictly prohibited. Your right to use the work may be terminated if you
fail to comply with these terms.
THE WORK IS PROVIDED “AS IS”. McGRAW-HILL AND ITS LICENSORS MAKE NO GUAR-
ANTEES OR WARRANTIES AS TO THE ACCURACY, ADEQUACY OR COMPLETENESS OF
OR RESULTS TO BE OBTAINED FROM USING THE WORK, INCLUDING ANY INFORMA-
TION THAT CAN BE ACCESSED THROUGH THE WORK VIA HYPERLINK OR OTHERWISE,
AND EXPRESSLY DISCLAIM ANY WARRANTY, EXPRESS OR IMPLIED, INCLUDING BUT
NOT LIMITED TO IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A
PARTICULAR PURPOSE. McGraw-Hill and its licensors do not warrant or guarantee that the func-
tions contained in the work will meet your requirements or that its operation will be uninterrupted or
error free. Neither McGraw-Hill nor its licensors shall be liable to you or anyone else for any inac-
curacy, error or omission, regardless of cause, in the work or for any damages resulting therefrom.
McGraw-Hill has no responsibility for the content of any information accessed through the work.
Under no circumstances shall McGraw-Hill and/or its licensors be liable for any indirect, incidental,
special, punitive, consequential or similar damages that result from the use of or inability to use the
work, even if any of them has been advised of the possibility of such damages. This limitation of lia-
bility shall apply to any claim or cause whatsoever whether such claim or cause arises in contract, tort
or otherwise.
DOI: 10.1036/0071434038
ebook_copyright 8.5 x 11.qxd 8/12/03 12:00 PM Page 1
Dedicated to my family, Gylian, Olivia, Rachel, and Ethan.
PDA 00 5/28/03 8:19 AM Page v
This page intentionally left blank.
vii
Introduction xv
Acknowledgments xix
1 Anatomy of a Personal Digital Assistant (PDA) 1
2 Robotic System Overview 15
3 Tools and Equipment 23
4 Infrared Communications Overview 29
5 The Electronics 43
6 Building PDA Robot 107
7 Programming the PIC16F876 Microcontroller 137
8 PDA Robot Palm OS Software Using
Code Warrior 8.0 155
Contents Summary
PDA 00 5/28/03 8:19 AM Page vii
Copyright 2003 by The McGraw-Hill Companies, Inc. Click Here for Terms of Use.
For more information about this title, click here.
9 PDA Robot Software for Pocket PC 2002
(Windows CE) 169
10 The PDA Robotics Command Center 195
11 Infinitely Expandable 211
Index 221
PDA Robotics
viii
PDA 00 5/28/03 8:19 AM Page viii
ix
Introduction xv
Acknowledgments xix
1 Anatomy of a Personal Digital Assistant (PDA) 1
Beneath the Cover 5
The SA-1110: An Example of ARM Architecture 7
2 Robotic System Overview 15
Major Electronic Parts 15
Microchip MCP2150 IrDA Standard
Protocol Stack Controller 15
Vishay TFDS4500 Serial Infrared Transceiver 17
PIC16F876 Microcontroller 18
L7805ACV Voltage Regulator (5 Volts) 18
L298 Dual Full-Bridge Driver 19
Sharp GP2D12 Infrared Range Finder 20
DYN2009635 20 MH and RXDMP49 11.0952 MHz
“AT” Cut Quartz Crystal Oscillator 21
Contents
PDA 00 5/28/03 8:19 AM Page ix
For more information about this title, click here.
Copyright 2003 by The McGraw-Hill Companies, Inc. Click Here for Terms of Use.
3 Tools and Equipment 23
Essential Tools and Equipment 23
Safety First 26
Where to Get Equipment 27
4 Infrared Communications Overview 29
Technical Summary of IrDA Data and IrDA Control 31
IrDA’s New Full Range of Digital Information
Exchange via Cordless IR Connections 31
Optional IrDA Data Protocols 33
IrDA Control 33
Windows CE (Pocket PC) and IrDA 35
Communication Link Speeds 36
Communication Link Turnaround Times 37
SIR Coding 39
MIR Coding 39
FIR Coding 40
VFIR Coding 40
5 The Electronics 43
System Overview 43
Setting the Baud Rate 46
The MCP2150 Connection to the IR Transceiver 47
The MCP2150 Connection to the PIC16F876
Microcontroller 49
The Motor Controller Circuit 51
The Sharp GPD12 IR Range Finder 52
Component Descriptions 53
The Vishay TFDS4500 53
The Microchip MCP2150 Plug and Play IrDA 58
MCP2150 Applications: PDA Robot 59
Crystal Oscillator/Ceramic Resonators 62
PDA Robotics
x
PDA 00 5/28/03 8:19 AM Page x
Bit Clock 63
UART Interface 63
Baud Rate 63
Transmitting 64
Receiving 64
Modulation 64
Demodulation 65
Minimizing Power 65
Returning to Device Operation 65
Network Layering Reference Model 65
IrDA Data Protocols Supported by MCP2150 66
IRDA Standard Protocol Layers 69
PDA and PDA Robot Handshake: How Devices Connect 71
Normal Disconnect Mode (NDM) 72
Discovery Mode 74
Normal Connect Mode (NCM) 76
MCP2150 Operation 76
Optical Transceiver 77
Typical Optical Transceiver Circuit 78
MCP2150 Absolute Maximum Ratings 78
PIC16F876: PDA Robot’s Microcontroller 78
PORTA and the TRISA Register 84
PORTB and the TRISB Register 87
PORTC and the TRISC Register 90
The L298 Dual Full-Bridge Driver
(PDA Robot Motor Controller) 96
Description 97
The GP2D12 IR Range Finder 102
Connecting to the Sensor 104
Operation 104
Calibration 104
Contents
xi
PDA 00 5/28/03 8:19 AM Page xi
Ambient Light 105
IR Light 105
Laser Light 106
Operation 106
6 Building PDA Robot 107
Creating the Circuit Board 107
Positive Photofabrication Process Instructions 108
Parts Lists 115
Placing and Soldering the Main Board Components 117
Placing and Soldering the Motor Controller Components 120
The Infrared Transceiver 122
The Power Connectors 123
The Battery Packs 123
The IR Range Finder 124
Cutting the Aluminum Pieces and Drilling the Holes 125
Assembling the Geared Motors 127
The Ribbon Connectors 130
The Camera (Accessory) Mount 134
7 Programming the PIC16F876 Microcontroller 137
Software Installation 138
Hardware Installation 139
General Operation 140
EPIC for DOS 141
EPIC for Windows 95/98/ME/NT/2000/XP 142
EPICWin Controls 144
The PICmicro MCU Compiler 145
The Command Line Compiler 146
The Source Code 147
Program the PIC16F876 153
PDA Robotics
xii
PDA 00 5/28/03 8:19 AM Page xii
8 PDA Robot Palm OS Software
Using Code Warrior 8.0 155
Creating the PDA Robot Project 157
9 PDA Robot Software for Pocket PC 2002
(Windows CE) 169
Microsoft eMbedded Visual C++ 3.0 Overview 170
Increased Developer Productivity 173
Simplified Debugging and Deployment 173
Comprehensive Access to the Windows CE Platform 173
Build for the Latest Windows CE Devices 174
Fast, Flexible Data Access 174
Building the PDA Robot Pocket PC Application 175
Creating the IrDA Link 177
The Wireless RF Link 186
CCeSocket::CCeSocket 188
Parameters 188
Remarks 188
OnWireless: Implementing the CPDASocket Class 189
10 The PDA Robotics Command Center 195
The Video Link 195
Motion Detection 197
Sending Data Using FTP 201
The Wireless Data Link 206
11 Infinitely Expandable 211
Global Positioning System 211
Pocket CoPilot 3.0 GPS Jacket Edition:
PCP-V3-PAQJ2 212
The TeleType GPS 212
Symbol SPS 3000 Bar Code Scanner Expansion Pack 214
Contents
xiii
PDA 00 5/28/03 8:19 AM Page xiii

Không có nhận xét nào:

Đăng nhận xét