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

Chapter 3. Accessing the GPIO Pins on Raspberry Pi Zero

Now that you are familiar with Raspberry Pi Zero and also how to create, edit, and upload a program, this chapter will turn your focus to the hardware. You'll get the chance to learn how to connect and access, from the software, the capabilities of the Raspberry Pi GPIO pins.

In this chapter you'll learn:

  • All about Raspberry Pi Zero's GPIO pins and what they can and can't do

  • A very basic circuit and very simple programming examples of how to interface Raspberry Pi Zero's GPIO to produce a digital control signal

  • A more complex example of how to interface Raspberry Pi Zero's GPIO with a sonar sensor

  • An example of how to connect an I2C device to Raspberry Pi Zero