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

Connecting the servo controller to the Raspberry Pi Zero


You've checked the servo motor controller and the servos; you'll now connect the motor controller to the Raspberry Pi Zero and make sure that you can control the servos from it. Remove the USB cable from the PC and connect it to the Raspberry Pi Zero. The entire system will look similar to the following image:

The Raspberry Pi Zero is in the middle, the motor controller is to the right, and the powered hub to the left. The alligator clips below are connected to a power supply; eventually you'll want to connect these to a battery.

Let's now talk to the motor controller by downloading the Linux code from Pololu at www.pololu.com/docs/0J40/3.b:

  1. Perhaps the best way is to log on to your Raspberry Pi Zero through PuTTY, then type wget http://www.pololu.com/file/download/maestro-linux-100507.tar.gz?file_id=0J315.

  2. Then, move the file using mv maestro-linux-100507.tar.gz\?file_id\=0J315 maestro-linux-100507.tar.gz.

  3. Unpack the file by typing tar...