You are previewing Make: Raspberry Pi and AVR Projects.
O'Reilly logo
Make: Raspberry Pi and AVR Projects

Book Description

As an incredibly cheap, credit-card sized computer, the Raspberry Pi is breaking down barriers by encouraging people of all ages to experiment with code and build new systems and objects; and this book provides readers with inspiring and insightful examples to explore and build upon. Written for intermediate to seasoned Raspberry Pi users, this book explores four projects from around the world, explained by their makers. These projects cover five major categories in the digital maker space: music, light, games, home automation, and the Internet of Things.

Table of Contents

  1. Preface
    1. Book-wide bill of materials
    2. Conventions Used in This Book
    3. Using Code Examples
    4. Safari® Books Online
    5. How to Contact Us
    6. About the Authors
    7. Acknowledgments
      1. Clare Bowman and Cefn Hoile
      2. Brian Corteil
      3. Sjoerd Dirk Meijer
      4. Lauren Orsini
  2. 1. Introduction
    1. The Power of the Pi
    2. Raspbian
    3. Who Is This Book For?
    4. Projects in This Book
  3. 2. Picussion
    1. Materials and Tools
      1. Solderless Breadboarding Materials
      2. Solderless Breadboard Tools
      3. Soldering Materials
      4. Soldering Tools
    2. Configuring Your Raspberry Pi
    3. Exercise 1: Blink
      1. Attaching the UART
      2. Testing with the Blink Sketch
      3. Troubleshooting
    4. Exercise 2: Knock
      1. Loading the Knock Sketch
      2. Displaying Knock Messages in the Python Shell
      3. Loading a Python Script to Display Knock! Messages
    5. Exercise 3: Sending Knock Messages Wirelessly
      1. Using Bluetooth for Programming
      2. Transmitting Wireless Messages
      3. Triggering Audio
      4. Troubleshooting Audio from the Pi
    6. Exercise 4: Talking Wearables
      1. Using Python Threading for Multiple Wearables
      2. Running Audio on Multiple Wearables
    7. Exercise 5: One Man Band
      1. Adding an Accelerometer
      2. Detecting Orientation
      3. Adding the KnockLedControl Sketch
      4. Processing Accelerometer Data on the Pi
      5. Running the One Man Band
      6. How the One Man Band Works
      7. Proper Gestures for the One Man Band
    8. Where Next?
  4. 3. Raspberries from Scratch
    1. The Conductive Keyboard
      1. Materials
      2. Installing Software
      3. Raspberry Pi as AVR Programmer
    2. Building the Conductive Keyboard
      1. Exercise 1
      2. Exercise 2
      3. Exercise 3
      4. Exercise 4
      5. Exercise 5
      6. Testing the Conductive Keyboard
    3. Extending the Conductive Keyboard
      1. Exercise 6
      2. Exercise 7
      3. Exercise 8
      4. Exercise 9
      5. Programming and Testing the Conductive Keyboard
    4. Using the Conductive Keyboard
    5. Using the ShrimpKey with Scratch
    6. A Scratch Primer
      1. Using the Conductive Keyboard in Scratch
    7. Project 1: Interactive Art Project
      1. Using the Conductive Keyboard with the Art Project
    8. Project 2: Memory Game
    9. Summary
  5. 4. The Internet of Fish
    1. Materials
      1. Hardware Materials
      2. Software Materials
    2. Before You Start
      1. Setting Up SSH Communication
    3. A Thermometer That Reads and Writes
    4. Texting with Raspberry Pi
      1. Sign Up for Twilio
      2. Put Raspberry Pi in the Loop
      3. Update temp.py
    5. Building the Pi Web Server
      1. Set Up Apache
      2. Make a Basic Website
      3. Install MySQL
      4. Build a Database
      5. Connect the MySQL Database to temp.py
      6. Connect the MySQL Database to data.php
      7. Design a Graph
      8. Next Steps and Acknowledgments
  6. 5. Internet-Connected Giraffe Mood Lamp
    1. Materials and Tools
      1. Hardware
      2. Electronics
      3. Selecting a Lamp
      4. Tools
      5. Adding the Required Packages
      6. Creating a Twitter Account for Your Lamp
      7. Downloading Code for the Lamp and Configuring Twitter Access
      8. Walking Through lamp.py
      9. onArg.py
      10. Walking Through onArg.py
      11. Running lamp.py When the Raspberry Pi Starts
    2. Building the Lamp
      1. Hacking the Lamp
      2. DC-to-DC Converter
      3. The RGB Matrix
      4. The Switch
      5. The Stripboard
      6. The Base
    3. Putting It All Together
    4. Where to Go from Here?
  7. A. Appendix: The Missing Pieces
    1. Downloading the Book’s Source Code
    2. Installing Raspbian
    3. Configuring the WiFi Adapter
    4. From Breadboard to Stripboard
    5. Reassigning Conductive Keyboard Keys
    6. Manual Installation
      1. Enabling SPI (Serial Peripheral Interface)
      2. Install AVRDUDE
      3. Install Arduino IDE
      4. Download the ShrimpKey Software
      5. Add Configuration for USBasp Devices
      6. Install ScratchGPIO
      7. Configure the Arduino IDE
  8. Index