Book Image

Raspberry Pi 3 Cookbook for Python Programmers - Third Edition

By : Steven Lawrence Fernandes, Tim Cox
Book Image

Raspberry Pi 3 Cookbook for Python Programmers - Third Edition

By: Steven Lawrence Fernandes, Tim Cox

Overview of this book

Raspberry Pi 3 Cookbook for Python Programmers – Third Edition begins by guiding you through setting up Raspberry Pi 3, performing tasks using Python 3.6, and introducing the first steps to interface with electronics. As you work through each chapter, you will build your skills and apply them as you progress. You will learn how to build text classifiers, predict sentiments in words, develop applications using the popular Tkinter library, and create games by controlling graphics on your screen. You will harness the power of a built in graphics processor using Pi3D to generate your own high-quality 3D graphics and environments. You will understand how to connect Raspberry Pi’s hardware pins directly to control electronics, from switching on LEDs and responding to push buttons to driving motors and servos. Get to grips with monitoring sensors to gather real-life data, using it to control other devices, and viewing the results over the internet. You will apply what you have learned by creating your own Pi-Rover or Pi-Hexipod robots. You will also learn about sentiment analysis, face recognition techniques, and building neural network modules for optical character recognition. Finally, you will learn to build movie recommendations system on Raspberry Pi 3.
Table of Contents (23 chapters)
Title Page
Copyright and Credits
Dedication
Packt Upsell
Contributors
Preface
Index

Introduction


This book uses a wide range of hardware to demonstrate what can be achieved by combining hardware and software in various ways. To get the most out of this book, it is highly recommended that you experiment with some of the hardware projects. I feel that it is particularly rewarding to observe physical results from your coding efforts, and this is where Raspberry Pi differs from a typical computer.

A common problem is finding the right components for a project while not spending a fortune on it. All the hardware components used in this book focus on using low-cost items that can usually be purchased from a variety of suppliers, in most cases, for only a few dollars.

To help you locate suitable items, this appendix will list each hardware item used in the chapters with links to where they can be obtained. The list is not exhaustive, and it is likely that the availability of the items (and prices) may vary over time, so whenever you purchase, ensure that you search around for the best value. In this book, practical and enough detail has been provided in the chapters to allow you to source your own components and build your own modules.

This appendix also includes a full list of software and Python modules mentioned in the book, including the specific versions used. If the software used in the book is updated and improved, it is likely that some modules will lose their backward compatibility. Therefore, if you find that the latest version installed does not function as expected, it may be that you will need to install an older version (details on how to do this are provided in the There's more... section of the Software list recipe).