Raspberry Pi Robotic Projects

Book description

Enter the wonderful world of Robotics via Raspberry Pi. Unlock the massive potential of this tiny PC with a step by step guide that will teach you everything from voice recognition to wireless control. Have fun!

In Detail

Robotics development is accelerating, and an amazing array of new hardware and software capabilities are available to anyone with an interest in the area. Robots will soon be a part of our everyday life, and it will soon be as important to know how they work as it is to know how a computer works. Raspberry Pi is a credit-card sized, fully capable PC that can be used for many of the things that your desktop PC does, such as spreadsheets, word processing, and games.

This book starts with the essentials of turning on the basic hardware. It provides the capability to interpret your commands and have your robot initiate actions. By the time you are through, you'll have robots that can speak, listen, and move in a number of amazing ways.

This book is a step-by-step projects guide to unlocking some complex and interesting capabilities of Raspberry Pi. Teaching you to use Raspberry Pi from scratch, this book will discuss a wide range of capabilities that can be achieved with it. These capabilities include voice recognition, human-like speech simulation, computer vision, motor control, GPS location, and wireless control. You will then learn how to combine these capabilities to create your own robotics projects.

By the time you have completed this book, you will be able to use Raspberry Pi to create some complex and fascinating robotics projects with a vast array of capabilities.

What You Will Learn

  • Unbox, power-up, and configure Raspberry Pi with Ubuntu, a powerful version of Linux
  • Exercise vision control in your projects to distinguish colors, patterns, or movements
  • Apply and control speech software to enable your projects to speak
  • Discover external hardware to enable your robotics projects to move
  • Create complex robotics projects that can move, swim, or even fly
  • Interact with your projects wirelessly so that they can be truly autonomous

Publisher resources

Download Example Code

Table of contents

  1. Raspberry Pi Robotic Projects
    1. Table of Contents
    2. Raspberry Pi Robotic Projects
    3. Credits
    4. About the Author
    5. About the Reviewers
    6. www.PacktPub.com
      1. Support files, eBooks, discount offers and more
        1. Why Subscribe?
        2. Free Access for Packt account holders
    7. Preface
      1. What this book covers
      2. What you need for this book
      3. Who this book is for
      4. Conventions
      5. Reader feedback
      6. Customer support
        1. Downloading the example code
        2. Errata
        3. Piracy
        4. Questions
    8. 1. Getting Started with Raspberry Pi
      1. Getting started
        1. The unveiling
      2. Hooking up a keyboard, mouse, and display
      3. Installing the operating system
      4. Accessing the board remotely
      5. Summary
    9. 2. Programming Raspberry Pi
      1. Basic Linux commands on Raspberry Pi
      2. Creating, editing, and saving files on Raspberry Pi
      3. Creating and running Python programs on Raspberry Pi
      4. Basic programming constructs on Raspberry Pi
        1. The if statement
        2. The while statement
        3. Working with functions
        4. Libraries/modules in Python
        5. The object-oriented code
      5. Introduction to the C/C++ programming language
      6. Summary
    10. 3. Providing Speech Input and Output
      1. Hooking up the hardware to make and input sound
      2. Using Espeak to allow our projects to respond in a robot voice
      3. Using PocketSphinx to accept your voice commands
      4. Interpreting commands and initiating actions
      5. Summary
    11. 4. Adding Vision to Raspberry Pi
      1. Connecting the USB camera to Raspberry Pi and viewing the images
      2. Downloading and installing OpenCV – a fully featured vision library
      3. Using the vision library to detect colored objects
      4. Summary
    12. 5. Creating Mobile Robots on Wheels
      1. Gathering the required hardware
      2. Using a motor controller to control the speed of your platform
      3. Controlling your mobile platform programmatically using Raspberry Pi
      4. Making your mobile platform truly mobile by issuing voice commands
      5. Summary
    13. 6. Making the Unit Very Mobile – Controlling the Movement of a Robot with Legs
      1. Gathering the hardware
      2. Connecting Raspberry Pi to the mobile platform using a servo controller
        1. Connecting the hardware
        2. Configuring the software
      3. Creating a program in Linux to control the mobile platform
      4. Making your mobile platform truly mobile by issuing voice commands
      5. Summary
    14. 7. Avoiding Obstacles Using Sensors
      1. Gathering the hardware
      2. Connecting Raspberry Pi to an infrared sensor
      3. Connecting Raspberry Pi to a USB sonar sensor
        1. Connecting the hardware
      4. Using a servo to move a single sensor
      5. Summary
    15. 8. Going Truly Mobile – The Remote Control of Your Robot
      1. Gathering the hardware
      2. Connecting Raspberry Pi to a wireless USB keyboard
      3. Using the keyboard to control your project
      4. Working remotely with your Raspberry Pi through a wireless LAN
      5. Working remotely with your Raspberry Pi through ZigBee
      6. Summary
    16. 9. Using a GPS Receiver to Locate Your Robot
      1. Connecting Raspberry Pi to a GPS device
      2. Accessing the GPS programmatically
      3. Summary
    17. 10. System Dynamics
      1. Getting started
      2. Creating a general control structure
      3. Using the structure of the Robot Operating System to enable complex functionalities
      4. Summary
    18. 11. By Land, Sea, and Air
      1. Using Raspberry Pi to sail
        1. Getting started
      2. Using Raspberry Pi to fly robots
      3. Using Raspberry Pi to make the robot swim underwater
      4. Summary
    19. Index

Product information

  • Title: Raspberry Pi Robotic Projects
  • Author(s):
  • Release date: February 2014
  • Publisher(s): Packt Publishing
  • ISBN: 9781849694322