Book Image

Raspberry Pi Robotic Projects - Third Edition

By : Richard Grimmett, Jon Witts
Book Image

Raspberry Pi Robotic Projects - Third Edition

By: Richard Grimmett, Jon Witts

Overview of this book

This book will allow you to take full advantage of Raspberry Pi Zero and Raspberry Pi 3 by building both simple and complex robotic projects. The book takes a mission-critical approach to show you how to build amazing robots and helps you decide which board to use for which type of robot. The book puts a special emphasis on designing mobile (or movable) robots using the Raspberry Pi Zero. The projects will show inexpensive, yet powerful, ways to take full advantage. It will teach you how to program Raspberry Pi, control the movement of your robot, and add features to your robots.
Table of Contents (13 chapters)
Raspberry Pi Robotic Projects - Third Edition
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface

Adding the RaspiCamera


There is a simple yet small way to capture images and video that is perfect for this application, the Raspberry Pi camera board. Here is an image of this product:

The camera connects to the Raspberry Pi by installing it into the connector marked camera on the Raspberry Pi. To see how this is done, watch the video at http://www.raspberrypi.org/help/camera-module-setup/.

Once the device is connected, you can access the device by enabling it through the configuration utility. To enable the camera, perform the following steps:

  1. Run the configuration utility by typing sudo raspi-config.

  2. Select the Enable Camera option, as shown in the following screenshot:

  3. Select the Enable Camera, then exit the utility and reboot the device.

To take a picture with the camera, simply type raspistill -o image.jpg. This will take a picture with the camera, and then store the image in a image.jpg file. Once you have the picture, you can view it by opening the Raspberry Pi image viewer by selecting...