Since its launch in 2011, the Raspberry Pi has found a role both as a very low-cost Linux-based computer and as a platform for embedded computing. It has proven popular with educators and hobbyists alike, with over 2 million units sold since its release.
In this book, you will find a wide range of recipes using the Raspberry Pi, including recipes for getting started and setting up your Pi; recipes for using the Python programming language; and a large number of recipes about using the Raspberry Pi with
sensors, displays, motors, and so on. The book also includes a chapter on using the Raspberry Pi with Arduino boards.
This book is designed in such a way that you can read it linearly, as you would a regular book, or access recipes at random. You can search the table of contents or index for the recipe that you want and then jump right to it. If the recipe requires you to know about other things, then it will refer you to other recipes, rather like a cookbook might refer you to base sauces before showing you how to cook something fancier.
The world of Raspberry Pi is one that moves quickly. With a large active community, new interface boards and software libraries are being developed all the time. So, besides many examples that use specific interface boards or pieces of software, the book also
covers basic principles so that you can have a better understanding of how to use new technologies that come along as the Raspberry Pi ecosystem develops. As you would expect, there is a large body of code (mostly Python programs) that accompanies the book. These programs are all open source and available on GitHub. You’ll find a link to them at the Raspberry Pi Cookbook website. For most of the software-based recipes, all you need is a Raspberry Pi.
I recommend a Raspberry Pi model B. For recipes that involve making your own hardware to interface with the Raspberry Pi, I have tried to make good use of ready-made modules, as well as solderless breadboard and jumper wires to avoid the need for soldering For those wishing to make breadboard-based projects more durable, I suggest using prototyping boards with the same layout as a half-sized breadboard, such as those sold by Adafruit, so that the design can easily be transferred to a soldered solution.