Book Image

Raspberry Pi Zero Cookbook

Book Image

Raspberry Pi Zero Cookbook

Overview of this book

The Raspberry Pi Zero, one of the most inexpensive, fully-functional computers available, is a powerful and revolutionary product developed by the Raspberry Pi Foundation. The Raspberry Pi Zero opens up a new world for the makers out there. This book will give you expertise with the Raspberry Pi Zero, providing all the necessary recipes that will get you up and running. In this book, you will learn how to prepare your own circuits rather than buying the expensive add–ons available in the market. We start by showing you how to set up and manage the Pi Zero and then move on to configuring the hardware, running it with Linux, and programming it with Python scripts. Later, we integrate the Raspberry Pi Zero with sensors, motors, and other hardware. You will also get hands-on with interesting projects in media centers, IoT, and more.
Table of Contents (17 chapters)
Raspberry Pi Zero Cookbook
Credits
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface

Pin configurations and precautions for using the GPIO pins


The general-purpose input/output, or GPIO, on the Raspberry Pi Zero is the port for interacting with the physical world. Not only can you control things such as motors and lights, but you can also read data from things such as thermometers or light sensors. The GPIO can read information or send commands, and you can use programs such as C or Python to handle the logic for what to do.

Getting ready

This is the point where we will start integrating other devices over the GPIO pins. While you don't have to do anything for this recipe except have your Raspberry Pi Zero up and running, you will probably want to attach a header and, ideally, a breadboard cobbler to prepare for the upcoming recipes.

How to do it...

The most important thing to remember when using your Raspberry Pi Zero is that the GPIO has no voltage regulation. If you push too much power over GPIO, you could end up with BSOD, or Blue Smoke of Death (also commonly referred to...