O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Raspberry Pi Robotic Blueprints

Book Description

Utilize the powerful ingredients of Raspberry Pi to bring to life your amazing robots that can act, draw, and have fun with laser tags

About This Book

  • Learn to implement a number of features offered by Raspberry Pi to build your own amazing robots
  • Understand how to add vision and voice to your robots.
  • This fast-paced practical guide comprises a number of creative projects to take your Raspberry Pi knowledge to the next level

Who This Book Is For

This all-encompassing guide was created for anyone who is interested in expanding their knowledge in applying the peripherals of Raspberry Pi. If you have a fancy for building complex-looking robots with simple, inexpensive, and readily available hardware, then this book is ideal for you. Prior understanding of Raspberry Pi with simple mechanical systems is recommended.

What You Will Learn

  • Add sensors to your robot so that it can sense the world around it
  • Know everything there is to know about accessing motors and servos to provide movement to the robotic platform
  • Explore the feature of adding vision to your robot so it can “see” the world around it
  • Refine your robot with the skill of speech recognition so that it can receive commands
  • Polish your robot by adding speech output so it can communicate with the world around it
  • Maximize the use of servos in Raspberry Pi to create a drawing robot
  • Strengthen your robot by adding wireless communication skills so you can see what the robot is seeing and control it from a distance
  • Build an unbelievable autonomous hexcopter controlled by Raspberry Pi

In Detail

The Raspberry Pi is a series of credit card-sized single-board computers developed in the UK by the Raspberry Pi Foundation with the intention of promoting the teaching of basic computer science in schools. The Raspberry Pi is known as a tiny computer built on a single circuit board. It runs a Linux operating system, and has connection ports for various peripherals so that it can be hooked up to sensors, motors, cameras, and more. Raspberry Pi has been hugely popular among hardware hobbyists for various projects, including robotics.

This book gives you an insight into implementing several creative projects using the peripherals provided by Raspberry Pi. To start, we’ll walk through the basic robotics concepts that the world of Raspberry Pi offers us, implementing wireless communication to control your robot from a distance. Next, we demonstrate how to build a sensible and a visionary robot, maximizing the use of sensors and step controllers. After that, we focus on building a wheeled robot that can draw and play hockey. To finish with a bang, we’ll build an autonomous hexcopter, that is, a flying robot controlled by Raspberry Pi.

By the end of this book, you will be a maestro in applying an array of different technologies to create almost any imaginable robot.

Style and approach

This book is an easy-to-follow, project-based guide that throws you directly into the action of creating almost any imaginable robot through blueprints. It is full of step by step instructions and screenshots to help you build amazing robots in no time at all.

Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the code file.

Table of Contents

  1. Raspberry Pi Robotic Blueprints
    1. Table of Contents
    2. Raspberry Pi Robotic Blueprints
    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. Downloading the color images of this book
        3. Errata
        4. Piracy
        5. Questions
    8. 1. Adding Raspberry Pi to an RC Vehicle
      1. Configuring Raspberry Pi – The brain of your projects
      2. Configuring and controlling an RC car with Raspberry Pi
      3. Controlling the RC car using Raspberry Pi in Python
      4. Accessing the RC car remotely
      5. Summary
    9. 2. Adding Raspberry Pi to a Humanoid Robot
      1. Giving your robot voice commands
      2. Using eSpeak to allow your robot to respond in voice
      3. Using pocketsphinx to accept your voice commands
      4. Interpreting commands and initiating actions
      5. Summary
    10. 3. Building a Tracked Vehicle That Can Plan Its Own Path
      1. Basic motor control and the tracked vehicle
      2. Controlling the tracked vehicle using Raspberry Pi in Python
      3. Connecting Raspberry Pi to a USB sonar sensor
      4. Connecting a digital compass to the Raspberry Pi
      5. Accessing the compass programmatically
      6. Dynamic path planning for your robot
        1. Basic path planning
      7. Avoiding obstacles
      8. Summary
    11. 4. Building a Robot That Can Play Laser Tag
      1. Building and controlling a basic wheeled vehicle
      2. Using the robot library to programmatically control your robot
      3. Controlling your robot from a remote computer
      4. Adding a game controller to your remote system
      5. Connecting the laser source and target
      6. Summary
    12. 5. A Robot That Can Draw
      1. Constructing a drawing platform using servos and brackets
      2. Configuring the software
      3. Creating a program in Python to control the mobile platform
      4. Simple drawing using the robotic arm
      5. A simple Python drawing program
      6. Summary
    13. 6. A Robot That Can Play Air Hockey
      1. Constructing the platform
      2. Controlling the paddle using stepper motors
      3. Moving the paddle with Arduino code
      4. Seeing the puck using OpenCV
        1. Installing a USB camera on Raspberry Pi
      5. Downloading and installing OpenCV – a fully featured vision library
      6. Color finding with OpenCV
      7. Tracking the puck
      8. Moving the paddle to strike the puck
      9. Summary
    14. 7. A Robot That Can Fly
      1. Constructing the platform
      2. Mission planning software
      3. Summary
    15. Index