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

Interfacing the ESP8266 WiFi module with RPZ


Earlier in the book, we covered a hack for taking a USB Wi-Fi adapter and hard-wiring it to the Raspberry Pi Zero board. This works just fine, but you can also configure Wi-Fi communication over the GPIO port! Truly, the Raspberry Pi's flexibility in configuration is astounding. In this hack, we will connect and play around with the inexpensive and popular ESP8266 to get our RPZ talking over Wi-Fi. We will also use some of the skills we picked up in earlier recipes talking over the GPIO serial bus to open the door to even cooler hacks!

Getting ready

You don't need much for this except your Raspberry Pi Zero and the ESP8266. The one I used was from Adafruit, called the ESP-12-E, but there several options available. I would go with anyone that is already mounted to a board for prototyping, unless you are planning to solder it to a custom-made circuit board to attach to your Raspberry Pi Zero. If not, you'll need some jumper cables and a breadboard...