You are previewing The Maker's Guide to the Zombie Apocalypse.
O'Reilly logo
The Maker's Guide to the Zombie Apocalypse

Book Description

The Maker's Guide to the Zombie Apocalypse is full of real DIY projects that defend against zombies, using simple circuits, Arduino, and Raspberry Pi.

Table of Contents

  1. Cover Page
  2. Title Page
  3. Copyright Page
  4. About the Author
  5. About the Technical Reviewer
  6. Brief Contents
  7. Contents in Detail
  8. Acknowledgments
  9. Introduction
    1. Key Maker Survival Skills
    2. About the Apocalypse Survival Projects
    3. Resources to Download Before the Zombies Rise
  10. Chapter 1: Apocalypse Basics
    1. Zombies
      1. Types of Zombies
      2. Are Zombies Really Dead?
    2. How Long Will the Zombies Be Around?
    3. Postapocalypse Survival 101
      1. Home
      2. Water
      3. Food and Fuel
      4. Zombie Killing
      5. Dressing to Kill
      6. Staying Healthy
    4. Be Prepared
    5. Other Survivors
    6. Parts for Projects
      1. Cars
      2. Brick-and-Mortar Parts Stores
    7. Project Construction
      1. Soldering
      2. Mechanical Construction
      3. Electronic Modules
  11. Chapter 2: Generating Electricity
    1. Power and Energy
    2. Flavors of Electricity
      1. Low-Voltage DC
      2. High-Voltage AC
    3. Batteries
      1. Single-Use Batteries
      2. Rechargeable Batteries
    4. Battery Charging
    5. Project 1: Solar Recharging
      1. Solar Panels
      2. Charge Controllers
      3. What You Will Need
      4. Construction
        1. Step 1: Fix the Solar Panel
        2. Step 2: Attach a Lead to the Solar Panel
        3. Step 3: Wire up the Battery and Charge Controller
        4. Step 4: Testing
      5. Using the Solar Charger
    6. Project 2: Bicycle Generator
      1. What You Will Need
      2. Construction
        1. Step 1: Modify the Bicycle
        2. Step 2: Fix the Alternator and Bike to the 2×4
        3. Step 3: Identify the Alternator Terminals
        4. Step 4: Wiring
        5. Step 5: Final Assembly
      3. Using the Pedal Generator
  12. Chapter 3: Using Electricity
    1. Powering Devices from a Car Battery
      1. Cigarette Lighter Sockets
      2. USB Power
      3. AC Inverters
    2. Project 3: LED Lighting
      1. What You Will Need
      2. Construction
        1. Step 1: Prepare the Electrical Cable
        2. Step 2: Wire Up the Fuse and Switch
        3. Step 3: Install the Lamps
      3. Using the Lighting
    3. Project 4: Battery Monitor
      1. What You Will Need
      2. Construction
        1. STEP 1: Program the Arduino
        2. Step 2: Build the Arduino Sandwich
        3. Step 3: Attach the Resistors and Buzzer
      3. Software
      4. Using the Battery Monitor
  13. Chapter 4: Zombie Alarms
    1. Project 5: Trip Wire Alarm
      1. What You Will Need
      2. Construction
        1. Step 1: Obtain a Microswitch
        2. Step 2: Identify the Microswitch Terminals
        3. Step 3: Preview the Electronic Circuit
        4. Step 4: Prepare the Wires
        5. Step 5: Connect the Battery and Horn
        6. Step 6: Connect the Switch
      3. Using the Trip Wire Alarm
    2. Project 6: PIR Zombie Detector
      1. What You Will Need
        1. Construction
        2. Step 1: Build the Screwshield
        3. Step 2: Make a Lead for the PIR Sensor
        4. Step 3: Connect the PIR to the Screwshield
      2. Software
      3. Using the PIR Zombie Detector
      4. Scavenged PIR Sensors
  14. Chapter 5: Surveillance and Raspberry Pi
    1. The Raspberry Pi
      1. The Raspberry Pi System
      2. What You Will Need
      3. Powering the System
      4. Installing Raspbian
    2. Project 7: Monitor Zombies with a USB Webcam
      1. What You Will Need
      2. Construction
        1. Step 1: Attach the Raspberry Squid
        2. Step 2: Install the USB Webcam
        3. Step 3: Install the Software
      3. Using the Webcam
    3. Project 8: A Wireless Zombie Surveillance System
      1. What You Will Need
      2. Construction
        1. Step 1: Set Up a Local Area Network (LAN)
        2. Step 2: Set Up the Wi-Fi Camera
      3. Using the Wi-Fi Webcam
  15. Chapter 6: Add Remote Access and Detect Open Doors
    1. Project 9: Remote Door Lock
      1. What You Will Need
      2. Construction
        1. Step 1: Making a Switch Box
        2. Step 2: Making the Battery Lead
        3. Step 3: Fitting the Door Latch
        4. Step 4: Wiring
      3. Going Wireless to Open Doors Ahead of Time
    2. Project 10: Door Sensor
      1. What You Will Need
      2. Construction
      3. Software
      4. Using the Door Sensor
  16. Chapter 7: Environmental Monitoring
    1. Project 11: Quiet Fire Alarm
      1. What You Will Need
      2. Construction
        1. Step 1: Disconnect the Buzzer
        2. Step 2: Identify the Leads
        3. Step 3: Solder Components to the Screwshield
        4. Step 4: Connect the Smoke Detector to the Arduino
      3. Software
      4. Using the Fire Alarm
    2. Project 12: Temperature Alarm
      1. What You Will Need
      2. Construction
        1. Step 1: Make a Longer Lead for the TMP36
        2. Step 2: Attach the Temperature Sensor Lead to the Screwshield
      3. Software
      4. Using the Temperature Alarm
  17. Chapter 8: Building a Control Center for Your Base
    1. Project 13: A Raspberry Pi Control Center
      1. What You Will Need
      2. Construction
      3. Software
        1. Arduino Software
        2. Raspberry Pi Software
        3. Threshold Values
        4. Status Labels
        5. Communicating with the Arduino
        6. Keeping Your Control Center Updated
      4. Using the Control Center
    2. Project 14: Going Wireless with Bluetooth
      1. What You Will Need
      2. Construction
        1. Step 1: Solder the Header Pins
        2. Step 2: Soldering the Resistors and Linking Wire
        3. Step 3: Soldering the Bluetooth Module
      3. Software
      4. Using the Bluetooth-Enabled Command Center
  18. Chapter 9: Zombie Distractors
    1. Project 15: Arduino Flash Distractor
      1. What You Will Need
      2. Construction
        1. Step 1: Sort the Cameras
        2. Step 2: Remove the Top Casing from a Camera
        3. Step 3: Make the Camera Safe!
        4. Step 4: Attach Leads to the Trigger Contacts
        5. Step 5: Reassemble and Test the Modified Flash Module
        6. Step 6: Connect the Cameras to the Relay Shield
      3. Software
      4. Using the Flash Distractor
    2. Project 16: Arduino Movement and Sound Distractor
      1. What You Will Need
      2. Construction
        1. Step 1: Remove the Piezo Buzzer from the Smoke Alarm Cover
        2. Step 2: Solder the Header Pins, Buzzer, and Resistor
        3. Step 3: Test the Piezo Sounder
        4. Step 4: Make a Flag
        5. Step 5: Attach the Flag to the Servo Motor
        6. Step 6: Attach the Servo Motor to a Base
        7. Step 7: Connecting the Servo
      3. Software
      4. Using the Sound and Movement Distractor
  19. Chapter 10: Communicating with Other Survivors
    1. Project 17: A Raspberry Pi Radio Transmitter Beacon
      1. What You Will Need
      2. Construction
      3. Software
      4. Using the FM Transmitter
        1. Recording a Message
        2. Running the Transmitter Automatically
    2. Project 18: Arduino FM Radio Frequency Hopper
      1. What You Will Need
      2. Construction
        1. Step 1: Disassemble the Radio
        2. Step 2: Identify the Connection Points
        3. Step 3: Attach the Header Strip
        4. Step 4: Link the Radio to the Arduino
        5. Step 5: Connect Everything Together
      3. Software
      4. Using the Radio Scanner
    3. Project 19: Arduino Morse Code Beacon
      1. What You Will Need
      2. Construction
        1. Step 1: Assemble the Screwshield
        2. Step 2: Solder the Components onto the Screwshield
        3. Step 3: Wire the Underside of the Screwshield
        4. Step 4: Connect the Lamps
        5. Step 5: Final Wiring
      3. Software
      4. Using the Morse Beacon
  20. Chapter 11: Haptic Communication
    1. Project 20: Silent Haptic Communication with Arduino
      1. What You Will Need
      2. Construction
        1. Step 1: Assemble the Protoshield
        2. Step 2: Fix the Components in Position
        3. Step 3: Wire the Underside of the Board
        4. Step 4: Attach the Vibration Motor
        5. Step 5: Repeat for the Other Handset
        6. Step 6: Placing it into an Enclosure
      3. Software
      4. Using The Haptic Communicator
  21. Appendix A: Parts
    1. A Note on Brick-and-mortar Suppliers
    2. Electronics Modules
    3. Raspberry Pi and Related Parts
    4. Leads and Connectors
    5. Tools
    6. Electronic Components
    7. Other Hardware
    8. Resistor Color Codes
  22. Appendix B: Basic Skills
    1. Stripping Wires
    2. Joining Wires by Twisting
    3. Soldering Basics
      1. Joining Wires with Solder
      2. Soldering a PCB
    4. Using Heatshrink
    5. Using a Multimeter
      1. Measuring DC Voltage
      2. Measuring DC Current
      3. Measuring Resistance
      4. Continuity Testing
      5. Bells and Whistles
  23. Appendix C: Arduino Primer
    1. What Is an Arduino?
    2. Arduino Software
      1. Installing the Arduino IDE
      2. Uploading a Sketch
      3. Installing the Antizombie Sketches
    3. Arduino Programming Basics
      1. Structure of an Arduino Sketch
      2. Creating Variables and Constants
      3. Configuring Digital Outputs
      4. Configuring Digital Inputs
      5. Stabilizing Digital Inputs with Pull-up Resistors
      6. Reading Analog Inputs
      7. Writing to Analog Outputs
      8. Repeating Code in Control Loops
      9. Setting Two Conditions with If/Else
      10. Making Logical Comparisons
      11. Grouping Code into Functions
    4. Assembling a Screwshield
    5. Further Resources
  24. Index
    1. Symbols and Numbers
  25. Resources