plant watering, 172
playfield
element, 115
playfields, Breakout clone
game, 115, 118, 121
PlayStation Eye, 148
position
, 121
_positions
variable, 232
power
about, 7
breadboards, 41
external, 8
motors, 235
pins, 8
selection jumper, 7
voltage, 88
Pragduino game, 153–162
definitions, 155–158
game loop, 160–162
state, 155, 158
troubleshooting, 162
preferences, Arduino IDE, 26–
27
print
blinking LEDs project, 30
distance measuring
project, 85
floating-point numbers,
85
TV thermometer project,
137
printPGM
, 159
print_ip_address
, 179
println
, 30, 85
private instance variables, 65
Processing
limitations, 267
Tweeting sensor data,
166, 168–172, 181
PROGMEM
, 140
programming
advanced Arduino pro-
gramming, 249–252
Arduino programming
language, 28
resources, xiv
programs, see sketches
Proto shields
Adafruit Experimentation
Kit for Arduino, xix
advantages, 106
images, 100, 108
parts list, xxi
protocol types, infrared sig-
nals, 206, 219
protocols, serial communica-
tion, 253
prototypes, JavaScript, 275,
277
pseudorandom numbers, 47–
48
PSTR
, 160
publishing
libraries, 71–73
sensor data, 166
pull-down resistors, 49
pull-up resistors, 49
pulseIn
, 82
pushbuttons
adding, 53–54
circuit, 49
connecting, 49
debouncing, 52, 55–58,
109
dice project, 48–55
images, 48
light switch, 50–53
motion-sensing game
controller, 107
parts list, xx
simple program, 49
troubleshooting, 60
using, 48–53
PuTTY, 32
PWR_SEL jumper, 7
pyserial library, 263
Python, serial programming,
263
Q
QUIT
, 187
quitting
email from command-
line, 187
screen
, 34
quotes
char
literals, 17
strings, 18
R
\r\n (carriage return charac-
ter), 218
radius, Pragduino game, 156
RAM, image data, 140
random
function, 47–48
random numbers, generating,
47–48, 234
random seed, 48
randomSeed()
, 48
raster scan, 128
RCA cable
Adafruit Experimentation
Kit for Arduino, xix
connecting Arduino to
TV, 131–133, 144
images, 128
Nunchuk video game
console, 153
parts list, xxi
RCPT TO:
, 187
read
controlling status LED
exercise, 29
Daytime service project,
177
Nunchuk controller, 151
serial programming with
Perl, 265
readBytes
, 261
readLine
, 261, 276
readStringUntil
, 170
read_char_time
, 265
read_line
, 217, 220
read_response
, 191
reader example, analog, 255–
265
readline
, 264
README
file, 72
receive listener, Google
Chrome apps, 273, 277
receive_from_server
, 217, 220
redundancy, 55
remote
, 214
remote control lawnmower,
222
remote control project, 201–
223
Blaminatr project, 235
cloning a remote, 207–
212
controlling from browser,
212–223
exercises, 223
grabbing codes, 203–207
ideas, 222
infrared proxy, 216–223
theory, 202
troubleshooting, 223
remote.js
, 214
requestFrom
, 151
request_data
, 150–151
resetMovingObjects
, 118
resistance basics, 239–243
Index • 292
www.it-ebooks.info