Toggle navigation
Home
8NOVELS
Search
The Arduino Inventor's Guide
Read The Arduino Inventor's Guide Online
Authors:
Unknown
BOOK:
The Arduino Inventor's Guide
4.72Mb size Format: txt, pdf, ePub
Read Book
Download Book
«
1
2
3
4
5
6
7
8
9
10
...
32
...
54
»
Contents in Detail
Cover Page
Title Page
Copyright Page
About Sparkfun Electronics
About the Authors
About the Technical Reviewer
A Note from Brian
A Note from Derek
Contents
Contents in Detail
Introduction
What is this Book About?
Why Arduino?
How is this Book Different from Others?
Materials
Required Tools
Required Computer
What’s in this Book?
Online Resources
Spread the Word: Sharing Your Work
Electronics Primer
Electricity, Conductivity, and Basic Terms
What Is Electricity?
Types of Electricity
What Is a Circuit?
Ohm’s Law
Visualizing Electricity as Water in a Pipe
Schematics, Circuit Blueprints, and Wiring Diagrams
Prototyping Circuits
Discrete Components vs. Breakout Boards
Analog vs. Digital
What Is A Microcontroller?
Project 1: Getting Started with Arduino
Materials to Gather
About the Arduino
An Accessible Hardware Platform
About the SparkFun RedBoard
Installing the Arduino IDE and Drivers
Installing on Windows
Installing on OS X
Installing on Linux
A Brief IDE Tour
Changing the Default Preferences
Test Drive: Plugging in the Arduino for the First Time
Choosing Your Board in the IDE
Selecting the Communication Port
An Arduino “Hello, World!”
Basic Arduino Troubleshooting
Anatomy of an Arduino Sketch
Key Sketch Elements
The setup() Function
The loop() Function
Your First Piece of Hardware
Going Further
Hack
Modify
Saving Your Sketch
Project 2: A Stoplight for Your House
Materials to Gather
Electronic Parts
Other Materials and Tools
New Component: The Resistor
Build the Stoplight Prototype
Connect the Red LED to the Breadboard
Add Power to the Breadboard
Add the Yellow and Green LEDs
Program the Stoplight
Confirm Your IDE Settings
Create Placeholders for Pin Numbers
Write the setup() Function
Write the loop() Function
Upload the Sketch
Make the Stoplight Portable
Build the Stoplight Enclosure
Cardboard Construction
Make the Stoplight Lenses
Make the Shades
Mount the LEDs and Arduino
Going Further
Hack
Modify
Project 3: The Nine-Pixel Animation Machine
Materials to Gather
Electronic Parts
Other Materials and Tools
Build the Nine-Pixel Animation Machine Prototype
Program the Nine-Pixel Animation Machine
What Are Custom Functions?
Design Your Artwork
The Test Sketch
Build the Nine-Pixel Animation Machine Enclosure
Cardboard Construction
Connect the Electronics
Create an Led Animation
Plan the Animation Sequence
Write Custom Functions
Tweak Your loop() Function
Going Further
Hack
Modify
Project 4: Reaction Timer
Materials to Gather
Electronic Parts
Other Materials and Tools
New Component: The Push Button
How Push Buttons Work
Using Resistors with Push Buttons
Build the Reaction Timer Prototype
Program the Reaction Timer
Write the setup() Function
Write the loop() Function
Test the Reaction Timer Sketch
Play Again?
Add a Game Element
Upload the Complete Code for the Reaction Timer
Build the Reaction Timer Enclosure
Cut Out the Cardboard
Assemble the Electronics
Spice Up Your Game Enclosure
Going Further
Hack
Modify
Project 5: A Color-Mixing Night-Light
Materials to Gather
Electronic Parts
Other Materials and Tools
New Components
The RGB LED
The Photoresistor
Build the Night-Light Prototype
Wire the Voltage Divider
Wire the RGB LED
Test the Night-Light with Basic Color Mixing
Program the Night-Light
Prepare to Check the Light Level
Control the Night-Light Based on the Light Level
Prevent False Alarms
Recalibrate the Night-Light
Create More Colors with Analogwrite()
Create Analog Signals with PWM
Mix Colors with analogWrite()
Find RGB Values with Color Picker
The Custom-Color Night-Light Code
Build the Night-Light Enclosure
Cardstock Construction
Put the Electronics Inside
Let It Glow!
Going Further
Hack
Modify
Project 6: Balance Beam
Materials to Gather
Electronic Parts
Other Materials and Tools
New Components
The Potentiometer
The Servo Motor
Build the Balance Beam Prototype
Program the Balance Beam
Test the Servo
Complete the Balance Beam Sketch
Build the Balance Beam
Cut Out the Parts
Build the Beam
Build the Base and Attach the Servo
Final Assembly
Going Further
Hack
Modify
Project 7: Tiny Desktop Greenhouse
Materials to Gather
Electronic Parts
Other Materials and Tools
New Components
TMP36 Temperature Sensor
Standard Hobby Motor
NPN Transistor
Taking a Systems Approach
Build the Temperature Monitor
Measure Temperature with the TMP36
Connect the Temperature Sensor
Program the Temperature Sensor
Build the Servo Motor Autovent
Program the Autovent
Build the Fan Motor
Program the Fan Motor
Isolate the Motor Effect
Build the Tiny Desktop Greenhouse Enclosure
Add the Autovent Window Servo
Create the Paper Clip Linkage
Add the Roof
Build the Fan-Motor Box
Connect It Up
Going Further
Hack
Modify
Project 8: Drawbot, The Robotic Artist
Materials to Gather
Electronic Parts
Other Materials and Tools
New Components
The H-Bridge Motor Driver Integrated Circuit
Geared Hobby Motor
Build the Drawbot Prototype
Program the Drawbot
Create a Custom Function
Clean Up the Code
Wire the Second Motor
Drive Both Motors
Build the Drawbot Chassis
Test and Troubleshoot
Turn and Make Patterns: A Robot Square Dance
Going Further
Hack
Modify
Bonus
Project 9: Drag Race Timer
Materials to Gather
Electronic Parts
Other Materials and Tools
New Component: The 16 × 2 Character LCD
Drag Race Timer Operation
Build the LCD Circuit
Power the LCD
Control the Contrast
Connect the Data and Control Wiring
Test the LCD
Add the Rest of the Electronics
Program the Drag Race Timer
A Quick Test
Build the Drag Race Track
Build the Starting Tower
Assemble the Starting Gate
Build Your Own Track
Add the Photoresistor
Test and Troubleshoot
Going Further
Hack
Modify
Project 10: Tiny Electric Piano
Materials to Gather
Electronic Parts
Other Materials and Tools
New Components
The SoftPot Membrane Potentiometer
The Piezo Buzzer
Build the Circuit
Program the Tiny Electric Piano
Test the Buzzer
Create Specific Notes
Generate Sound with the SoftPot
Play a Song
Build the Piano
Going Further
Hack
Modify
Bonus Project: Binary Trumpet
Appendix: More Electronics Know-How
Measuring Electricity with a Multimeter
Parts of a Multimeter
Measuring Continuity
Measuring Resistance
Measuring Voltage
Measuring Current
How to Solder
Heating the Iron
Perfecting Your Soldering Technique
Cleaning the Iron
Soldering Tips
Additional Soldering Tools
Third Hand
Flux Pen
Solder Wick
Solder Vacuum
Resistors and Bands
Afterword
Additional Resources
Acknowledgments
Resources
iii
iv
v
vi
vii
viii
ix
x
xi
xii
xiii
xiv
xv
xvi
xvii
xviii
xix
xx
xxi
xxii
xxiii
xxiv
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
72
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
136
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
240
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
«
1
2
3
4
5
6
7
8
9
10
...
32
...
54
»
Other books
The Perfect Christmas
by
Kate Forster
Telepathy
by
Amir Tag Elsir
Troll: A Love Story
by
Johanna Sinisalo
Rock Bottom
by
Michael Shilling
The Toff In New York
by
John Creasey
Death on Allhallowe’en
by
Bruce, Leo
Unveiled Treasures
by
Kayla Janz
Three Little Words
by
Melissa Tagg
Sweet Inspiration
by
Penny Watson
Summer of Pearls
by
Mike Blakely
The Arduino Inventor's Guide
You must be logged in to Read or Download
CONTINUE
SECURE VERIFIED
Close X