Raspberry Pi for Python Programmers Cookbook - Second Edition

Over 60 recipes that harness the power of the Raspberry Pi together with Python programming and create enthralling and captivating projects

Raspberry Pi for Python Programmers Cookbook - Second Edition

Cookbook
Tim Cox

6 customer reviews
Over 60 recipes that harness the power of the Raspberry Pi together with Python programming and create enthralling and captivating projects
$35.99
$44.99
RRP $35.99
RRP $44.99
eBook
Print + eBook

Instantly access this course right now and get the skills you need in 2017

With unlimited access to a constantly growing library of over 4,000 eBooks and Videos, a subscription to Mapt gives you everything you need to learn new skills. Cancel anytime.

Free Sample

Book Details

ISBN 139781785288326
Paperback510 pages

Book Description

Raspberry Pi cookbook for Python Programmers is a practical guide for getting the most out of this little computer. This book begins by guiding you through setting up the Raspberry Pi, performing tasks using Python 3 and introduces the first steps to interface with electronics. As you work through each chapter you will build up your skills and knowledge and apply them as you progress throughout the book, delving further and further into the unique abilities and features of the Raspberry Pi.

Later, you will learn how to automate tasks by accessing files, build applications using the popular Tkinter library and create games by controlling graphics on screen. You will harness the power of the built-in graphics processor by using Pi3D to generate your own high quality 3D graphics and environments. Connect directly to the Raspberry Pi’s hardware pins to control electronics from switching on LEDs and responding to push buttons right through to driving motors and servos. Learn how to monitor sensors to gather real life data and to use it to control other devices, and view the results over the Internet. Apply what you have learnt by creating your own Pi-Rover or Pi-Hexipod robots. Finally, we will explore using many of the purpose built add-ons available for the Raspberry Pi, as well as interfacing with common household devices in new ways.

Table of Contents

Chapter 1: 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
Using built-in Wi-Fi and Bluetooth on the Raspberry Pi
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
Chapter 2: 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
Chapter 3: 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
Chapter 4: 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
Chapter 5: 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
Chapter 6: Using Python to Drive Hardware
Introduction
Controlling an LED
Responding to a button
A controlled shutdown button
The GPIO keypad input
Multiplexed color LEDs
Writing messages using Persistence of Vision
Chapter 7: 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
Capturing data in an SQLite database
Viewing data from your own webserver
Sensing and sending data to online services
Chapter 8: 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
Discover and experiment with OpenCV
Color detection with OpenCV
Performing motion tracking with OpenCV
Chapter 9: Building Robots
Introduction
Building a Rover-Pi robot with forward driving motors
Using advanced motor control
Building a six-legged Pi-Bug robot
Controlling servos directly with Servoblaster
Using an Infra-Red Remote Control with your Raspberry Pi
Avoiding objects and obstacles
Getting a sense of direction
Chapter 10: Interfacing with Technology
Introduction
Automating your home with remote sockets

What You Will Learn

  • Get the Raspberry Pi set up and running for the first time
  • Remotely connect to the Raspberry Pi and use your PC/laptop instead of a separate screen/keyboard
  • Get to grips with text, files and creating quick menus using Python
  • Develop desktop applications; handle images and process files with ease
  • Make use of graphics and user control to develop your own exciting games
  • Use the Raspberry Pi’s powerful GPU to create 3D worlds
  • Take control of the real world and interface with physical hardware, combining hardware and software for your own needs
  • Measure and control processes, respond to real events and monitor through the Internet
  • Learn about the Raspberry Pi hardware inputs/outputs, starting with the basics and beyond
  • Expand the capabilities of the Raspberry Pi with hardware expansion / add-on modules (use analogue inputs, drive servos and motors, and use SPI/I2C)
  • Create your own Pi-Rover or Pi-Hexpod driven by the Raspberry Pi
  • Make use of existing hardware by modifying and interfacing with it using the Raspberry Pi

Authors

Table of Contents

Chapter 1: 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
Using built-in Wi-Fi and Bluetooth on the Raspberry Pi
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
Chapter 2: 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
Chapter 3: 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
Chapter 4: 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
Chapter 5: 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
Chapter 6: Using Python to Drive Hardware
Introduction
Controlling an LED
Responding to a button
A controlled shutdown button
The GPIO keypad input
Multiplexed color LEDs
Writing messages using Persistence of Vision
Chapter 7: 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
Capturing data in an SQLite database
Viewing data from your own webserver
Sensing and sending data to online services
Chapter 8: 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
Discover and experiment with OpenCV
Color detection with OpenCV
Performing motion tracking with OpenCV
Chapter 9: Building Robots
Introduction
Building a Rover-Pi robot with forward driving motors
Using advanced motor control
Building a six-legged Pi-Bug robot
Controlling servos directly with Servoblaster
Using an Infra-Red Remote Control with your Raspberry Pi
Avoiding objects and obstacles
Getting a sense of direction
Chapter 10: Interfacing with Technology
Introduction
Automating your home with remote sockets

Book Details

ISBN 139781785288326
Paperback510 pages
Read More
From 6 reviews

Read More Reviews