v Contents About the Authors ................................................................................................ xix About the Technical Reviewers ........................................................................... xxi Acknowledgments .............................................................................................. xxii Introduction ....................................................................................................... xxiv Chapter 1: The Basics ............................................................................................. 1 Electricity ........................................................................................................................... 2Electrical Analogy ..................................................................................................................................... 3Electrical Basics ....................................................................................................................................... 4Circuits ..................................................................................................................................................... 6Measuring Electricity................................................................................................................................ 7Multi-Meters ............................................................................................................................................. 7Measuring Voltage.................................................................................................................................... 8Measuring Amperage ............................................................................................................................... 9Measuring Capacitance ............................................................................................................................ 9Measuring Resistance ............................................................................................................................ 10Calculating Resistor Power Using Ohm’s Law........................................................................................ 11Oscilloscope ........................................................................................................................................... 12Loads ...................................................................................................................................................... 13Electrical Connections ............................................................................................................................ 14Electronics ....................................................................................................................... 15Semi-Conductors.................................................................................................................................... 16Datasheets.............................................................................................................................................. 16www.it-ebooks.info CONTENTS vi Integrated Circuits .................................................................................................................................. 17Through-Hole Components..................................................................................................................... 18Arduino Primer................................................................................................................. 20Arduino Variants ..................................................................................................................................... 20Arduino IDE ............................................................................................................................................. 23The Sketch.............................................................................................................................................. 24Signals.................................................................................................................................................... 26Building Circuits...............................................................................................................35Circuit Design ......................................................................................................................................... 35Schematics ............................................................................................................................................. 36
Prototyping ............................................................................................................................................. 40
Building a Robot .............................................................................................................. 4
6
Hardware ................................................................................................................................................ 46
Materials................................................................................................................................................. 48
Work Area ............................................................................................................................................... 48
Summary ........................................................................................................................
.49
Chapter 2: Arduino for Robotics ........................................................................... 51
Interfacing Arduino .......................................................................................................... 51
Relays ..................................................................................................................................................... 52
Transistors.............................................................................................................................................. 58
Interfacing a Motor-Controller .................................................................................................
............... 65
User Control ..................................................................................................................... 68
Tethered (Wired) Control .......................................................................................................
................. 68
Infrared Control (IR) ................................................................................................................................ 68
Radio Control Systems ..........................................................................................................
................. 69
Sensor Navigation............................................................................................................ 72
Contact Sensing................................................................................................................
...................... 72
Distance and Reflection Sensing ................................................................................................
............ 73
www.it-ebooks.info
CONTENTS
vii
Orientation (Positioning) ......................................................................................................
................... 76
Non-Autonomous Sensors .........................................................................................................
............. 79
Summary ........................................................................................................................
.81
Chapter 3: Let’s Get Moving.................................................................................. 83
Electric Motors................................................................................................................
.83
Brushed DC Motor (Permanent Magnet Type) .......................................................................................
.84
Brushless Motors.................................................................................................................................... 84
Stepper Motors ....................................................................................................................................... 85
Gear Motors ....................................................................................................................
........................ 86
Servo Motors .......................................................................................................................................... 86
Linear Actuators ..................................................................................................................................... 87
Calculating Power..............................................................................................................
..................... 87
Driving .................................................................................................................................................... 88
Finding the Right Motor ........................................................................................................
.................. 88
The H-Bridge...................................................................................................................
.89
Generating a Brake .............................................................................................................
.................... 90
Implementation....................................................................................................................................... 90
H-Bridge ICs ....................................................................................................................
đang được dịch, vui lòng đợi..
