“blobby” solder joints, 234–235
blood, infection from, 13
Bluetooth, wireless Raspberry Pi control center using, 149–156
constructing, 150–154
materials for, 150
software for, 154–156
using, 156
Bluetooth dongles, 149
Bluetooth HC-06 modules, 149–154
Blum, Jeremy, 249, 261
boats, 10
bombs, 12
Booleans, 59
brick-and-mortar suppliers, 16–17, 222
Buzzer mode, of multimeters, 241
buzzers
in Arduino movement and sound distractor project, 170
in battery monitor project, 54, 56–57
in quiet fire alarm project, 123–125
buzzerVolume constant, 218
buzzMinDuration constant, 218, 220
byte data array, 218
C
Cambridge Silicon Radio (CSR) device, 149
camera_res constraint, 92–93
cameras
as flash distractors, 158–169
constructing, 161–166
materials for, 160
software for, 166–168
using, 168–169
for surveillance 87–96
construction, 89–95
materials for, 88–89
using, 95–96
Capacitance setting, on multimeters, 242
capacitor of flash modules, discharging, 163
car batteries. See also batteries
benefits of, 25
caution using, 47
monitoring, 47–48
powering devices from, 46–49
AC inverters, 49–50
cigarette lighter sockets, 46–48
USB power, 48–49
projects using. See battery monitor; bicycle generator; LED lighting; solar recharger; trip wire alarm
protecting from damage, 47
cars, parts from, 15–16
char arrays, 202
charge controllers. See solar recharger
charging batteries, 25–26
check_for_movement function, 93, 95
checkDoor function, 116
checkForBuzz function, 219, 220
checkPIR function, 77
checkSmoke function, 130
checkTemp function, 135–136
Chromium browser, 86–87
cigarette lighter sockets, 46–48
cigarette lighter–to–barrel jack adapter, 169
clothing, 12–13
comments, in Arduino sketches, 250
communication. See Arduino FM radio frequency hopper; Arduino Morse code beacon; haptic communicator; Raspberry Pi radio transmitter beacon
computer monitors. See monitors, computer
computers, laptop. See laptop computers
connection sockets, Arduino microcontroller board, 244
connectors, 223
const keyword, 250
constants, creating, 250
construction of projects. See project construction
Continuity mode, of multimeters, 241
continuity testing, 241–242
control center for base. See Raspberry Pi control center
control_center_ usb.py file, 145
control loops, repeating code in, 254–256
control.py program, 145, 156
cooking, power consumption of, 21
count variable, 95, 195, 196
crontab utility, 187
CSR (Cambridge Silicon Radio) device, 149
curly brackets ({ }), 250
current. See also AC (alternating current); DC (direct current)
range of, on multimeters, 242
vs. voltage, 22
D
D+ (field connection), on alternators, 39
DC (direct current), 22–23
adapters for converting AC to, 24
inverters for converting to AC, 24, 49
measuring, 239–240
measuring voltage, 238–239
DC power jack, Arduino microcontroller board, 245
delay function, 168, 251
DHCP (Dynamic Host Configuration Protocol), 99, 100, 102
diff_image image, 94
digital inputs
configuring, 251–252
stabilizing using pull-up resistors, 252–253
digital outputs, configuring, 251
digitalWrite function, 251, 257–259
direct current. See DC (direct current)
displayBar function, 61
displayVoltage function, 60
disposable cameras. See Arduino flash distractor
distance parameter, 93
door lock. See remote door lock
door sensor, 112–117
constructing, 114–115
materials for, 113–114
software for, 115–116
using, 117
double equal sign (==), 252
double slash (//), 250
drive belts, 26. See also bicycle generator
dry joints, 231
Dynamic Host Configuration Protocol (DHCP), 99, 100, 102
E
EEPROM memory, 201, 203
electricity generation, 19–43. See also batteries
with bicycle, 34–43
constructing, 35–43
materials for, 35
using, 43
power vs. energy, 20–21
via solar power, 26–34
charge controllers, 26–27
constructing, 28–33
materials for, 27–28
solar panels, 26
using, 32–33
types of electricity, 21–24
electricity use, 45–61
battery monitor, 53–61
constructing, 55–57
materials for, 54–55
software for, 57–61
using, 61
LED lighting, 49–53
constructing, 50–52
materials for, 50
using, 52–53
powering devices from car battery, 46–49
AC inverters, 49–50
cigarette lighter sockets, 46–48
USB power, 48–49
electric room heater, power consumption of, 21
electric shower, power consumption of, 21
electromechanical door latch. See remote door lock
electronic components, 224–225
electronic modules, 17–18, 222
else command, 256
energy, vs. power, 20–21
environmental monitoring. See quiet fire alarm
Exploring Arduino (Blum), 261
explosives, 12
F
f constant, 177
farming, 11
field connection (D+), on alternators, 39
fighting zombies, 11–13
File menu, Arduino IDE, 247
flags, in Arduino movement and sound distractor, 175
flashCircle function, 167–168
flashDotOrDash function, 205
flashguns. See Arduino flash distractor
flashMessage function, 204
flashPins constant integer array, 166–167
flashSequence function, 204, 205
float constant, 135
floating inputs, 252
floats, 58
FM (frequency modulation), 186
FM radio, power consumption of, 21
food
bartering for, 34
during zombie apocalypse, 11
power consumption of cooking, 21
for command, 254
for loop, 258
frequency measurement, on multimeters, 242
frequency modulation (FM), 186
Fry’s Electronics, 222
fuel, 11
functions, grouping code into, 257–259
fuses, 41
connecting (in LED lighting project), 51–52
using with car batteries, 47
G