PacktLib: Raspberry Pi Cookbook for Python Programmers

Raspberry Pi Cookbook for Python Programmers

Credits

About the Author

About the Reviewers

www.PacktPub.com

Preface

Getting Started with a Raspberry Pi Computer

Introduction

Connecting the Raspberry Pi

Using NOOBS to set up your Raspberry Pi SD card

Networking and connecting your Raspberry Pi to the Internet via the LAN connector

Configuring your network manually

Networking directly to a laptop or computer

Networking and connecting your Raspberry Pi to the Internet via a USB Wi-Fi dongle

Connecting to the Internet through a proxy server

Connecting remotely to the Raspberry Pi over the network using VNC

Connecting remotely to the Raspberry Pi over the network using SSH (and X11 Forwarding)

Sharing the home folder of the Raspberry Pi with SMB

Keeping the Raspberry Pi up to date

Starting with Python Strings, Files, and Menus

Introduction

Working with text and strings

Using files and handling errors

Creating a boot-up menu

Creating a self-defining menu

Using Python for Automation and Productivity

Introduction

Using Tkinter to create graphical user interfaces

Creating a graphical application Start menu

Displaying photo information in an application

Organizing your photos automatically

Creating Games and Graphics

Introduction

Using IDLE3 to debug your programs

Drawing lines using a mouse on Tkinter Canvas

Creating a bat and ball game

Creating an overhead scrolling game

Creating 3D Graphics

Introduction

Starting with 3D coordinates and vertices

Creating and importing 3D models

Creating a 3D world to roam in

Building 3D maps and mazes

Using Python to Drive Hardware

Introduction

Controlling an LED

Responding to a button

A controlled shutdown button

The GPIO keypad input

Multiplexed color LEDs

Sense and Display Real-world Data

Introduction

Using devices with the IC bus

Reading analog data using an analog-to-digital converter

Logging and plotting data

Extending the Raspberry Pi GPIO with an I/O expander

Sensing and sending data to online services

Creating Projects with the Raspberry Pi Camera Module

Introduction

Getting started with the Raspberry Pi camera module

Using the camera with Python

Generating a time-lapse video

Creating a stop frame animation

Making a QR code reader

Building Robots

Introduction

Building a Rover-Pi robot with forward driving motors

Using advanced motor control

Building a six-legged Pi-Bug robot

Avoiding objects and obstacles

Getting a sense of direction

Interfacing with Technology

Introduction

Automating your home with remote sockets

Using SPI to control an LED matrix

Communicating using a serial interface

Controlling the Raspberry Pi over Bluetooth

Controlling USB devices

Hardware and Software List

Hardware and Software List

Hardware and Software List

Hardware and Software List

Hardware and Software List

Index