Home Page Icon
Home Page
Table of Contents for
Learn Electronics with Arduino
Close
Learn Electronics with Arduino
by Eric Hagan, Jody Culkin
Learn Electronics with Arduino
Acknowledgments
About the Authors
Preface
Chapter 1: Introduction to Arduino
Physical Computing
Prototyping
What Will I Need and Where Can I Get It?
Parts and Tools
Resources
Summary
Chapter 2: Your Arduino
Parts of an Arduino
Plug Your Arduino into Your Computer
Components and Tools
Summary
Chapter 3: Meet the Circuit
The Circuit: Building Block of Electronics
The Schematic
Using a Breadboard
Building a Circuit
A Look at the Battery
Power for Our Circuit: Electricity
Debugging the Circuit
The Multimeter
Using the Multimeter
Back to Debugging Our Circuit
Summary
Chapter 4: Programming the Arduino
Arduino, Circuits, and Code: Bringing Everything Together
What’s an IDE?
Downloading the Arduino IDE: Getting Started
The Sketch: The Basic Unit of Arduino Programming
Debugging: What to Do if the LED Isn’t Blinking
LEA4_Blink Sketch: An Overview
setup() and loop(): The Guts of Your Code
Looking at loop(): What Happens Over and Over
A Schematic of the Arduino
Building the Basic Circuit
SOS Signal Light: Creating More Complex Timing
Summary
Chapter 5: Electricity and Metering
Understanding Electricity
Build the Circuit Step by Step
Electricity: An Overview
Understanding Electricity: The Water Tank Analogy
Voltage: The Potential
Current: The Flow
Resistance: Restricting the Flow
Voltage, Current, Resistance: Review
How Do Voltage, Current, and Resistance Interact? Ohm’s Law
Components in Parallel and Series
Summary
Chapter 6: Switches, LEDs, and More
Interactivity!
Digital Inputs and Outputs Overview
Digital Input: Add a Button
Looking at the Sketch: Variables
Digital Input Refresher
Looking at the Sketch: Conditional Statements
Add a Speaker and Adjust the Code
Add Two More Buttons and Adjust the Code
Reviewing Electronic and Code Concepts
Summary
Chapter 7: Analog Values
There’s More to Life than On and Off!
Potentiometer Circuit, Step by Step
The LEA7_AnalogInOutSerial Sketch
Analog Input: Values from the Potentiometer
Analog Values as Output: PWM
Serial Communication
Adding the Speaker
Adding the Photoresistor
Summary
Chapter 8: Servo Motors
Waving the Flags
Servos Up Close
Building the Servo Circuit Step by Step
LEA8_Sweep Overview
What’s a for Loop?
Operators
The for Loop in the Sketch
Add Interactivity: Turn the Flag
LEA8_Knob Explained
Two Flags Waving: Add a Second Servo Motor
LEA8_2_servos, First Look
Summary
Chapter 9: Building Your Projects
Project Management
A Few Helpful Components
Types of Projects
Other Versions of the Arduino Board
Document Your Project and Share It!
Summary
Appendix A: Reading Resistor Codes
Index
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Prev
Previous Chapter
Cover
Next
Next Chapter
Titlepage
CONTENTS
Acknowledgments
About the Authors
Preface
Chapter 1:
Introduction to Arduino
Physical Computing
Prototyping
What Will I Need and Where Can I Get It?
Parts and Tools
Resources
Summary
Chapter 2:
Your Arduino
Parts of an Arduino
Plug Your Arduino into Your Computer
Components and Tools
Summary
Chapter 3:
Meet the Circuit
The Circuit: Building Block of Electronics
The Schematic
Using a Breadboard
Building a Circuit
A Look at the Battery
Power for Our Circuit: Electricity
Debugging the Circuit
The Multimeter
Using the Multimeter
Back to Debugging Our Circuit
Summary
Chapter 4:
Programming the Arduino
Arduino, Circuits, and Code: Bringing Everything Together
What’s an IDE?
Downloading the Arduino IDE: Getting Started
The Sketch: The Basic Unit of Arduino Programming
Debugging: What to Do if the LED Isn’t Blinking
LEA4_Blink Sketch: An Overview
setup() and loop(): The Guts of Your Code
Looking at loop(): What Happens Over and Over
A Schematic of the Arduino
Building the Basic Circuit
SOS Signal Light: Creating More Complex Timing
Summary
Chapter 5:
Electricity and Metering
Understanding Electricity
Build the Circuit Step by Step
Electricity: An Overview
Understanding Electricity: The Water Tank Analogy
Voltage: The Potential
Current: The Flow
Resistance: Restricting the Flow
Voltage, Current, Resistance: Review
How Do Voltage, Current, and Resistance Interact? Ohm’s Law
Components in Parallel and Series
Summary
Chapter 6:
Switches, LEDs, and More
Interactivity!
Digital Inputs and Outputs Overview
Digital Input: Add a Button
Looking at the Sketch: Variables
Digital Input Refresher
Looking at the Sketch: Conditional Statements
Add a Speaker and Adjust the Code
Add Two More Buttons and Adjust the Code
Reviewing Electronic and Code Concepts
Summary
Chapter 7:
Analog Values
There’s More to Life than On and Off!
Potentiometer Circuit, Step by Step
The LEA7_AnalogInOutSerial Sketch
Analog Input: Values from the Potentiometer
Analog Values as Output: PWM
Serial Communication
Adding the Speaker
Adding the Photoresistor
Summary
Chapter 8:
Servo Motors
Waving the Flags
Servos Up Close
Building the Servo Circuit Step by Step
LEA8_Sweep Overview
What’s a for Loop?
Operators
The for Loop in the Sketch
Add Interactivity: Turn the Flag
LEA8_Knob Explained
Two Flags Waving: Add a Second Servo Motor
LEA8_2_servos, First Look
Summary
Chapter 9:
Building Your Projects
Project Management
A Few Helpful Components
Types of Projects
Other Versions of the Arduino Board
Document Your Project and Share It!
Summary
Appendix A:
Reading Resistor Codes
Index
List of Tables
Table 3-1
Table 5-1
Table 5-2
Table 5-3
Table 6-1
Table 7-1
Table 8-1
Table 8-2
Table 8-3
List of Illustrations
Figure 1-1
Figure 1-2
Figure 1-3
Figure 1-4
Figure 1-5
Figure 1-6
Figure 1-7
Figure 1-8
Figure 1-9
Figure 1-10
Figure 1-11
Figure 1-12
Figure 1-13
Figure 1-14
Figure 1-15
Figure 1-16
Figure 1-17
Figure 1-18
Figure 1-19
Figure 1-20
Figure 2-1
Figure 2-2
Figure 2-3
Figure 2-4
Figure 2-5
Figure 2-6
Figure 2-7
Figure 2-8
Figure 2-9
Figure 2-10
Figure 2-11
Figure 2-12
Figure 2-13
Figure 2-14
Figure 2-15
Figure 3-1
Figure 3-2
Figure 3-3
Figure 3-4
Figure 3-5
Figure 3-6
Figure 3-7
Figure 3-8
Figure 3-9
Figure 3-10
Figure 3-11
Figure 3-12
Figure 3-13
Figure 3-14
Figure 3-15
Figure 3-16
Figure 3-17
Figure 3-18
Figure 3-19
Figure 3-20
Figure 3-21
Figure 3-22
Figure 3-23
Figure 3-24
Figure 3-25
Figure 3-26
Figure 3-27
Figure 3-28
Figure 3-29
Figure 3-30
Figure 3-31
Figure 3-32
Figure 3-33
Figure 3-34
Figure 3-35
Figure 3-36
Figure 3-37
Figure 3-38
Figure 3-39
Figure 3-40
Figure 3-41
Figure 3-42
Figure 3-43
Figure 3-44
Figure 3-45
Figure 3-46
Figure 3-47
Figure 3-48
Figure 3-49
Figure 4-1
Figure 4-2
Figure 4-3
Figure 4-4
Figure 4-5
Figure 4-6
Figure 4-7
Figure 4-8
Figure 4-9
Figure 4-10
Figure 4-11
Figure 4-12
Figure 4-13
Figure 4-14
Figure 4-15
Figure 4-16
Figure 4-17
Figure 4-18
Figure 4-19
Figure 4-20
Figure 4-21
Figure 4-22
Figure 4-23
Figure 4-24
Figure 4-25
Figure 4-26
Figure 4-27
Figure 4-28
Figure 4-29
Figure 4-30
Figure 4-31
Figure 4-32
Figure 4-33
Figure 4-34
Figure 4-35
Figure 4-36
Figure 4-37
Figure 4-38
Figure 4-39
Figure 4-40
Figure 4-41
Figure 4-42
Figure 4-43
Figure 4-44
Figure 4-45
Figure 4-46
Figure 4-47
Figure 4-48
Figure 4-49
Figure 5-1
Figure 5-2
Figure 5-3
Figure 5-4
Figure 5-5
Figure 5-6
Figure 5-7
Figure 5-8
Figure 5-9
Figure 5-10
Figure 5-11
Figure 5-12
Figure 5-13
Figure 5-14
Figure 5-15
Figure 5-16
Figure 5-17
Figure 5-18
Figure 5-19
Figure 5-20
Figure 5-21
Figure 5-22
Figure 5-23
Figure 5-24
Figure 5-25
Figure 5-26
Figure 5-27
Figure 5-28
Figure 5-29
Figure 5-30
Figure 5-31
Figure 5-32
Figure 5-33
Figure 5-34
Figure 5-35
Figure 5-36
Figure 5-37
Figure 5-38
Figure 5-39
Figure 5-40
Figure 5-41
Figure 5-42
Figure 5-43
Figure 5-44
Figure 5-45
Figure 5-46
Figure 5-47
Figure 5-48
Figure 5-49
Figure 5-50
Figure 5-51
Figure 5-52
Figure 5-53
Figure 5-54
Figure 6-1
Figure 6-2
Figure 6-3
Figure 6-4
Figure 6-5
Figure 6-6
Figure 6-7
Figure 6-8
Figure 6-9
Figure 6-10
Figure 6-11
Figure 6-12
Figure 6-13
Figure 6-14
Figure 6-15
Figure 6-16
Figure 6-17
Figure 6-18
Figure 6-19
Figure 6-20
Figure 6-21
Figure 6-22
Figure 6-23
Figure 6-24
Figure 6-25
Figure 6-26
Figure 7-1
Figure 7-2
Figure 7-3
Figure 7-4
Figure 7-5
Figure 7-6
Figure 7-7
Figure 7-8
Figure 7-9
Figure 7-10
Figure 7-11
Figure 7-12
Figure 7-13
Figure 7-14
Figure 7-15
Figure 7-17
Figure 7-18
Figure 7-19
Figure 7-20
Figure 7-21
Figure 7-22
Figure 7-23
Figure 7-24
Figure 7-25
Figure 7-26
Figure 7-27
Figure 7-28
Figure 7-29
Figure 7-30
Figure 7-31
Figure 7-32
Figure 7-33
Figure 7-34
Figure 7-35
Figure 7-36
Figure 7-37
Figure 8-1
Figure 8-2
Figure 8-3
Figure 8-4
Figure 8-5
Figure 8-6
Figure 8-7
Figure 8-8
Figure 8-9
Figure 8-10
Figure 8-11
Figure 8-12
Figure 8-13
Figure 8-14
Figure 8-15
Figure 8-16
Figure 8-17
Figure 8-18
Figure 8-19
Figure 8-20
Figure 8-21
Figure 8-22
Figure 8-23
Figure 8-24
Figure 8-25
Figure 8-26
Figure 8-27
Figure 8-28
Figure 9-1
Figure 9-2
Figure 9-3
Figure 9-4
Figure 9-5
Figure 9-6
Figure 9-7
Figure 9-8
Figure 9-9
Figure 9-10
Figure 9-11
Figure 9-12
Figure 9-13
Figure 9-14
Figure 9-15
Figure A-1
Figure A-2
Figure A-3
Figure A-4
Figure A-5
Figure A-6
Figure A-7
Figure A-8
Figure A-9
Figure A-10
Figure A-11
Figure A-12
Figure A-13
Figure A-14
Figure A-15
Guide
Cover
Title Page
Front Matter
Dedication
Preface
Chapter 1: Introduction to Arduino
Start Reading
Pages
i
ii
iii
iv
vii
viii
ix
1
2
3
4
5
6
7
8
9
10
11
12
13
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
361
362
363
364
365
366
367
368
369
370
371
372
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset