Table of Contents
1 Understanding Arduino 7
What is Arduino? 8
Why Arduino? 9
Which Arduino? 10
What Can You Do With It? 13
Basic Principles 14
Hardware 14
Software 15
Required Skills 16
2 The Arduino Kit Bag 17
The Arduino Board 18
Important Board Parts 20
Breadboards 23
Jump Wires 25
Components 25
Base Plates 26
3 Arduino Software 27
Install Arduino on Windows 28
Install Arduino on Mac OS X 30
Install Arduino on Linux 32
Setting Up Arduino 34
Check It's Working 37
The Arduino Environment 38
4 Shields & Libraries 41
What is a Shield? 42
Display Shields 43
Audio Shields 44
Prototyping Shields 45
Gaming Shields 46
GPS Shields 47
Power Shields 48
Motor Shields 49
Communications Shields 50
Miscellaneous Shields 51
Before You Buy a Shield 54
Libraries 55
5 Tools & Techniques 57
Circuit Boards 58
Soldering 62
Power Adapters 71
Test & Diagnostic Equipment 72
Design Software 74
Schematic Diagrams 76
6 Electronic Components 79
Supplied with Arduino 80
Resistors 81
Resistor Color Coding 82
Capacitors 83
Inductors 84
Diodes 85
Transistors 86
Relays 87
Transformers 88
Motors 89
Integrated Circuits (ICs) 90
Sensors & Actuators 91
7 Circuits 93
Concepts of Electricity 94
Voltage Drops 98
Power 99
Series & Parallel Circuits 100
Series Circuits & Ohm's Law 102
Parallel Circuits & Ohm's Law 104
Resistance in Circuits 106
Capacitance in Circuits 108
Alternating & Direct Current 110
8 Programming Arduino 111
Programming Concepts 112
Comments 113
Functions 114
Variables 115
Variable Data Typos 117
Statements 118
Arithmetic & Logic 123
Arrays 128
Bitwise Operators 129
Input & Output Interfaces 130
Time 133
Other Useful Functions 134
Sketch Structure 136
9 Sketches 137
Write an Arduino Sketch 138
Verify the Sketch 142
Upload the Sketch 143
The Fade Sketch 144
The DigitalReadSerial Sketch 149
The AnalogReadSerial Sketch 153
The IfStatementConditional Sketch 157
The ForLooplteration Sketch 161
10 Troubleshooting & Debugging 165
Before You Start! 166
Hardware 167
Set Up Issues 168
Syntax Errors 170
Serial Monitor 171
Debugging 174
11 Arduino Projects 175
Introduction 176
GSM Security Alarm System 176
LED Cube 177
Skube 178
Lawnbot400 180
Baker Tweet 182
Tree Climbing Robot 184
8BitBox 186
Index 187