Book Image

Getting Started with Raspberry Pi Zero

By : Richard Grimmett
Book Image

Getting Started with Raspberry Pi Zero

By: Richard Grimmett

Overview of this book

Raspberry Pi Zero is half the size of Raspberry Pi A, only with twice the utility. At just three centimeters wide, it packs in every utility required for full-fledged computing tasks. This practical tutorial will help you quickly get up and running with Raspberry Pi Zero to control hardware and software and write simple programs and games. You will learn to build creative programs and exciting games with little or no programming experience. We cover all the features of Raspberry Pi Zero as you discover how to configure software and hardware, and control external devices. You will find out how to navigate your way in Raspbian, write simple Python scripts, and create simple DIY programs.
Table of Contents (16 chapters)
Getting Started with Raspberry Pi Zero
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Moving the robotic hand


In order to move the servos, you'll use a servo controller similar to the one introduced in Chapter 5, Building a Robot That Can Walk, to control six servos that will control the fingers, thumb, and wrist. As in Chapter 5, Building a Robot That Can Walk, the servo controller you are going to use for this project is a simple servo motor controller using the USB from Pololu. However, since you only need to control five servos, you can order the six-servo controller version available at https://www.pololu.com. Here is an image of the unit:

Make sure you order the assembled version. This piece of hardware will turn the USB commands from the Raspberry Pi Zero into signals that control your servo motors. There are two connections that you'll need to make to the servo controller to get started: the first to the servo motors and the second to a power source.

First, connect the servos to the controller. In order to be consistent, let's connect your six servos to the connections...