Most of the projects in this book involve using the Pi to interact with the outside world using circuits This means that besides the Raspberry Pi you’ll also need some electronics components At the beginning of each project we provide a list of the required parts as well as an indication of the cost of the components and an estimated time for the build Projects with one symbol will likely cost less than 10 in components while projects with two symbols may be between 10 and 50 this is a wide range but the components prices vary depending on where you buy them You can also refer to the Project Component List on page 9 which is a complete list of all the components needed for this book if you want to buy them all at once orgANIzATIoN oF ThIs Book This book is divided into seven parts The Primer is an introduction to the Pi and is mandatory for properly setting up your Raspberry Pi and the parts that follow contain the projects Here’s how the parts are organized primer In this part we’ll show you what you need to get started with the Raspberry Pi and set it up for the first time We’ll also introduce you to the basics of Python the pro gramming language used throughout this book LEDs You’ll start by making projects with LEDs If you’re a begin ner in the world of electronics this part will teach you the basic concepts of circuit building Displays In this part you’ll learn how to use several types of displays to make your electronics projects more interactive These proj ects are not just about displaying sample text you’ll also learn how to gather data from the web and program a pong game sensors These projects use several types of sensors Sensors are awesome because they allow your projects to react to and interact with the world There are sensors for almost anything you may think of You’ll learn how to use a tem perature sensor a PIR motion sensor and much more xix intRoduction
cameras The projects in this part use the Raspberry Pi camera mod ule You’ll learn how to take photos with the camera and how to stream video and then use your skills to build cool projects like a burglar detector and a home surveillance system Web applications Here you’ll build your own website and then learn how to control the Raspberry Pi GPIOs remotely by build ing your own web server You’ll also explore Node-RED a powerful tool for building IoT applications easily Games and toys The projects in this part make things for you to play with You’ll build a digital drum set program and design your own game using Scratch and build a Wi-Fi robot you can control using your smartphone At the end of the book you’ll also find some reference informa tion including a GPIO guide for all available Raspberry Pi boards to date and a resistor color chart you can use to identify different resis tor values The projects in this book are independent which means there isn’t a specific order to follow along and you can pick any project you feel like building at any time We hope you’ll have fun creating the projects in this book and enjoy the learning process xx intRoduction
pRiMER in t his pRiMER you will GEt sEt up FoR EvERythinG you nEEd in thE FollowinG pRojEcts wE’ll intRoducE you to thE RaspBERRy pi BoaRd and its Most iMpoRtant and intEREstinG paRts thEn wE’ll walk you thRouGh sEttinG up thE pi with all thE haRdwaRE and soFtwaRE it nEEds