Number
10K-ohm (10KΩ) resistor, stripes on, 30
Symbols
/*
and */
comments, using, 23, 35
+ (addition) symbol, using, 88
//
(comments), using, 23
{}
(curly braces) in Hello Blinky World, 22
/
(division) symbol, using, 88, 97
=
(equals sign), using, 78
(minus) symbol, using, 87
*
(multiplication) symbol, using, 88
Ω (ohms) symbol, 60
"
(quote marks), including strings in, 111
A
Adafruit
Arduino Lessons, 157
soldering tutorial, 80
addition, symbol for, 88
alarm, powering, 76
API (application programming interface), 115–116, 152–153. See also OpenWeatherMap key
Apple computers, downloading software for, 4–7
Arduino boards, verifying connection, 12–13
Arduino libraries
Arduino Online
connecting with wifi board, 99–100
ingredients, 99
making it go, 108
strings, 111
The Arduino Playground, 157
Arduino setup, fixes, 13
Arduino software downloads, 18
for Macs, 4
for Windows, 7
Arduino Uno
arduino-#.*.#-macosx.zip
file, downloading and unzipping, 4–5
Arduino.app icon, displaying on desktop, 5
Arduinos
forums, 24
getting connected, 3
as open source hardware, 1
troubleshooting installation, 13
untethering, 77
B
blinky world. See Hello Blinky World; Ice, Ice Blinky
board type, setting, 12
breadboard, invisible connections in, 26
buttons, triggering things with, 141–142
buzzer
polarity of, 73
stopping, 76
C
candle. See Electric Candle
CapacitiveSensor library, downloading, 62
circuit diagrams. See wiring diagrams
code
Arduino Online, 105–107, 111, 176–183
and code blocks, 165
Dark-Detecting Light, 34–35, 166–167
Do I Need an Umbrella Today? 117–118, 125–126, 183–190
Electric Candle, 86–88, 172–174
A Gentle Touch, 61–64, 66–67, 170–171
Hello Blinky World, 18–20, 22–23, 166
Ice, Ice Blinky, 52, 56–58, 169–170
Invisible Ruler, 94–97, 175–176
Night Light, 41–43, 46, 168–169
Online Temperature Tracker, 146–147, 151–152, 196–199
Send Email with a Button, 130–134, 140, 190–195
sensor reading, 54
Someone Moved My Stuff! 73–74, 78, 172
website, 41
cold-water LED. See Ice, Ice Blinky
comments (//), using, 23
conductive fabric sellers, 67
connection, making, 3
curly braces ({}
) in Hello Blinky World, 22
D
Dark-Detecting Light
10K-ohm (10KΩ) resistor, 30
in bright light, 34
comments, 35
fixes, 33
integers in code, 35
loading up code, 32
making it go, 32
pin numbers, 35
sensor circuit, 32
using static resistors, 36
value of sensorValue
, 36
variables in code, 35
wiring diagram, 31
data. See also online data
data account, getting for free, 147–148
data.sparkfun.com, 149–150, 153
delay()
command, in Hello Blinky World, 21
distance measurement, acting on, 97
DIY sandwich, 116
Do I Need an Umbrella Today?
DIY sandwich, 116
entering wifi information, 123
fixes, 124
ingredients, 115
douseCandle()
function, calling, 88–89
downloading
CapacitiveSensor library, 62
online data, 152
sketches, 165
downloading Arduino software
for Macs, 4
for Windows, 7
E
Electric Candle
assembly, 85
fixes, 87
making it go, 87
math symbols, 88
sensing air movement and wind, 79–80
electricity, ground path for, 29
email button project assembled, 130
equals sign (=), using, 78
example.com website, 110
F
fading night light, 47
fixes
Arduino setup, 13
Dark-Detecting Light, 33
Do I Need an Umbrella Today? 124
Electric Candle, 87
Hello Blinky World, 20
Invisible Ruler, 95
Online Temperature Tracker, 150–151
Send Email with a Button, 138–139
Someone Moved My Stuff! 76
Flash memory, 125
forums for Arduino, 24
Fritzing. See wiring diagrams
G
A Gentle Touch
ingredients, 59
making it go, 65
parts, 60
Genuino, explained, 12
Get Your Arduino Online. See Arduino Online
ground in circuit, explained, 30
H
Hackster.io Arduino Projects, 157
headers, soldering onto wifi board, 100–104
Hello Blinky World
//
(comments), 23
code, 166
delay()
command, 21
fixes, 20
function of, 21
holes vs. pins, 17
ingredients, 15
loop()
section, 21
wiring diagram, 16
help, accessing for Arduino setup, 13
HIGH signal, sending to Ping sensor, 95
holes vs. pins, 27
hometown, getting coordinates for, 121
I
Ice, Ice Blinky
determining temperature, 55–56
floating point numbers, 57
function of, 53
improving LED, 56
ingredients, 49
loading up code, 52
making it go, 52
seeing sensor reading, 54
sending and sensing power, 56–57
temperature sensing, 49
if-then
code
for acting on distance measurement, 97
adding to LED, 56
IFTTT (If This Then That), 128, 136–137. See also Send Email with a Button
IFTTT account, making, 131–133
ingredients
Arduino Online, 99
Arduino setup, 1
Dark-Detecting Light, 25
Do I Need an Umbrella Today?, 115
Electric Candle, 79
A Gentle Touch, 59
Hello Blinky World, 15
Ice, Ice, Blinky, 49
Invisible Ruler, 91
Night Light, 39
Online Temperature Tracker, 143
Send Email with a Button, 127
Someone Moved My Stuff!, 69
installing Arduino software
getting help with, 13
for Mac OS X, 4
integers in code, 35
Internet, connecting to, 99–100
Invisible Ruler
fixes, 95
function of, 95
ingredients, 91
making it go, 95
pins on Ping sensor, 92
sensing speed of sound, 96
J
L
LatLong.net, accessing, 121
LED (light-emitting diode)
adding if-then code to, 56
fixing for Ice, Ice Blinky, 52–53
for Hello Blinky World, 16
length of “legs,” 17
lighting up, 97
quirk, 17
turning off and on, 21
LED pin, setting to LOW, 89
libraries, defined, 61
links and code. See code; websites
Linux users, Arduinos for, 10–11
location, determining for Do I Need an Umbrella Today? 120–122
long
, beginning functions with, 96–97
M
math symbols, 88
Microsoft Windows users, Arduinos for, 7–10
minus, symbol for, 87
multiplication, symbol for, 88
N
Night Light
fading, 47
ingredients, 39
making it go, 44
wiring diagram, 40
O
ohms (Ω) symbol, 60
online
logging and charting sensor data, 143–144
online data, downloading, 152. See also data
Online Temperature Tracker. See also temperature
API (application programming interface), 152–153
downloading data, 152
function of, 151
getting data account for free, 147–148
ingredients, 143
inserting wifi info, 148
positioning wifi shield, 145
OpenWeatherMap key, getting for free, 118–120. See also API (application programming interface)
output, declaring ledPin
as, 56–57
P
photoresistor. See also resistors
bringing power to, 28
pin numbers, reassigning, 35
Ping sensor
pins on, 92
sending HIGH signal to, 95
pins
on Ping sensor, 92
plastic, making pressure sensitive, 77
Plot.ly website, 153
port, setting, 12
pow
, explained, 88
power, sending and sensing, 56–57
power supply
purchasing, 77
wiring up, 89
pressure-sensitive plastic, 77
project sources, 157
pulseIn()
function, 96
Q
quote marks ("
), including strings in, 111
R
reading information online, 115–116
resistance, detecting changes in, 49
resistors. See also photoresistor
pairing sensors with, 85
tinkering with, 36
ruler. See Invisible Ruler
S
Send Email with a Button. See also IFTTT (If This Then That)
entering wifi information, 128–131
function of, 139
ingredients, 127
untethering, 140
sensing
speed of sound, 96
sensor circuit, 32
sensor data, logging and charting online, 143–144
sensor reading, seeing for Ice, Ice Blinky, 54
SENSORPIN, making into constant, 57–58
sensorValue
, watching value of, 36–37
Serial Monitor, turning on, 43
sheep glowing, 45
shields, explained, 99
sketches
Arduino Online, 176
Dark-Detecting Light, 166
Do I Need an Umbrella Today? 183
Get Your Arduino Online, 176
Hello Blinky World, 166
Ice, Ice Blinky, 169
Invisible Ruler, 175
Night Light, 168
Online Temperature Tracker, 196
Send Email with a Button, 190
smart objects, 1–2, 18, 39, 91, 99, 127, 153, 157, 159–160, 162
software. See Arduino software downloads
soldering
headers onto wifi board, 100, 104
Someone Moved My Stuff!
equals sign (=), 78
fixes, 76
ingredients, 69
powering alarm, 76
pressure-sensitive plastic, 77
untethering Arduino, 77
sound, sensing speed of, 96
SparkFun WiFi Shield, ordering, 100
SRAM (static random-access memory), 125–126
starting Arduino software, 18
static resistors
colored bands on, 60
using, 36
Stoffregen, Paul, 62
strings, using with Arduino Online, 111
subtraction, symbol for, 88
T
temperature. See also Online Temperature Tracker
sensing, 49
temperature sensor
position of, 50
wiring to Arduino, 51
test
server
, explained, 112
thermistors
explained, 49
wiring for Online Temperature Tracker, 145–146
TMP36 thermistor, 49
tools, 162
toys
glowing, 41
sheep glowing, 45
trigger signal. See Send Email with a Button
troubleshooting. See fixes
U
umbrella project. See Do I Need an Umbrella Today?
upload arrow, identifying, 19
V
Velostat, buying, 77
void
loop()
section
in Dark-Detecting Light, 33
void
setup()
section in Hello Blinky World, 22–23
W
weather forecast. See Do I Need an Umbrella Today?
websites
Arduino forums, 24
Arduino library, 62
code and code blocks, 165
conductive fabric sellers, 67
decoder table for static resistor, 60
Do I Need an Umbrella Today? 117–118
downloading Arduino software, 4
Electric Candle, 86
example.com, 110
A Gentle Touch code, 63
IFTTT (If This Then That), 131
installation help, 13
Invisible Ruler, 94
links and code, 41
online data account, 147
Online Temperature Tracker, 146
Plot.ly, 153
resistor values, 66
Send Email with a Button, 130–134
sketches, 42
soldering irons and tutorial, 80, 100
Someone Moved My Stuff! 73
SparkFun WiFi Shield, 100
thermistors, 49
troubleshooting Arduino installation, 13
Velostat, 77
wifi board
connecting to Internet with, 99–100
getting Arduino library for, 105–106
pressing onto Arduino, 105
soldering headers onto, 100, 104
wifi information
Do I Need an Umbrella Today? 123
Online Temperature Tracker, 148
Send Email with a Button, 131
Windows users, Arduinos for, 7–10
wiring diagrams
Dark-Detecting Light, 31
force sensor project, 71
A Gentle Touch, 60
Invisible Ruler, 93
Night Light, 40
Online Temperature Tracker, 144
Send Email with a Button, 128
Z
.zip files, managing, 62