Raspberry Pi Robotic Projects

Raspberry Pi Robotic Projects
eBook: $26.99
Formats: PDF, PacktLib, ePub and Mobi formats
save 20%!
Print + free eBook + free PacktLib access to the book: $71.98    Print cover: $44.99
save 7%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Table of Contents
Sample Chapters
  • Make your projects talk and understand speech with Raspberry Pi
  • Use standard webcam to make your projects see and enhance vision capabilities
  • Full of simple, easy-to-understand instructions to bring your Raspberry Pi online for developing robotics projects

Book Details

Language : English
Paperback : 278 pages [ 235mm x 191mm ]
Release Date : February 2014
ISBN : 184969432X
ISBN 13 : 9781849694322
Author(s) : Dr Richard Grimmet
Topics and Technologies : All Books, Other

Table of Contents

Chapter 1: Getting Started with Raspberry Pi
Chapter 2: Programming Raspberry Pi
Chapter 3: Providing Speech Input and Output
Chapter 4: Adding Vision to Raspberry Pi
Chapter 5: Creating Mobile Robots on Wheels
Chapter 6: Making the Unit Very Mobile – Controlling the Movement of a Robot with Legs
Chapter 7: Avoiding Obstacles Using Sensors
Chapter 8: Going Truly Mobile – The Remote Control of Your Robot
Chapter 9: Using a GPS Receiver to Locate Your Robot
Chapter 10: System Dynamics
Chapter 11: By Land, Sea, and Air
  • Chapter 2: Programming Raspberry Pi
    • Basic Linux commands on Raspberry Pi
    • Creating, editing, and saving files on Raspberry Pi
    • Creating and running Python programs on Raspberry Pi
    • Basic programming constructs on Raspberry Pi
      • The if statement
      • The while statement
      • Working with functions
      • Libraries/modules in Python
      • The object-oriented code
    • Introduction to the C/C++ programming language
    • Summary
  • Chapter 3: Providing Speech Input and Output
    • Hooking up the hardware to make and input sound
    • Using Espeak to allow our projects to respond in a robot voice
    • Using PocketSphinx to accept your voice commands
    • Interpreting commands and initiating actions
    • Summary
  • Chapter 4: Adding Vision to Raspberry Pi
    • Connecting the USB camera to Raspberry Pi and viewing the images
    • Downloading and installing OpenCV – a fully featured vision library
    • Using the vision library to detect colored objects
    • Summary
  • Chapter 5: Creating Mobile Robots on Wheels
    • Gathering the required hardware
    • Using a motor controller to control the speed of your platform
    • Controlling your mobile platform programmatically using Raspberry Pi
    • Making your mobile platform truly mobile by issuing voice commands
    • Summary
  • Chapter 7: Avoiding Obstacles Using Sensors
    • Gathering the hardware
    • Connecting Raspberry Pi to an infrared sensor
    • Connecting Raspberry Pi to a USB sonar sensor
      • Connecting the hardware
    • Using a servo to move a single sensor
    • Summary
  • Chapter 10: System Dynamics
    • Getting started
    • Creating a general control structure
    • Using the structure of the Robot Operating System to enable complex functionalities
    • Summary
  • Chapter 11: By Land, Sea, and Air
    • Using Raspberry Pi to sail
      • Getting started
    • Using Raspberry Pi to fly robots
    • Using Raspberry Pi to make the robot swim underwater
    • Summary

Dr Richard Grimmet

Dr Richard Grimmet has always been fascinated by computers and electronics from his very first programming project that used Fortran on punch cards. He has a Bachelors and Master’s degree in Electrical Engineering and a PhD in Leadership Studies. He also has 26 years of experience in the Radar and Telecommunications industries, and even has one of the original brick phones. He now teaches Computer Science and Electrical Engineering at Brigham Young University, Idaho, where his office is filled with his many robotics projects. He recently completed a book on using the BeagleBone Black for robotics projects, and another for the Raspberry Pi.

Sorry, we don't have any reviews for this title yet.

Code Downloads

Download the code and support files for this book.

Submit Errata

Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.


- 4 submitted: last submission 26 Jun 2014

Type: Code | Page number 3 and 15

The command: sudodd if=2013-09-25-wheezy-raspbian.img of=/dev/sdX

Should be: sudo dd if=2013-09-25-wheezy-raspbian.img of=/dev/sdX


Type: Code | Page number 23

The command: sudoapt-getinstall tightvncserverin

Should be: sudo apt-get install tightvncserver


Type: Code | Page number 32

The command: sudo apt-get installnmap

Should be: sudo apt-get install nmap


The command: sudonmap -sP

Should be: sudo nmap -sP

Type: Technical | Page number: 78

In the section "Interpreting commands and initiating actions", the path for the code continuous.c is given as:


It should be:


Type: Technical | Page number: 112

For the connections diagram shown on page 112, refer to this diagram.

Type: Other | Page number 2

The term "7-zip" should be "7-Zip".


Type: Technical | Page number 22

"Secure Shell Hypterminal" should be "Secure Shell Hyperterminal".


Type: Code | Page number 23

"sshpi157.201.194.187 –p 22" should be "ssh pi157.201.194.187 –p 22"


Type: Technical | Page number 31

The sentence "..if I want to copy the term robot.py" should be "if I want to copy the file robot.py".

Sample chapters

You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

Frequently bought together

Raspberry Pi Robotic Projects +    Haskell Data Analysis Cookbook =
50% Off
the second eBook
Price for both: $41.55

Buy both these recommended eBooks together and get 50% off the cheapest eBook.

What you will learn from this book

  • 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

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.


This book is for enthusiasts who want to use Raspberry Pi to build complex robotics projects. However, some programming background is recommended. With the aid of the step-by-step instructions in this book, you can construct complex robotics projects that can move, talk, listen, see, swim, or fly.

Who this book is for

Raspberry Pi Robotic Projects is an easy-to-follow, step-by-step projects guide packed full of examples of actual robotics projects. Each topic is explained in detail to make it easy to replicate the projects described.

Code Download and Errata
Packt Anytime, Anywhere
Register Books
Print Upgrades
eBook Downloads
Video Support
Contact Us
Awards Voting Nominations Previous Winners
Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software